When you are creating a copy of a volume, the copy must be of the same type (flexible or traditional) and same compliance type (SnapLockCompliance or SnapLock Enterprise) as the old volume.
Considerations
Note: If the volume you are copying is a FlexVol volume, the copy does not have to be
in the same aggregate as the old volume, nor does it have to be on the same
storage system as the old volume.
Steps
- To create a copy of the old volume, create the new volume by entering the following command:vol create altvol
altvol is the new volume.
Note: Include the appropriate volume type and sizing information.
- Put the new volume in a restricted state by entering the following
command:vol restrict altvol
- Copy the base Snapshot copy from the old volume to the new volume
by entering the following command:
vol copy start -s base_snapshot secsystem:secvol altvol
Note: The command assumes that the volume copy is initiated from the
system that contains altvol.
- Put the new volume online by entering the following command:
vol online altvol
When you create a volume copy, you can ignore the messages appearing on the console.
Examples of possible messages
Breaking snapmirrored qtree 1 in volume altvol: base snapshot no longer exists. Use snapmirror resync or initialize to re-establish the snapmirror.
Breaking snapmirrored qtree 2 in volume
altvol: WAFL_check broke all snapmirrors in volume wormclone1.Use snapmirror resync or initialize to re-establish the snapmirror.