Symantec logo

Recovering a version 0 DCO volume

 To recover a version 0 DCO volume

  1. Correct the problem that caused the I/O failure.
  2. Use the following command to remove the 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:

    dc vol1_dco vol1 - - - -

  3. Restart the DCO volume using the following command:

    # vxvol [-g diskgroup] start dco_log_vol

    For the example output, the command would take this form:

    # vxvol -g mydg start vol1_dcl

  4. Use the 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.
    Warning: You must use the 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:

    # vxassist -g mydg snapclear vol1 SNAP-vol1_snp

    # vxassist -g snapdg snapclear SNAP-vol1 vol1_snp

  5. To snap back the snapshot volume on which you performed a 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.