cancel
Showing results for 
Search instead for 
Did you mean: 

VVR env with snapshot

M_Pozzi
Level 3
Partner Certified
Hi all,

I'm going to set up a VVR enviroment with snapshot and I would like to have a feedback about it:

Total data to replicate: 25TB
Total storage:  100TB

VVR hosts:


SITE_A                               SITE_B
DG_VVR_Primary  --------->DG_VVR_secondary

on SITE_B

SITE_B_host_a                                                          SITE_B_host_a

DG_VVR_secondary  <------linked_snapshot-------->DG_LINKED_SNAPSHOT


and

SITE_B_host_a                                                                         SITE_B_host_b

DG_LINKED_SNAPSHOT  <---full_sized_istant_snapshot---> DG_off-host_processing



in few words:
I'll replicate data from SITE_A to SITE_B via VVR

on SITE_B_host_a i create linked snapshot with source from the replicated data (the dg of the VVR on secondary)


on SITE_B_host_a I create full sized instant snapshot for off-host processing with source volume from the linked_snapshot

the off_host processing snapshot will "move" between SITE_B_host_a  and SITE_B_host_b



I hope to be clear
any suggestion, real production life experience are very well come

Thanks in advance!
Cheers
Marco


4 REPLIES 4

Eric_Gao
Level 4
So what you are asking?

vnr
Level 2
Employee

This can be done easily. On the SITE_B, you can configure a break-off style
mirror (snapshot) and do a DG split to do offhost processing on host_b. You can trigger the snapshot on the secondary using vradmin. If you have DB, then have DB be quiesce when you call the IBC, so you would have a snapshot that is application consistent.

Here are some high level command that would help (Please note: these are just
high level commands, you may need other commands. Just thought I would give you commands, so you can try this out in your test configuration):

1. On the secondary, have a two break-off style snapshot configured.
        # vxprint -g testdg -ht |grep -i snapdone
        pl ss_vol1-04   vol1         ENABLED  SNAPDONE 543415808 CONCAT   -        WO
        pl ss_archvol-05 archvol     ENABLED  SNAPDONE 41943040 CONCAT    -        WO

2. Setup the env to take snapshot on secondary. This requires setting up onfreeze IBC script and executing the vradmin command.

# cat onfreeze
#----------------Begin of onfreeze -----------------
 [. . .]

vxsnap -g testdg make source=vol1/newvol=snap_vol1/plex=ss_vol1-04

if [ $? -eq 0 ]
then
        echo "INFO: Snapshot of vol1 created successfully."
else
        echo "ERROR: Failed to create snapshot."
        exit 1
fi

vxsnap -g testdg make source=archvol/newvol=snap_archvol/plex=ss_archvol-05

if [ $? -eq 0 ]
then
        echo "INFO: Snapshot of archvol created successfully."
        exit 0
else
        echo "ERROR: Failed to create snapshot."
        exit 1
fi
#--------------------End of onfreeze ---------------------

3. Trigger the snapshot creation on the seconday using the vradmin command.
        #vradmin -g testdg ibc rvg1 testdg

4. Now the snapshot is taken, split the DG on host_a, import the DG on SITE_B_host_b and start the volumes; do an fsck of the file systems and start the database.

        # vxdg split testdg testdg_snap snap_archvol snap_vol1
        # vxdg deport testdg_snap
        #
        ## on host_b; import the DG
        # vxdg import testdg_snap.
        # vxvol -g testdg_snap startall
        # fsck -V vxfs /dev/vx/dsk/testdg_snap/snap_vol1
        # fsck -V vxfs /dev/vx/dsk/testdg_snap/snap_archvol

        ## Now the snapshot or DG is available on the secondary, you can start the DB or the application.

5. To reattach or resync back to the original volume. unmount the volumes, deport the DG and import the DG on SITE_B_host_a and join the DG back. once join, you can resync/reattach the snapshots.

        #
        ## umount all the volumes on SITE_B_host_b
        ## deport the DG using "vxdg deport testdg_snap"
        ## on SITE_B_host_a, import the dg using "vxdg import testdg_snap"
        ## join the DG back using:

        # vxdg join testdg_snap testdg
        # vxvol -g testdg startall

        ## Reattach/refresh the snapshots.
        ##

        # vxsnap -g testdg reattach snap_archvol source=archvol
        # vxsnap -g testdg reattach snap_vol1 source=vol1

You can repeast the steps 3 thru 5 again and again on a needed basis.

Hope this help ...
 

vnr
Level 2
Employee
Thinking more about this, In the onfreeze IBC script, instead of the two commands I mentioned above.. you can just do the following for the whole rvg:

/usr/sbin/vxrvg -g testdg -P snap snapshot rvg1



M_Pozzi
Level 3
Partner Certified
Thanks for your suggestion, but I would like to use linked snapshot to snap from the vvr_secondary_dg and I need to create a second snapshot from the linked one for offhost processing.

Where the last snapshot will reattach to the linked one, and the linked reattach to the vvr_secondary_dg.


Thanks again
Regards
Marco


ps
I was asking if someone already did it and if it could have problems