snapvault – snapmirror 7mode and lun restore

snapvault qtree mirror snapvault and restore qtree

systems gr7m1 (prod)
gr7m2 (backup)
kp7m1 (mir of backup)

#create volumes
gr7m1> vol create datavol aggr1 800m
gr7m2> vol create datavol aggr1 1g
kp7m1> vol create datavol aggr1 1g

#grant access to secondaries
gr7m1> options snapvault.access host=gr7m2
gr7m2> options snapmirror.access host=kp7m1

#grant access to primaries for reverse
gr7m2> options snapvault.access host=gr7m1
kp7m1> options snapmirror.access host=gr7m1

#create lun igroup and map lun
gr7m1> qtree create /vol/datavol/lunq
gr7m1> lun create -s 400m -t windows -o noreserve /vol/datavol/lunq/lun
gr7m1> iscsi start
(after initiator has logged in)
gr7m1> iscsi initiator show
Initiators connected:
TSIH TPGroup Initiator/ISID/IGroup
1 1000 iqn.1991-05.com.microsoft:dc.netapp.local / 40:00:01:37:00:00 /
gr7m1> igroup create -i -t windows win iqn.1991-05.com.microsoft:dc.netapp.local
gr7m1> lun map /vol/datavol/lunq/lun win

#setup snpvault relations
gr7m1> snapvault snap sched datavol datasnap 2@0-23
gr7m2> snapvault snap sched -x datavol datasnap 11@0-23

gr7m1> snapvault snap sched datavol datasnap-d 7@10
gr7m2> snapvault snap sched -x datavol datasnap-d 7@11
gr7m2> snapvault start -S gr7m1:/vol/datavol/lunq gr7m2:/vol/datavol/lunq
gr7m1> snapvault snap create datavol datasnap
gr7m1> snapvault snap create datavol datasnap-d

#turn off default snapshots
gr7m1> snap sched datavol
gr7m2> snap sched datavol

#setup snapmirror relation
kp7m1> vol restrict datavol
kp7m1> snapmirror initialize -S gr7m2:datavol kp7m1:datavol

#setup snapmirror schedule
kp7m1> wrfile /etc/snapmirror.conf
gr7m2:datavol kp7m1:datavol - 0,15,30,45 * * *

====

Restoring lun from snapvault.

1. In windows, open 'computer -> manage -> disk management' and
select the volume.
2. Choose 'delete partition'.

3. On primary filer (the one that holds the lun that needs a restore)
1 unmap the lun
2 run : snapvault restore -S secondary:lunpath primary:lunpath
3 run : lun map lunpath igroup
for example
1 lun unmap /vol/datavol/lunq/lun win
2 snapvault restore -S gr7m2:/vol/datavol/lunq gr7m1:/vol/datavol/lunq
3 lun map /vol/datavol/lunq/lun win

4. On windows
- rescan disks

This entry was posted in netapp. Bookmark the permalink.

Comments are closed.