Showing posts with label data copy using snapmirror migrate. Show all posts
Showing posts with label data copy using snapmirror migrate. Show all posts

Thursday, 10 November 2011

Snapmirror Secondary or Destination configuration of VSM & QSM

Snapmirror Secondary or Destination configuration of VSM  (Volume snapmirror)

primary controller name : src
Secondary controller name : dst

primary controller IP : 192.168.1.2
Secondary controller IP : 192.168.1.3

primary &Secondary  aggregate name: aggr1
primary &Secondary Vol name:vol1

Dst volume size should be same or grater than  the Source  volume

sec>  aggr create aggr1 20
sec>  aggr status
sec>  vol create vol1 aggr1 1g
sec>  vol status

sec>  wrfile -a \etc\hosts 192.168.1.2 src
sec>  ping 192.168.1.2
sec>  ping src

sec>  cifs shares -add vol_share2 /vol/vol1
sec>  cifs shares
sec>  vol restrict vol1
sec>  license add (snapmirror license no)
sec>  license
sec>  snapmirror initialize -S src:vol dst:vol1
sec>  snapmirror status


Switch to windows

Go to Run-> \\dst\vol_share2      # open this path

Now data started copying.




Note :

1. Before Migrate command please check both src and dst datas are in same size and check the total no of file manually.
2. snanpmirror Migrate :  command will release the relationship between src and dst and it will delete the base snapshot from on both side.


Last command:


sec>  snapmirror update  src:vol1 dst:vol1
sec>  snapmirror migrate  src:vol1 dst:vol1






Snapmirror Secondary configuration of QSM (Qtree snap mirror)

sec>  aggr create aggr1 20
sec>  aggr status
sec>  vol create vol1 aggr1 1g
sec>  vol status

sec>  wrfile -a \etc\hosts 192.168.1.2 src
sec>  ping 192.168.1.2
sec>  ping src

sec>  qtree create /vol/vol/qtree
sec>  cifs shares -add qtree_dst /vol/vol1/qtree
sec>  cifs shares
sec>  vol restrict vol1
sec>  license add (snapmirror license no)
sec>  license
sec>  snapmirror initialize -S src:\vol\vol1\qtree dst:\vol\vol1\qtree
sec>  snapmirror status

Switch to windows


Go to Run-> \\dst\vol_share2      # open this path

Now data started copying.

Note :
1. Before migrate command please check the both src and dst datas are in same size and check the total no of file manually.
2. snanpmirror migrate :   command will release the relationship between src and dst and it will delete the base snapshot from on both side.


Last command:


sec>  snapmirror update  src:\vol\vol1\qtree dst:\vol\vol1\qtree
sec> snapmirror migrate  src:\vol\vol1\qtree dst:\vol\vol1\qtree




                                                                                  Snapmirror Sync, Async, Semi-sync configuration

Snapmirror source or primary configuration of VSM & QSM

Snapmirror primary or source configuration  for VSM (Volume snapmirror)

primary controller name : src
Secondary controller name : dst

primary controller IP : 192.168.1.2
Secondary controller IP : 192.168.1.3

primary &Secondary  aggregate name: aggr1
primary &Secondary Vol name: vol1



src> aggr create aggr1 20
src> aggr status
src> vol create vol1 aggr1 1g
src> vol status
src> wrfile -a \etc\hosts 192.168.1.3 dst
src> ping 192.168.1.3
src>ping dst
src> license add (license no)
src> license  # to check license
src> options snapmirror.enable on
src> options snapmirror.access host=dst
src> wrfile snapmirror.allow
192.168.1.3 # secondary filer ip
dst    # secondary filer name

Press CTRL-C to exit and save the file


src> cifs shares -add vol_share1 /vol/vol1
src> cifs shares # to check shares




Host (Windows )

windows Start --> Run--> \\src\vol_share1              # Open this path

copy and paste some files  for to view the data replication from Primary to Secondary Replication

--------------*END*------------------




Snapmirror primary configuration  for QSM (Qtree snap mirror)

Storage

src> aggr create aggr1 20
src> aggr status
src> vol create vol1 aggr1 1g
src> vol status
src>wrfile -a \etc\hosts 192.168.1.3 dst
src> ping 192.168.1.3
src> ping dst
src> qtree create /vol/vol1/qtree
src> qtree  # to check qtree
src> cifs shares -add vol_qtree /vol/vol1/qtree
src> cifs shares # to check shares
src> license add (license no)
src> license  # to check license
src> options snapmirror.enable on
src>options snapmirror.access host=dst
src> wrfile snapmirror.allow
192.168.1.3 # secondary filer ip
dst    # secondary filer name
Press CTRL-C to exit and save the file

Host (Windows )

Go to Run-> \\src\vol_qtree  # open this path
copy and paste some files  for to view the data replication from Primary to Secondary Replication

--------------*END*------------------