How to remove snapshot volume has been corrupted or no longer required or when original volume has been deleted

Article:TECH73725  |  Created: 2009-01-20  |  Updated: 2011-11-02  |  Article URL http://www.symantec.com/docs/TECH73725
Article Type
Technical Solution

Product(s)

Environment

Issue



The source volume on the original is been removed and the snapshot disk group is still imported on a 2nd host. Need to remove the snapshot completely on the 2nd host.


Error



ERROR V-5-1-6537 Error while determining sibling for volume <SNAP_vol>
ERROR V-5-1-6170 Volume <SNAP_vol> is in snapshot chain
ERROR V-5-1-7015 Volume <VolumeName> doesn't exist
ERROR V-5-1-10127 deleting volume <SNAP_vol>:Record is associated


Environment



Snapshot name is  SNAP_s380redo1_vol
 
Disk group on System 2:
 
sys2# vxprint -ht -g snap_s380proddb_cdg
 
dg snap_s380proddb_cdg default default 35000   1250555540.1824.danica
dm s380prsn1    c5t3d41s2    auto     2048     141409536 -
 

v  SNAP_s380prodarch_vol -   ENABLED  ACTIVE   41943040 ROUND     -        fsgen
pl s380prodarch_vol-02 SNAP_s380prodarch_vol ENABLED ACTIVE 41943040 CONCAT - RW
sd s380prsn1-01 s380prodarch_vol-02 s380prsn1 0 41943040 0        c5t3d41  ENA
dc SNAP_s380arch_vol_dco SNAP_s380prodarch_vol SNAP_s380arch_vol_dcl
 
v  SNAP_s380arch_vol_dcl -   ENABLED  ACTIVE   3424     ROUND     -        gen
pl s380prodarch_vol_dcl-02 SNAP_s380arch_vol_dcl ENABLED ACTIVE 3424 CONCAT - RW
sd s380prsn1-02 s380prodarch_vol_dcl-02 s380prsn1 41943040 3424 0 c5t3d41  ENA
sp s380prodarch_vol_snp1 SNAP_s380prodarch_vol SNAP_s380arch_vol_dco
 
v  SNAP_s380proddata_vol -   ENABLED  ACTIVE   52428800 ROUND     -        fsgen
pl s380proddata_vol-02 SNAP_s380proddata_vol ENABLED ACTIVE 52428800 CONCAT - RW
sd s380prsn1-03 s380proddata_vol-02 s380prsn1 41946464 52428800 0 c5t3d41  ENA
dc SNAP_s380proddata_vol_dco SNAP_s380proddata_vol SNAP_s380proddata_vol_dcl
 
v  SNAP_s380proddata_vol_dcl - ENABLED ACTIVE  4016     ROUND     -        gen
pl s380proddata_vol_dcl-02 SNAP_s380proddata_vol_dcl ENABLED ACTIVE 4016 CONCAT - RW
sd s380prsn1-04 s380proddata_vol_dcl-02 s380prsn1 94375264 4016 0 c5t3d41  ENA
sp s380proddata_vol_snp SNAP_s380proddata_vol SNAP_s380proddata_vol_dco
 
v  SNAP_s380prodredo1_vol -  ENABLED  ACTIVE   2097152  ROUND     -        fsgen
pl s380prodredo1_vol-02 SNAP_s380prodredo1_vol ENABLED ACTIVE 2097152 CONCAT - RW
sd s380prsn1-05 s380prodredo1_vol-02 s380prsn1 94379280 2097152 0 c5t3d41  ENA
dc SNAP_s380redo1_vol_dco SNAP_s380prodredo1_vol SNAP_s380redo1_vol_dcl

v  SNAP_s380redo1_vol_dcl -  ENABLED  ACTIVE   544      ROUND     -        gen
pl s380prodredo1_vol_dcl-02 SNAP_s380redo1_vol_dcl ENABLED ACTIVE 544 CONCAT - RW
sd s380prsn1-06 s380prodredo1_vol_dcl-02 s380prsn1 96476432 544 0 c5t3d41  ENA
sp s380prodredo1_vol_snp1 SNAP_s380prodredo1_vol SNAP_s380redo1_vol_dco
 
 
Disk group on system 1:
 
