To recover a version 0 DCO volume
badlog
flag from the DCO:
# vxdco [-g
diskgroup
] -o force enable
dco_name
For the example output, the command would take this form:
# vxdco -g mydg -o force enable vol1_dco
The entry for vol1_dco
in the output from vxprint
now looks like this:
# vxvol [-g
diskgroup
] start
dco_log_vol
vxassist
snapclear
command to clear the FastResync maps for the original volume and for all its snapshots. This ensures that potentially stale FastResync maps are not used when the snapshots are snapped back (a full resynchronization is performed). FastResync tracking is re-enabled for any subsequent snapshots of the volume.
vxassist
snapclear
command on all the snapshots of the volume after removing the badlog
flag from the DCO. Otherwise, data may be lost or corrupted when the snapshots are snapped back.If a volume and its snapshot volume are in the same disk group, the following command clears the FastResync maps for both volumes:
# vxassist [-g
diskgroup
] snapclear
volume
\
snap_obj_to_snapshot
Here snap_obj_to_snapshot is the name of the snap object associated with volume that points to the snapshot volume.
For the example output, the command would take this form:
# vxassist -g mydg snapclear vol1 SNAP-vol1_snp
If a snapshot volume and the original volume are in different disk groups, you must perform a separate snapclear
operation on each volume:
# vxassist -g
diskgroup1
snapclear
volume
snap_obj_to_snapshot
# vxassist -g
diskgroup2
snapclear
snapvol
snap_obj_to_volume
Here snap_obj_to_volume is the name of the snap object associated with the snapshot volume, snapvol, that points to the original volume.
For the example output, the commands would take this form if SNAP-vol1
had been moved to the disk group, snapdg
:
snapclear
, use the following command (after using the vxdg
move
command to move the snapshot plex back to the original disk group, if necessary):
# vxplex -f [-g
diskgroup
] snapback
volume
snapvol_plex
For the example output, the command would take this form:
# vxplex -f -g mydg snapback vol1 vol1-03
You cannot use the vxassist
snapback
command because the snapclear
operation removes the snapshot association information.