Vxsnap commands fail:
# vxsnap -g snap_dg unprepare SNAP_vol
VxVM vxsnap ERROR V-5-1-6170 Volume SNAP_vol is in snapshot chain
# vxassist -g snap_dg snapclear SNAP_vol SNAP_vol_snp1
ERROR V-5-1-10127 deleting volume SNAP_vol:
Record is associated
Vxprint output:
# vxprint -qg snap_dg
dg snap_dg snapdg - - - - -
dm disk_1 c5t3d41s2 auto 2048 141409536 -
dm disk_2 c6t3d42s2 auto 2048 141409536 -
v SNAP_vol - ENABLED ACTIVE 2097152 ROUND - fsgen
pl SNAP_vol-01 SNAP_vol DETACHED ACTIVE 2097152 CONCAT - RW
sd disk_1-01 SNAP_vol-01 disk_1 94379280 2097152 0 c5t3d41 ENA
pl SNAP_vol-02 SNAP_vol ENABLED ACTIVE 2097152 CONCAT - RW
sd disk_2-01 SNAP_vol-01 disk_2 94379280 2097152 0 c6t3d42 ENA
dc SNAP_vol_dco SNAP_vol SNAP_vol_dcl
v SNAP_vol_dcl - DETACHED ACTIVE 544 ROUND - gen
pl SNAP_vol_dcl-01 SNAP_vol_dcl DETACHED ACTIVE 544 CONCAT - RW
sd disk_1-02 SNAP_vol_dcl-01 disk_1 96476432 544 0 c5t3d41 ENA
sp SNAP_vol_snp1 SNAP_vol SNAP_vol_dco
Objects were removed out-of-order.
The "sp" object for the snap volume must be removed first. Then the DCO log must be removed, before the detached plex can be deleted. This is because the "sp" object represents the DCO log for the snap volume, and still refers to the original parent volume.
To remove the plex, remove the snap-related Volume Manager objects from the volume, in order.
1. Remove the "sp" object from the DCO log volume.
Syntax and typical output: # vxassist -g (disk_group) snapclear (parent volume) (sp volume) # vxassist -g snap_dg snapclear SNAP_vol SNAP_vol_snp1 v SNAP_vol - ENABLED ACTIVE 2097152 ROUND - fsgen v SNAP_vol_dcl - DETACHED ACTIVE 544 ROUND - gen |
2. Remove the DCO log volume.
Syntax and typical output: # vxassist -f -g (disk_group) remove log (volume) logtype=dco # vxassist -f -g snap_dg remove log SNAP_vol_dcl logtype=dco v SNAP_vol - DETACHED ACTIVE 2097152 ROUND - fsgen |
3. Remove the disabled plex from the disk group configuration.
Syntax: # vxplex -g (disk_group) -o rm dis (plex) # vxplex -g snap_dg -o rm dis SNAP_vol-01 |