Shadowing a Volume
Configuring a Shadow-Copy Rule (Source Switch)
15-20 CLI Storage-Management Guide
For example, the following command sequence disables pruning for the shadow-copy
rule, DRrule:
bstnA6k(gbl)# namespace wwmed
bstnA6k(gbl-ns[wwmed])# volume /acct
bstnA6k(gbl-ns-vol[wwmed~/acct])# shadow-copy-rule DRrule
bstnA6k(gbl-ns-vol-shdwcp[wwmed~/acct~DRrule])# no prune-target
bstnA6k(gbl-ns-vol-shdwcp[wwmed~/acct~DRrule])# ...
Enabling Pruning
Target-pruning is enabled by default, to ensure that the source and shadow volumes
match after the first shadow copy. From gbl-ns-vol-shdwcp mode, use the
prune-target command to re instate this default:
prune-target
For example, the following command sequence enables pruning of shadow volume
target volumes for the ‘bkup’ rule.
prtlndA1k(gbl)# namespace testns
prtlndA1k(gbl-ns[testns])# volume /users
prtlndA1k(gbl-ns-vol[testns~/users])# shadow-copy-rule bkup
prtlndA1k(gbl-ns-vol-shdwcp[testns~/users~bkup])# prune-target
prtlndA1k(gbl-ns-vol-shdwcp[testns~/users~bkup])# ...
Copying Only Directories with Changed Files (optional)
By default, a shadow-copy rule copies all directories from the source volume, whether
or not they have files from the source fileset. This can result in empty directories in
the shadow volume. Use the
directory-copy as-needed command to copy only the
directories that contain at least one file:
directory-copy as-needed
For example, the following command sequence stops the “DRrule” from copying
empty directories:
bstnA6k(gbl)# namespace wwmed
bstnA6k(gbl-ns[wwmed])# volume /acct
bstnA6k(gbl-ns-vol[wwmed~/acct])# shadow-copy-rule DRrule
bstnA6k(gbl-ns-vol-shdwcp[wwmed~/acct~DRrule])# directory-copy as-needed
Comentarios a estos manuales