cancel
Showing results for 
Search instead for 
Did you mean: 

vxsnap restore problem

M_Pozzi
Level 3
Partner Certified
Hi All,

Env:
SF5MP3rp1
OS AIX 5.3

I'm trying to restore the content of a snapshot from another snapshot, but I got an ERROR, I created a test environment to show all step I made:

Initial situation:
a volume with one ENABLED/ACTIVE plex and two SNAPDONE plex with their dco

root@tx088sd1 / #vxprint -Qqthg ispdg
dg ispdg default default 23000 1239186867.72.tx088sd1

dm dr_lun xp12k0_1 auto 65536 204713728 -
dm ism_lun xp12k0_2 auto 65536 204713728 -
dm src_lun xp12k0_0 auto 65536 204713728 -

v vn_isp_23 - ENABLED ACTIVE 188743680 ROUND - fsgen
pl dr_vn_isp_23 vn_isp_23 ENABLED SNAPDONE 188743680 CONCAT - WO
sd dr_lun-01 dr_vn_isp_23 dr_lun 0 188743680 0 xp12k0_1 ENA
pl ism_vn_isp_23 vn_isp_23 ENABLED SNAPDONE 188743680 CONCAT - WO
sd ism_lun-01 ism_vn_isp_23 ism_lun 0 188743680 0 xp12k0_2 ENA
pl src_vn_isp_23 vn_isp_23 ENABLED ACTIVE 188743680 CONCAT - RW
sd src_lun-01 src_vn_isp_23 src_lun 0 188743680 0 xp12k0_0 ENA
dc vn_isp_23_dco vn_isp_23 vn_isp_23_dcl
v vn_isp_23_dcl - ENABLED ACTIVE 13248 SELECT - gen
pl dcl_src_vn_isp_23 vn_isp_23_dcl ENABLED ACTIVE 13248 CONCAT - RW
sd src_lun-02 dcl_src_vn_isp_23 src_lun 188743680 13248 0 xp12k0_0 ENA
pl dcl_dr_vn_isp_23 vn_isp_23_dcl DISABLED DCOSNP 13248 CONCAT - RW
sd dr_lun-02 dcl_dr_vn_isp_23 dr_lun 188743680 13248 0 xp12k0_1 ENA
pl dcl_ism_vn_isp_23 vn_isp_23_dcl DISABLED DCOSNP 13248 CONCAT - RW
sd ism_lun-02 dcl_ism_vn_isp_23 ism_lun 188743680 13248 0 xp12k0_2 ENA


I make a snapshot with two snapshot plex
root@tx088sd1 / #vxsnap -g ispdg make source=vn_isp_23/new=SNAP-vn_isp_23/plex=dr_vn_isp_23,ism_vn_isp_23

Print of the new structure

root@tx088sd1 / #vxprint -Qqthg ispdg
dg ispdg default default 23000 1239186867.72.tx088sd1

dm dr_lun xp12k0_1 auto 65536 204713728 -
dm ism_lun xp12k0_2 auto 65536 204713728 -
dm src_lun xp12k0_0 auto 65536 204713728 -

v SNAP-vn_isp_23 - ENABLED ACTIVE 188743680 ROUND - fsgen
pl dr_vn_isp_23 SNAP-vn_isp_23 ENABLED ACTIVE 188743680 CONCAT - RW
sd dr_lun-01 dr_vn_isp_23 dr_lun 0 188743680 0 xp12k0_1 ENA
pl ism_vn_isp_23 SNAP-vn_isp_23 ENABLED ACTIVE 188743680 CONCAT - RW
sd ism_lun-01 ism_vn_isp_23 ism_lun 0 188743680 0 xp12k0_2 ENA
dc SNAP-vn_isp_23_dco SNAP-vn_isp_23 SNAP-vn_isp_23_dcl
v SNAP-vn_isp_23_dcl - ENABLED ACTIVE 13248 ROUND - gen
pl dcl_dr_vn_isp_23 SNAP-vn_isp_23_dcl ENABLED ACTIVE 13248 CONCAT - RW
sd dr_lun-02 dcl_dr_vn_isp_23 dr_lun 188743680 13248 0 xp12k0_1 ENA
pl dcl_ism_vn_isp_23 SNAP-vn_isp_23_dcl ENABLED ACTIVE 13248 CONCAT - RW
sd ism_lun-02 dcl_ism_vn_isp_23 ism_lun 188743680 13248 0 xp12k0_2 ENA
sp vn_isp_23_snp SNAP-vn_isp_23 SNAP-vn_isp_23_dco

v vn_isp_23 - ENABLED ACTIVE 188743680 ROUND - fsgen
pl src_vn_isp_23 vn_isp_23 ENABLED ACTIVE 188743680 CONCAT - RW
sd src_lun-01 src_vn_isp_23 src_lun 0 188743680 0 xp12k0_0 ENA
dc vn_isp_23_dco vn_isp_23 vn_isp_23_dcl
v vn_isp_23_dcl - ENABLED ACTIVE 13248 SELECT - gen
pl dcl_src_vn_isp_23 vn_isp_23_dcl ENABLED ACTIVE 13248 CONCAT - RW
sd src_lun-02 dcl_src_vn_isp_23 src_lun 188743680 13248 0 xp12k0_0 ENA
sp SNAP-vn_isp_23_snp vn_isp_23 vn_isp_23_dco

