CLONING DEVICES:-
Requirements:-
1)slect source and target devices
2)source & target devices size must be same may be differnt raids.
3)by using symclone we can perform clone operations.
==>create source and target files.
# more pairing_dev
432F 26DF
4337 26E7
433F 26EF
4347 26F7
434F 26FF
449F 2787
44A7 278F
44AF 2797
44B7 279F
===>first time take full copy of data.
# symclone -sid 3896 -f pairing_dev create -precopy -diff
Execute 'Create' operation for the 9 specified device(s)
in device file 'pairing_dev' (y/[n]) ? y
'Create' operation execution is in progress for the device list in
device file 'pairing_dev'. Please wait...
'Create' operation successfully executed for the device list
in device file 'pairing_dev'.
====>start copying
# symclone -sid 3896 -f pairing_dev activate
Execute 'Activate' operation for the 9 specified device(s)
in device file 'pairing_dev' (y/[n]) ? y
'Activate' operation execution is in progress for the device list in
device file 'pairing_dev'. Please wait...
'Activate' operation successfully executed for the device list
in device file 'pairing_dev'.
===>check device status
# symclone -sid 3896 -f pairing_dev query
Device File Name : pairing_dev
Device's Symmetrix ID : 000290103896
Source Device Target Device State Copy
--------------------------------- ---------------------------- ------------ ----
Protected Modified Modified
Logical Sym Tracks Tracks Logical Sym Tracks CGDP SRC <=> TGT (%)
--------------------------------- ---------------------------- ------------ ----
N/A 432F 0 0 N/A 26DF 0 X.X. Copied 100
N/A 4337 0 0 N/A 26E7 0 X.X. Copied 100
N/A 433F 0 0 N/A 26EF 0 X.X. Copied 100
N/A 4347 0 0 N/A 26F7 0 X.X. Copied 100
N/A 434F 0 0 N/A 26FF 0 X.X. Copied 100
N/A 449F 0 0 N/A 2787 0 X.X. Copied 100
N/A 44A7 0 0 N/A 278F 0 X.X. Copied 100
N/A 44AF 0 0 N/A 2797 0 X.X. Copied 100
N/A 44B7 0 0 N/A 279F 0 X.X. Copied 100
Total -------- -------- --------
Track(s) 0 0 0
MB(s) 0.0 0.0 0.0
Legend:
(C): X = The background copy setting is active for this pair.
. = The background copy setting is not active for this pair.
(G): X = The Target device is associated with this group.
. = The Target device is not associated with this group.
(D): X = The Clone session is a differential copy session.
. = The Clone session is not a differential copy session.
(P): X = The pre-copy operation has completed one cycle
. = The pre-copy operation has not completed one cycle
====>terminate relation ship between devices.
# symclone -sid 3896 -f pairing_dev terminate
Execute 'Terminate' operation for the 9 specified device(s)
in device file 'pairing_dev' (y/[n]) ? y
'Terminate' operation execution is in progress for the device list in
device file 'pairing_dev'. Please wait...
'Terminate' operation successfully executed for the device list
in device file 'pairing_dev'.
===>check device status.
# symclone -sid 3896 -f pairing_dev query
The Source device and the Target device do not form a Copy session
Device file 'pairing_dev' does not have any devices that are Clone source devices
====================================[[[[[[ OR]]]]]]]=====================================
1)Create symmetrix disk groups.
2)add devices in these disk groups.
3)perform clone operations.
==>to create symdg
#symdg create testdg
#cat sourceluns
26DF
26E7
26EF
26F7
26FF
2787
278F
2797
279F
==>to add devices to symdg
# for i in `cat sourceluns`; do echo $i; symld -g testdg add dev $i; done
===>to see symdg status
# symdg show testdg
Group Name: testdg
Group Type : REGULAR
Device Group in GNS : No
Valid : Yes
Symmetrix ID : 000290103896
Group Creation Time : Thu Dec 20 13:49:12 2012
Vendor ID : EMC Corp
Application ID : SYMCLI
Number of STD Devices in Group : 9
Number of Associated GK's : 0
Number of Locally-associated BCV's : 0
Number of Locally-associated VDEV's : 0
Number of Locally-associated TGT's : 0
Number of Remotely-associated VDEV's(STD RDF): 0
Number of Remotely-associated BCV's (STD RDF): 0
Number of Remotely-associated TGT's(TGT RDF) : 0
Number of Remotely-associated BCV's (BCV RDF): 0
Number of Remotely-assoc'd RBCV's (RBCV RDF) : 0
Number of Remotely-assoc'd BCV's (Hop-2 BCV) : 0
Number of Remotely-assoc'd VDEV's(Hop-2 VDEV): 0
Number of Remotely-assoc'd TGT's (Hop-2 TGT) : 0
Number of Composite Groups : 0
Composite Group Names : N/A
Standard (STD) Devices (9):
{
----------------------------------------------------------------------------------
Sym Device Cap
LdevName PdevName Dev Config Att. Sts (MB)
----------------------------------------------------------------------------------
DEV001 N/A 26DF RAID-5 (M) RW 69713
DEV002 N/A 26E7 RAID-5 (M) RW 69713
DEV003 N/A 26EF RAID-5 (M) RW 69713
DEV004 N/A 26F7 RAID-5 (M) RW 69713
DEV005 N/A 26FF RAID-5 (M) RW 69713
DEV006 N/A 2787 RAID-5 (M) RW 69713
DEV007 N/A 278F RAID-5 (M) RW 69713
DEV008 N/A 2797 RAID-5 (M) RW 69713
DEV009 N/A 279F RAID-5 (M) RW 69713
}
==>to remove luns from symdg
#cat luns_remove
DEV001
DEV002
DEV003
DEV004
DEV005
DEV006
DEV007
DEV008
DEV009
#for i in `cat luns_remove`; do echo $i; symld -g testdg remove dev $i; done
==>to remove symdg
# symdg delete testdg -force
Requirements:-
1)slect source and target devices
2)source & target devices size must be same may be differnt raids.
3)by using symclone we can perform clone operations.
==>create source and target files.
# more pairing_dev
432F 26DF
4337 26E7
433F 26EF
4347 26F7
434F 26FF
449F 2787
44A7 278F
44AF 2797
44B7 279F
===>first time take full copy of data.
# symclone -sid 3896 -f pairing_dev create -precopy -diff
Execute 'Create' operation for the 9 specified device(s)
in device file 'pairing_dev' (y/[n]) ? y
'Create' operation execution is in progress for the device list in
device file 'pairing_dev'. Please wait...
'Create' operation successfully executed for the device list
in device file 'pairing_dev'.
====>start copying
# symclone -sid 3896 -f pairing_dev activate
Execute 'Activate' operation for the 9 specified device(s)
in device file 'pairing_dev' (y/[n]) ? y
'Activate' operation execution is in progress for the device list in
device file 'pairing_dev'. Please wait...
'Activate' operation successfully executed for the device list
in device file 'pairing_dev'.
===>check device status
# symclone -sid 3896 -f pairing_dev query
Device File Name : pairing_dev
Device's Symmetrix ID : 000290103896
Source Device Target Device State Copy
--------------------------------- ---------------------------- ------------ ----
Protected Modified Modified
Logical Sym Tracks Tracks Logical Sym Tracks CGDP SRC <=> TGT (%)
--------------------------------- ---------------------------- ------------ ----
N/A 432F 0 0 N/A 26DF 0 X.X. Copied 100
N/A 4337 0 0 N/A 26E7 0 X.X. Copied 100
N/A 433F 0 0 N/A 26EF 0 X.X. Copied 100
N/A 4347 0 0 N/A 26F7 0 X.X. Copied 100
N/A 434F 0 0 N/A 26FF 0 X.X. Copied 100
N/A 449F 0 0 N/A 2787 0 X.X. Copied 100
N/A 44A7 0 0 N/A 278F 0 X.X. Copied 100
N/A 44AF 0 0 N/A 2797 0 X.X. Copied 100
N/A 44B7 0 0 N/A 279F 0 X.X. Copied 100
Total -------- -------- --------
Track(s) 0 0 0
MB(s) 0.0 0.0 0.0
Legend:
(C): X = The background copy setting is active for this pair.
. = The background copy setting is not active for this pair.
(G): X = The Target device is associated with this group.
. = The Target device is not associated with this group.
(D): X = The Clone session is a differential copy session.
. = The Clone session is not a differential copy session.
(P): X = The pre-copy operation has completed one cycle
. = The pre-copy operation has not completed one cycle
====>terminate relation ship between devices.
# symclone -sid 3896 -f pairing_dev terminate
Execute 'Terminate' operation for the 9 specified device(s)
in device file 'pairing_dev' (y/[n]) ? y
'Terminate' operation execution is in progress for the device list in
device file 'pairing_dev'. Please wait...
'Terminate' operation successfully executed for the device list
in device file 'pairing_dev'.
===>check device status.
# symclone -sid 3896 -f pairing_dev query
The Source device and the Target device do not form a Copy session
Device file 'pairing_dev' does not have any devices that are Clone source devices
====================================[[[[[[ OR]]]]]]]=====================================
1)Create symmetrix disk groups.
2)add devices in these disk groups.
3)perform clone operations.
==>to create symdg
#symdg create testdg
#cat sourceluns
26DF
26E7
26EF
26F7
26FF
2787
278F
2797
279F
==>to add devices to symdg
# for i in `cat sourceluns`; do echo $i; symld -g testdg add dev $i; done
===>to see symdg status
# symdg show testdg
Group Name: testdg
Group Type : REGULAR
Device Group in GNS : No
Valid : Yes
Symmetrix ID : 000290103896
Group Creation Time : Thu Dec 20 13:49:12 2012
Vendor ID : EMC Corp
Application ID : SYMCLI
Number of STD Devices in Group : 9
Number of Associated GK's : 0
Number of Locally-associated BCV's : 0
Number of Locally-associated VDEV's : 0
Number of Locally-associated TGT's : 0
Number of Remotely-associated VDEV's(STD RDF): 0
Number of Remotely-associated BCV's (STD RDF): 0
Number of Remotely-associated TGT's(TGT RDF) : 0
Number of Remotely-associated BCV's (BCV RDF): 0
Number of Remotely-assoc'd RBCV's (RBCV RDF) : 0
Number of Remotely-assoc'd BCV's (Hop-2 BCV) : 0
Number of Remotely-assoc'd VDEV's(Hop-2 VDEV): 0
Number of Remotely-assoc'd TGT's (Hop-2 TGT) : 0
Number of Composite Groups : 0
Composite Group Names : N/A
Standard (STD) Devices (9):
{
----------------------------------------------------------------------------------
Sym Device Cap
LdevName PdevName Dev Config Att. Sts (MB)
----------------------------------------------------------------------------------
DEV001 N/A 26DF RAID-5 (M) RW 69713
DEV002 N/A 26E7 RAID-5 (M) RW 69713
DEV003 N/A 26EF RAID-5 (M) RW 69713
DEV004 N/A 26F7 RAID-5 (M) RW 69713
DEV005 N/A 26FF RAID-5 (M) RW 69713
DEV006 N/A 2787 RAID-5 (M) RW 69713
DEV007 N/A 278F RAID-5 (M) RW 69713
DEV008 N/A 2797 RAID-5 (M) RW 69713
DEV009 N/A 279F RAID-5 (M) RW 69713
}
==>to remove luns from symdg
#cat luns_remove
DEV001
DEV002
DEV003
DEV004
DEV005
DEV006
DEV007
DEV008
DEV009
#for i in `cat luns_remove`; do echo $i; symld -g testdg remove dev $i; done
==>to remove symdg
# symdg delete testdg -force
No comments:
Post a Comment