How to remove a snapshot object that is no longer associated with a snapshot volume.

Article:TECH66560  |  Created: 2009-01-08  |  Updated: 2011-09-26  |  Article URL http://www.symantec.com/docs/TECH66560
Article Type
Technical Solution

Product(s)

Environment

Issue



How to remove a snapshot object that is no longer associated with a snapshot volume.


Solution



How do I remove a snapshot object that is no longer associated with a snapshot Volume?
# vxedit -g [disk group] rm [object]
Example:
DG NAME NCONFIG NLOG MINORS GROUP-ID
ST NAME STATE DM_CNT SPARE_CNT APPVOL_CNT
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL
RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK
CO NAME CACHEVOL KSTATE STATE
VT NAME RVG KSTATE STATE NVOLUME
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
EX NAME ASSOC VC PERMS MODE STATE
SR NAME KSTATE
dg vvrdg default default 61000 1231271706.32.walv215-a1e
dm vvrdg01 HDS9500-ALUA0_0 auto 65536 4043008 -
dm vvrdg02 HDS9500-ALUA0_1 auto 65536 4043008 -
dm vvrdg03 HDS9500-ALUA0_2 auto 65536 4043008 -
v vvrdata2 - ENABLED ACTIVE 1024000 SELECT - fsgen
pl vvrdata2-01 vvrdata2 ENABLED ACTIVE 1024000 CONCAT - RW
sd vvrdg01-02 vvrdata2-01 vvrdg01 1024000 1024000 0 HDS9500-ALUA0_0 ENA
pl vvrdata2-02 vvrdata2 ENABLED ACTIVE LOGONLY CONCAT - RW
sd vvrdg01-04 vvrdata2-02 vvrdg01 2048032 32 LOG HDS9500-ALUA0_0 ENA
pl vvrdata2-03 vvrdata2 ENABLED ACTIVE LOGONLY CONCAT - RW
sd vvrdg02-03 vvrdata2-03 vvrdg02 409632 32 LOG HDS9500-ALUA0_1 ENA
rv vvr1rvg 1 ENABLED ACTIVE primary 1 vvrsrl
rl vvr1-to-walv215-a1f vvr1rvg CONNECT ACTIVE walv215-a1f vvrdg vvr1-to-walv215-a1e
v vvrdata1 vvr1rvg ENABLED ACTIVE 1024000 SELECT - fsgen
pl vvrdata1-01 vvrdata1 ENABLED ACTIVE 1024000 CONCAT - RW
sd vvrdg01-01 vvrdata1-01 vvrdg01 0 1024000 0 HDS9500-ALUA0_0 ENA
pl vvrdata1-03 vvrdata1 ENABLED ACTIVE LOGONLY CONCAT - RW
sd vvrdg02-02 vvrdata1-03 vvrdg02 409600 32 LOG HDS9500-ALUA0_1 ENA
dc vvrdata1_dco vvrdata1 vvrdata1_dcl
v vvrdata1_dcl - ENABLED ACTIVE 144 SELECT - gen
pl vvrdata1_dcl-01 vvrdata1_dcl ENABLED ACTIVE 144 CONCAT - RW
sd vvrdg02-04 vvrdata1_dcl-01 vvrdg02 409664 144 0 HDS9500-ALUA0_1 ENA
pl vvrdata1_dcl-02 vvrdata1_dcl ENABLED ACTIVE 144 CONCAT - RW
sd vvrdg01-03 vvrdata1_dcl-02 vvrdg01 2048064 144 0 HDS9500-ALUA0_0 ENA
sp SNAP-vvrdata1_snp vvrdata1 vvrdata1_dco
v vvrsrl vvr1rvg ENABLED ACTIVE 409600 SELECT - SRL
pl vvrsrl-01 vvrsrl ENABLED ACTIVE 409600 CONCAT - RW
sd vvrdg02-01 vvrsrl-01 vvrdg02 0 409600 0 HDS9500-ALUA0_1 ENA
pl vvrsrl-02 vvrsrl ENABLED ACTIVE 409600 CONCAT - RW
sd vvrdg03-01 vvrsrl-02 vvrdg03 0 409600 0 HDS9500-ALUA0_2 ENA
[root@walv215-a1e:/]#
Notice the SNAP-vvrdata1 snapshot volume is missing from the configuration but the sp object still exists. For those that aren't familiar with snapshots the configuration should loook like the following.
dg vvrdg default default 61000 1231271706.32.walv215-a1e
dm vvrdg01 HDS9500-ALUA0_0 auto 65536 4043008 -
dm vvrdg02 HDS9500-ALUA0_1 auto 65536 4043008 -
dm vvrdg03 HDS9500-ALUA0_2 auto 65536 4043008 -
v SNAP-vvrdata1 - ENABLED ACTIVE 1024000 ROUND - fsgen
pl vvrdata1-02 SNAP-vvrdata1 ENABLED ACTIVE 1024000 CONCAT - RW
sd vvrdg03-02 vvrdata1-02 vvrdg03 409600 1024000 0 HDS9500-ALUA0_2 ENA
dc SNAP-vvrdata1_dco SNAP-vvrdata1 SNAP-vvrdata1_dcl
v SNAP-vvrdata1_dcl - ENABLED ACTIVE 144 ROUND - gen
pl vvrdata1_dcl-03 SNAP-vvrdata1_dcl ENABLED ACTIVE 144 CONCAT - RW
sd vvrdg03-03 vvrdata1_dcl-03 vvrdg03 1433600 144 0 HDS9500-ALUA0_2 ENA
sp vvrdata1_snp SNAP-vvrdata1 SNAP-vvrdata1_dco
v vvrdata2 - ENABLED ACTIVE 1024000 SELECT - fsgen
pl vvrdata2-01 vvrdata2 ENABLED ACTIVE 1024000 CONCAT - RW
sd vvrdg01-02 vvrdata2-01 vvrdg01 1024000 1024000 0 HDS9500-ALUA0_0 ENA
pl vvrdata2-02 vvrdata2 ENABLED ACTIVE LOGONLY CONCAT - RW
sd vvrdg01-04 vvrdata2-02 vvrdg01 2048032 32 LOG HDS9500-ALUA0_0 ENA
pl vvrdata2-03 vvrdata2 ENABLED ACTIVE LOGONLY CONCAT - RW
sd vvrdg02-03 vvrdata2-03 vvrdg02 409632 32 LOG HDS9500-ALUA0_1 ENA
rv vvr1rvg 1 ENABLED ACTIVE primary 1 vvrsrl
rl vvr1-to-walv215-a1f vvr1rvg CONNECT ACTIVE walv215-a1f vvrdg vvr1-to-walv215-a1e
v vvrdata1 vvr1rvg ENABLED ACTIVE 1024000 SELECT - fsgen
pl vvrdata1-01 vvrdata1 ENABLED ACTIVE 1024000 CONCAT - RW
sd vvrdg01-01 vvrdata1-01 vvrdg01 0 1024000 0 HDS9500-ALUA0_0 ENA
pl vvrdata1-03 vvrdata1 ENABLED ACTIVE LOGONLY CONCAT - RW
sd vvrdg02-02 vvrdata1-03 vvrdg02 409600 32 LOG HDS9500-ALUA0_1 ENA
dc vvrdata1_dco vvrdata1 vvrdata1_dcl
v vvrdata1_dcl - ENABLED ACTIVE 144 SELECT - gen
pl vvrdata1_dcl-01 vvrdata1_dcl ENABLED ACTIVE 144 CONCAT - RW
sd vvrdg02-04 vvrdata1_dcl-01 vvrdg02 409664 144 0 HDS9500-ALUA0_1 ENA
pl vvrdata1_dcl-02 vvrdata1_dcl ENABLED ACTIVE 144 CONCAT - RW
sd vvrdg01-03 vvrdata1_dcl-02 vvrdg01 2048064 144 0 HDS9500-ALUA0_0 ENA
sp SNAP-vvrdata1_snp vvrdata1 vvrdata1_dco
v vvrsrl vvr1rvg ENABLED ACTIVE 409600 SELECT - SRL
pl vvrsrl-01 vvrsrl ENABLED ACTIVE 409600 CONCAT - RW
sd vvrdg02-01 vvrsrl-01 vvrdg02 0 409600 0 HDS9500-ALUA0_1 ENA
pl vvrsrl-02 vvrsrl ENABLED ACTIVE 409600 CONCAT - RW
sd vvrdg03-01 vvrsrl-02 vvrdg03 0 409600 0 HDS9500-ALUA0_2 ENA
To clean this up the following commands can be run.
# vxedit -g vvrdg rm SNAP-vvrdata1_snp
# vxassist -g vvrdg remove log vvrdata1 logtype=dco
The snapshot object and DCO log should no longer exist.
dg vvrdg default default 61000 1231271706.32.walv215-a1e
dm vvrdg01 HDS9500-ALUA0_0 auto 65536 4043008 -
dm vvrdg02 HDS9500-ALUA0_1 auto 65536 4043008 -
dm vvrdg03 HDS9500-ALUA0_2 auto 65536 4043008 -
v vvrdata2 - ENABLED ACTIVE 1024000 SELECT - fsgen
pl vvrdata2-01 vvrdata2 ENABLED ACTIVE 1024000 CONCAT - RW
sd vvrdg01-02 vvrdata2-01 vvrdg01 1024000 1024000 0 HDS9500-ALUA0_0 ENA
pl vvrdata2-02 vvrdata2 ENABLED ACTIVE LOGONLY CONCAT - RW
sd vvrdg01-04 vvrdata2-02 vvrdg01 2048032 32 LOG HDS9500-ALUA0_0 ENA
pl vvrdata2-03 vvrdata2 ENABLED ACTIVE LOGONLY CONCAT - RW
sd vvrdg02-03 vvrdata2-03 vvrdg02 409632 32 LOG HDS9500-ALUA0_1 ENA
rv vvr1rvg 1 ENABLED ACTIVE primary 1 vvrsrl
rl vvr1-to-walv215-a1f vvr1rvg CONNECT ACTIVE walv215-a1f vvrdg vvr1-to-walv215-a1e
v vvrdata1 vvr1rvg ENABLED ACTIVE 1024000 SELECT - fsgen
pl vvrdata1-01 vvrdata1 ENABLED ACTIVE 1024000 CONCAT - RW
sd vvrdg01-01 vvrdata1-01 vvrdg01 0 1024000 0 HDS9500-ALUA0_0 ENA
pl vvrdata1-03 vvrdata1 ENABLED ACTIVE LOGONLY CONCAT - RW
sd vvrdg02-02 vvrdata1-03 vvrdg02 409600 32 LOG HDS9500-ALUA0_1 ENA
v vvrsrl vvr1rvg ENABLED ACTIVE 409600 SELECT - SRL
pl vvrsrl-01 vvrsrl ENABLED ACTIVE 409600 CONCAT - RW
sd vvrdg02-01 vvrsrl-01 vvrdg02 0 409600 0 HDS9500-ALUA0_1 ENA
pl vvrsrl-02 vvrsrl ENABLED ACTIVE 409600 CONCAT - RW
sd vvrdg03-01 vvrsrl-02 vvrdg03 0 409600 0 HDS9500-ALUA0_2 ENA
 


Legacy ID



317291


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


Terms of use for this information are found in Legal Notices