I convert one plex in SNAPDONE to do another snapshot
root@tx088sd1 / #vxplex -g ispdg -o dcoplex=dcl_ism_vn_isp_23 convert state=SNAPDONE ism_vn_isp_23

root@tx088sd1 / #vxprint -Qqthg ispdg
dg ispdg default default 23000 1239186867.72.tx088sd1

dm dr_lun xp12k0_1 auto 65536 204713728 -
dm ism_lun xp12k0_2 auto 65536 204713728 -
dm src_lun xp12k0_0 auto 65536 204713728 -

v SNAP-vn_isp_23 - ENABLED ACTIVE 188743680 ROUND - fsgen
pl dr_vn_isp_23 SNAP-vn_isp_23 ENABLED ACTIVE 188743680 CONCAT - RW
sd dr_lun-01 dr_vn_isp_23 dr_lun 0 188743680 0 xp12k0_1 ENA
pl ism_vn_isp_23 SNAP-vn_isp_23 ENABLED SNAPDONE 188743680 CONCAT - WO
sd ism_lun-01 ism_vn_isp_23 ism_lun 0 188743680 0 xp12k0_2 ENA
dc SNAP-vn_isp_23_dco SNAP-vn_isp_23 SNAP-vn_isp_23_dcl
v SNAP-vn_isp_23_dcl - ENABLED ACTIVE 13248 ROUND - gen
pl dcl_dr_vn_isp_23 SNAP-vn_isp_23_dcl ENABLED ACTIVE 13248 CONCAT - RW
sd dr_lun-02 dcl_dr_vn_isp_23 dr_lun 188743680 13248 0 xp12k0_1 ENA
pl dcl_ism_vn_isp_23 SNAP-vn_isp_23_dcl DISABLED DCOSNP 13248 CONCAT - RW
sd ism_lun-02 dcl_ism_vn_isp_23 ism_lun 188743680 13248 0 xp12k0_2 ENA
sp vn_isp_23_snp SNAP-vn_isp_23 SNAP-vn_isp_23_dco

v vn_isp_23 - ENABLED ACTIVE 188743680 ROUND - fsgen
pl src_vn_isp_23 vn_isp_23 ENABLED ACTIVE 188743680 CONCAT - RW
sd src_lun-01 src_vn_isp_23 src_lun 0 188743680 0 xp12k0_0 ENA
dc vn_isp_23_dco vn_isp_23 vn_isp_23_dcl
v vn_isp_23_dcl - ENABLED ACTIVE 13248 SELECT - gen
pl dcl_src_vn_isp_23 vn_isp_23_dcl ENABLED ACTIVE 13248 CONCAT - RW
sd src_lun-02 dcl_src_vn_isp_23 src_lun 188743680 13248 0 xp12k0_0 ENA
sp SNAP-vn_isp_23_snp vn_isp_23 vn_isp_23_dco

I split the diskgroup with the snapshot
root@tx088sd1 / #vxdg split ispdg SNAP_ispdg SNAP-vn_isp_23

root@tx088sd1 / #vxprint -Qqthg ispdg
dg ispdg default default 23000 1239186867.72.tx088sd1

dm src_lun xp12k0_0 auto 65536 204713728 -

v vn_isp_23 - ENABLED ACTIVE 188743680 ROUND - fsgen
pl src_vn_isp_23 vn_isp_23 ENABLED ACTIVE 188743680 CONCAT - RW
sd src_lun-01 src_vn_isp_23 src_lun 0 188743680 0 xp12k0_0 ENA
dc vn_isp_23_dco vn_isp_23 vn_isp_23_dcl
v vn_isp_23_dcl - ENABLED ACTIVE 13248 SELECT - gen
pl dcl_src_vn_isp_23 vn_isp_23_dcl ENABLED ACTIVE 13248 CONCAT - RW
sd src_lun-02 dcl_src_vn_isp_23 src_lun 188743680 13248 0 xp12k0_0 ENA
sp SNAP-vn_isp_23_snp vn_isp_23 vn_isp_23_dco


root@tx088sd1 / #vxrecover -g SNAP_ispdg -m

Print of the dg with the snapshot
root@tx088sd1 / #vxprint -Qqthg SNAP_ispdg
dg SNAP_ispdg default default 30000 1240823546.81.tx088sd1

dm dr_lun xp12k0_1 auto 65536 204713728 -
dm ism_lun xp12k0_2 auto 65536 204713728 -