sys1# vxprint -ht -g s380proddb_cdg
 
dg s380proddb_cdg default    default  56000    1168286187.112.davenport
dm s380proddb_cdg01 c4t3d7s2 auto     2048     141409536 -
 

v  s380prodarch_vol -        ENABLED  ACTIVE   41943040 SELECT    -        fsgen
pl s380prodarch_vol-01 s380prodarch_vol ENABLED ACTIVE 41943040 CONCAT -   RW
sd s380proddb_cdg01-04 s380prodarch_vol-01 s380proddb_cdg01 25165824 20971520 0 c4t3d7 ENA
sd s380proddb_cdg01-10 s380prodarch_vol-01 s380proddb_cdg01 77601440 20971520 20971520 c4t3d7 ENA
dc s380prodarch_vol_dco s380prodarch_vol s380prodarch_vol_dcl
 
v  s380prodarch_vol_dcl -    ENABLED  ACTIVE   3424     SELECT    -        gen
pl s380prodarch_vol_dcl-01 s380prodarch_vol_dcl ENABLED ACTIVE 3424 CONCAT - RW
sd s380proddb_cdg01-07 s380prodarch_vol_dcl-01 s380proddb_cdg01 77595168 3424 0 c4t3d7 ENA
sp SNAP_s380prodarch_vol_snp s380prodarch_vol s380prodarch_vol_dco
 
v  s380proddata_vol -        ENABLED  ACTIVE   52428800 SELECT    -        fsgen
pl s380proddata_vol-01 s380proddata_vol ENABLED ACTIVE 52428800 CONCAT -   RW
sd s380proddb_cdg01-01 s380proddata_vol-01 s380proddb_cdg01 0 20971520 0 c4t3d7 ENA
sd s380proddb_cdg01-05 s380proddata_vol-01 s380proddb_cdg01 46137344 31457280 20971520 c4t3d7 ENA
dc s380proddata_vol_dco s380proddata_vol s380proddata_vol_dcl
 
v  s380proddata_vol_dcl -    ENABLED  ACTIVE   4016     SELECT    -        gen
pl s380proddata_vol_dcl-01 s380proddata_vol_dcl ENABLED ACTIVE 4016 CONCAT - RW
sd s380proddb_cdg01-08 s380proddata_vol_dcl-01 s380proddb_cdg01 98572960 4016 0 c4t3d7 ENA
sp SNAP_s380proddata_vol_snp s380proddata_vol s380proddata_vol_dco
 

Note: There are no volumes associated with SNAP_s380redo1_vol and SNAP_s380redo2_vol currently imported on System 2
 
 
The following commands fail:

sys2# vxsnap -f -g snap_s380proddb_cdg dis SNAP_s380prodredo1_vol
VxVM vxsnap ERROR V-5-1-6537 Error while determining sibling for volume SNAP_s380prodredo1_vol
 
sys2# vxsnap -g snap_s380proddb_cdg unprepare SNAP_s380prodredo1_vol
VxVM vxsnap ERROR V-5-1-6170  Volume SNAP_s380prodredo1_vol is in snapshot chain

sys2# vxassist -g snap_s380proddb_cdg snapclear s380prodredo1_vol SNAP_s380prodredo1_vol
Segmentation Fault(coredump)

sys2# vxsnap -g s380proddb_cdg -o iosize=2m restore s380prodredo1_vol source=SNAP_s380prodredo1_vol destroy=yes
VxVM vxsnap ERROR V-5-1-7015 Volume s380prodredo1_vol doesn't exist


Cause



If the source volume used to create the snapshots no longer exists or cannot be used for some reason the snap commands fail and they  need to be removed manually.


Solution



