In this scenario on a instant snapshot volume the vxplex snapback command was executed instead of vxsnap reattach or refresh. This resulted in snap plex going to SNAPTMP state with no resync task running.
#vxprint -hqtg testdg
dg testdg default default 20000 1281756031.102.sandrews
dm d1 hds9500-alua0_217 auto 76528 1920016 -
dm d2 hds9500-alua0_234 auto 76528 844816 -
v test - ENABLED ACTIVE 20480 SELECT - fsgen
pl test-01 test ENABLED ACTIVE 20480 CONCAT - RW
sd d2-02 test-01 d2 0 20480 0 hds9500-alua0_234 ENA
pl test-02 test ENABLED SNAPTMP 20480 CONCAT - WO
sd d1-02 test-02 d1 0 20480 0 hds9500-alua0_217 ENA
dc test_dco test test_dcl
v test_dcl - ENABLED ACTIVE 544 SELECT - gen
pl test_dcl-01 test_dcl ENABLED ACTIVE 544 CONCAT - RW
sd d2-03 test_dcl-01 d2 20480 544 0 hds9500-alua0_234 ENA
pl test_dcl-02 test_dcl DISABLED DCOSNP 544 CONCAT - RW
sd d1-03 test_dcl-02 d1 20480 544 0 hds9500-alua0_217 ENA
sp test_cpmap test test_dco
i.) The vxrecover command will initiate the resync for the SNAP plex currently in SNAPTMP state.
vxrecover -bs -g $DG $VOL
Example: # vxrecover -bs -g testdg test
ii.) Verify the status of resync
vxtask list
iii.) Once the sync is complete check the status of the plex, it should be in SNAPDONE state.
vxprint -htg $DG $VOL
Example: #vxprint -htg testdg test
.
v test - ENABLED ACTIVE 20480 SELECT - fsgen
pl test-01 test ENABLED ACTIVE 20480 CONCAT - RW
sd d2-02 test-01 d2 0 20480 0 hds9500-alua0_234 ENA
pl test-02 test ENABLED SNAPDONE 20480 CONCAT - WO
sd d1-02 test-02 d1 0 20480 0 hds9500-alua0_217 ENA
dc test_dco test test_dcl
v test_dcl - ENABLED ACTIVE 544 SELECT - gen
pl test_dcl-01 test_dcl ENABLED ACTIVE 544 CONCAT - RW
sd d2-03 test_dcl-01 d2 20480 544 0 hds9500-alua0_234 ENA
pl test_dcl-02 test_dcl DISABLED DCOSNP 544 CONCAT - RW
sd d1-03 test_dcl-02 d1 20480 544 0 hds9500-alua0_217 ENA
iv.) Finally, the SNAP volume can be created if required.
vxsnap -g $DG make source=$VOL/newvol=$SNAP_VOL/plex=$PLEX