v SNAP-vn_isp_23 - ENABLED ACTIVE 188743680 ROUND - fsgen
pl dr_vn_isp_23 SNAP-vn_isp_23 ENABLED ACTIVE 188743680 CONCAT - RW
sd dr_lun-01 dr_vn_isp_23 dr_lun 0 188743680 0 xp12k0_1 ENA
pl ism_vn_isp_23 SNAP-vn_isp_23 ENABLED SNAPDONE 188743680 CONCAT - WO
sd ism_lun-01 ism_vn_isp_23 ism_lun 0 188743680 0 xp12k0_2 ENA
dc SNAP-vn_isp_23_dco SNAP-vn_isp_23 SNAP-vn_isp_23_dcl
v SNAP-vn_isp_23_dcl - ENABLED ACTIVE 13248 ROUND - gen
pl dcl_dr_vn_isp_23 SNAP-vn_isp_23_dcl ENABLED ACTIVE 13248 CONCAT - RW
sd dr_lun-02 dcl_dr_vn_isp_23 dr_lun 188743680 13248 0 xp12k0_1 ENA
pl dcl_ism_vn_isp_23 SNAP-vn_isp_23_dcl DISABLED DCOSNP 13248 CONCAT - RW
sd ism_lun-02 dcl_ism_vn_isp_23 ism_lun 188743680 13248 0 xp12k0_2 ENA
sp vn_isp_23_snp SNAP-vn_isp_23 SNAP-vn_isp_23_dco

I make a snapshot
root@tx088sd1 / #vxsnap -g SNAP_ispdg make source=SNAP-vn_isp_23/new=ism_SNAP-vn_isp_23/plex=ism_vn_isp_23

Print of the dg with the new snapshot created:
root@tx088sd1 / #vxprint -Qqthg SNAP_ispdg
dg SNAP_ispdg default default 30000 1240823546.81.tx088sd1

dm dr_lun xp12k0_1 auto 65536 204713728 -
dm ism_lun xp12k0_2 auto 65536 204713728 -

v SNAP-vn_isp_23 - ENABLED ACTIVE 188743680 ROUND - fsgen
pl dr_vn_isp_23 SNAP-vn_isp_23 ENABLED ACTIVE 188743680 CONCAT - RW
sd dr_lun-01 dr_vn_isp_23 dr_lun 0 188743680 0 xp12k0_1 ENA
dc SNAP-vn_isp_23_dco SNAP-vn_isp_23 SNAP-vn_isp_23_dcl
v SNAP-vn_isp_23_dcl - ENABLED ACTIVE 13248 ROUND - gen
pl dcl_dr_vn_isp_23 SNAP-vn_isp_23_dcl ENABLED ACTIVE 13248 CONCAT - RW
sd dr_lun-02 dcl_dr_vn_isp_23 dr_lun 188743680 13248 0 xp12k0_1 ENA
sp ism_SNAP-vn_isp_23_snp SNAP-vn_isp_23 SNAP-vn_isp_23_dco
sp vn_isp_23_snp SNAP-vn_isp_23 SNAP-vn_isp_23_dco

v ism_SNAP-vn_isp_23 - ENABLED ACTIVE 188743680 ROUND - fsgen
pl ism_vn_isp_23 ism_SNAP-vn_isp_23 ENABLED ACTIVE 188743680 CONCAT - RW
sd ism_lun-01 ism_vn_isp_23 ism_lun 0 188743680 0 xp12k0_2 ENA
dc ism_SNAP-vn_isp_23_dco ism_SNAP-vn_isp_23 ism_SNAP-vn_isp_23_dcl
v ism_SNAP-vn_isp_23_dcl - ENABLED ACTIVE 13248 ROUND - gen
pl dcl_ism_vn_isp_23 ism_SNAP-vn_isp_23_dcl ENABLED ACTIVE 13248 CONCAT - RW
sd ism_lun-02 dcl_ism_vn_isp_23 ism_lun 188743680 13248 0 xp12k0_2 ENA
sp SNAP-vn_isp_23_snp ism_SNAP-vn_isp_23 ism_SNAP-vn_isp_23_dco

Try ro restore the content of the volume from his snapshot but I got this error
root@tx088sd1 / #vxsnap -g SNAP_ispdg restore SNAP-vn_isp_23 source=ism_SNAP-vn_isp_23
VxVM vxsnap ERROR V-5-1-8499 Volumes SNAP-vn_isp_23 and ism_SNAP-vn_isp_23 not in the same snapshot hierarchy

Doing the same procedure in another env I got this error:
ERROR V-5-1-9631 Error while finding dependant volumes for SNAP_vn_isp_19

Why is this happening?
Any idea?
Thanks in advance
Regards
Marco




1 ACCEPTED SOLUTION

Accepted Solutions

M_Pozzi
Level 3
Partner Certified
Moving all objects (snap & snap of snap) to source dg refresh/restore works.
Cheers
Marco

View solution in original post

1 REPLY 1

M_Pozzi
Level 3
Partner Certified
Moving all objects (snap & snap of snap) to source dg refresh/restore works.
Cheers
Marco