The sp object for the SNAP'ed volume must be removed first before the SNAP volume can be deleted. This is because the sp object represents the DCO for the SNAP volume, and stills refers to the original parent volume.
 
For example, the two snap volume to remove is SNAP_s380prodredo1_vol. So you then need to provide the volume name and the associated sp object is s380prodredo1_vol_snp1  for that volume.
 
From above we have:
for volume object:   v  SNAP_s380prodredo1_vol -  ENABLED  ACTIVE   2097152  ROUND     -        fsgen
and the sp object: sp s380prodredo1_vol_snp1 SNAP_s380prodredo1_vol SNAP_s380redo1_vol_dco
 

To remove the sp object from the snapped volume :
sys2# vxassist -g snap_s380proddb_cdg snapclear SNAP_s380prodredo1_vol  s380prodredo1_vol_snp1
sys2# vxprint-g snap_s380proddb_cdg -ht SNAP_s380prodredo1
 
dg s380proddb_cdg default    default  56000    1168286187.112.davenport
dm s380proddb_cdg01 c4t3d7s2 auto     2048     141409536 -

v  SNAP_s380prodredo1_vol -  ENABLED  ACTIVE   2097152  ROUND     -        fsgen
pl s380prodredo1_vol-02 SNAP_s380prodredo1_vol ENABLED ACTIVE 2097152 CONCAT - RW
sd s380prsn1-05 s380prodredo1_vol-02 s380prsn1 94379280 2097152 0 c5t3d41  ENA
dc SNAP_s380redo1_vol_dco SNAP_s380prodredo1_vol SNAP_s380redo1_vol_dcl

v  SNAP_s380redo1_vol_dcl -  ENABLED  ACTIVE   544      ROUND     -        gen
pl s380prodredo1_vol_dcl-02 SNAP_s380redo1_vol_dcl ENABLED ACTIVE 544 CONCAT - RW
sd s380prsn1-06 s380prodredo1_vol_dcl-02 s380prsn1 96476432 544 0 c5t3d41  ENA
 
Note: The sp object has been removed.

Finaly, the snapped volume can be removed with vxedit.
sys2# vxedit -g snap_s380proddb_cdg -r rm SNAP_s380redo1_vol
 

Alternative method using vxassist ( avoid using vxedit)

Trying to remove the snapped volume after running snapclear to clear the sp objects will still fail
sys2# vxassist -g snap_s380proddb_cdg remove  volume SNAP_s380prodredo1_vol
VxVM vxassist ERROR V-5-1-10127 deleting volume SNAP_s380prodredo1_vol:
 
       Record is associated
 
First you must remove the dco log (unprepare) from the snapped volume and then remove the snapped volume as follows:
sys2# vxassist -g snap_s380proddb_cdg remove log SNAP_s380prodredo1_vol logtype=dco
 
v  SNAP_s380prodredo1_vol -  ENABLED  ACTIVE   2097152  ROUND     -        fsgen
pl s380prodredo1_vol-02 SNAP_s380prodredo1_vol ENABLED ACTIVE 2097152 CONCAT - RW
sd s380prsn1-05 s380prodredo1_vol-02 s380prsn1 94379280 2097152 0 c5t3d41  ENA

Note: The SNAP_s380redo1_vol_dco object are now been removed

Finally remove the unwanted snapped volume=SNAP_s380prodredo1_vol
sys2# vxassist -g snap_s380proddb_cdg remove volume SNAP_s380prodredo1_vol


Supplemental Materials

SourceUMI
ValueV-5-1-10127
Description

deleting volume SNAP_s380prodredo1_vol:
 
       Record is associated


SourceUMI
ValueV-5-1-6537
Description

Error while determining sibling for volume <SNAP_vol>


SourceUMI
ValueV-5-1-6170
Description

Volume <SNAP_vol> is in snapshot chain


SourceUMI
ValueV-5-1-7015
Description

Volume <VolumeName> doesn't exist


Legacy ID



330062


Article URL http://www.symantec.com/docs/TECH73725


Terms of use for this information are found in Legal Notices