Tuesday, November 10, 2009

EMC Celerra IP Replication via CLI

EMC Celerra IP Replication via CLI

PROD
Name: SALMON
DRP Name: PERCH
Create the trust (run on PROD & DRP):
[root@SALMON nasadmin]# nas_cel -create PERCH -ip 172.17.0.22 -passphrase nasadmin
[root@PERCH nasadmin]# nas_cel -create SALMON -ip 172.17.0.27 -passphrase nasadmin
Check the trust:
[root@SALMON nasadmin]# nas_cel -list
id name owner mount_dev channel net_path CMU
0 SALMON 0 172.17.0.27 CK2000646000870000
2 PERCH 0 172.17.0.22 CK2000646004010000
[root@PERCH nasadmin]# nas_cel -list
id name owner mount_dev channel net_path CMU
0 PERCH 0 172.17.0.22 CK2000646004010000
2 SALMON 0 172.17.0.27 CK2000646000870000
[root@SALMON nasadmin]# nas_cel -info id=2
id = 2
name = PERCH
owner = 0
device =
channel =
net_path = 172.17.0.22
celerra_id = CK2000646004010000
passphrase = nasadmin
[root@PERCH nasadmin]# nas_cel -info id=2
id = 2
name = SALMON
owner = 0
device =
channel =
net_path = 172.17.0.27
celerra_id = CK2000646000870000
passphrase = nasadmin
Create FileSystem Checkpint on the PROD Source file system:
[root@SALMON nasadmin]# fs_ckpt Figaro_Groups -Create
[root@SALMON nasadmin]# fs_ckpt Figaro_Users -Create
Create the new destination file system on the DRP Celerra (must be the same size):
[root@PERCH nasadmin]# nas_fs -name Figaro_Users_REP -type rawfs -create samesize=Figaro_Users:cel=SALMON pool=clar_r5_performance
[root@PERCH nasadmin]# nas_fs -name Figaro_Groups_REP -type rawfs -create samesize=Figaro_Groups:cel=SALMON pool=clar_r5_performance
Create mount points for the new file system on the celerra DRP:
[root@PERCH nasadmin]# server_mountpoint server_2 -create /dst_users Figaro_Users_REP
server_2 : done
[root@PERCH nasadmin]# server_mountpoint server_2 -create /dst_groups Figaro_Groups_REP
server_2 : done
Mount the file system (read only):
[root@PERCH nasadmin]# server_mount server_2 -option ro Figaro_Users_REP /dst_users
server_2 : done
[root@PERCH nasadmin]# server_mount server_2 -option ro Figaro_Groups_REP /dst_groups
server_2 : done
Copy the CheckPoint from the Celerra Prod source to the Celerra DRP destination:
[root@SALMON nasadmin]# fs_copy -start Figaro_Users_ckpt1 Figaro_Users_REP:cel=PERCH -option convert=no,monitor=off
[root@SALMON nasadmin]# fs_copy -start Figaro_Groups_ckpt1 Figaro_Groups_REP:cel=PERCH -option convert=no,monitor=off
Verify the File transfer:
[root@SALMON nasadmin]# fs_copy -list
Local Source Filesystems
Id Source Destination Status %Remaining CommState
219 Figaro_Users_ck Figaro_Users_RE started 100 transferring
221 Figaro_Groups_c Figaro_Groups_R started 100 transferring
Begin replication:
[root@SALMON nasadmin]# fs_replicate -start Figaro_Groups Figaro_Groups_REP:cel=PERCH
[root@SALMON nasadmin]# fs_replicate -start Figaro_Users Figaro_Users_REP:cel=PERCH

Check replication FileSystem:
[root@PERCH nasadmin]# nas_fs -info -size Figaro_Groups_REP
id = 86
name = Figaro_Groups_REP
acl = 0
in_use = True
type = rawfs
worm = off
volume = v232
pool = clar_r5_performance
member_of = root_avm_fs_group_3
rw_servers=
ro_servers= server_2
rw_vdms =
ro_vdms =
backup_of = Figaro_Groups:SALMON
auto_ext = no,virtual_provision=no
size = total = 488800 (sizes in MB) ( blockcount = 1001062400 )
stor_devs = CK200064600401-0011
disks = d22
disk=d22 stor_dev=CK200064600401-0011 addr=c16t1l1 server=server_2
disk=d22 stor_dev=CK200064600401-0011 addr=c0t1l1 server=server_2
[root@PERCH nasadmin]# nas_fs -info -size Figaro_Users_REP
id = 88
name = Figaro_Users_REP
acl = 0
in_use = True
type = rawfs
worm = off
volume = v235
pool = clar_r5_performance
member_of = root_avm_fs_group_3
rw_servers=
ro_servers= server_2
rw_vdms =
ro_vdms =
backup_of = Figaro_Users:SALMON
auto_ext = no,virtual_provision=no
size = total = 412766 (sizes in MB) ( blockcount = 845344768 )
stor_devs = CK200064600401-0010
disks = d21
disk=d21 stor_dev=CK200064600401-0010 addr=c0t1l0 server=server_2
disk=d21 stor_dev=CK200064600401-0010 addr=c16t1l0 server=server_2

No comments: