命令总结:
1)symdev -sid XXX list -noport (找到未用的std和std+bcv)
2) symconfigure -sid 055 -cmd "bind tdev 09D4 to pool STD_VP_01_00;" commit -nop (bind to pool)
3) symaccess -sid XXX -name <SGname> -type storage add devs <Dev id>
symaccess -sid 55 -name GBE01101_GBE01201_SG -type storage add devs 09D4:09DB (8块STD盘加到STD SG, bcv也加进去)
**************以上是在storage side的添加,把device bind进pool,然后map到SG,下面的步骤是dg相关的,dg只是为了备份用,和os side的vg pv用来做partition use是完全不同的,所以decom的时候如果不删除dg,server上也是能看到的,但是他们不能access进dg**************************************
4-1) symld -sid 055 -g <Device Goup> add dev <Dev ID> <Device Logical Name>
symld -sid 055 -g gbe01300_vg1_EAS01P2_01 add dev 09D4 gbe01300_vg1_EAS01P2_01_009 (挨个把device添加进dg并给一个logic name,std和bcv是同一个dg)
4-2) symbcv -sid <EMC ID> -g <Device Group Name> add dev <Device> <Logical Device>
symbcv -sid 055 -g gbe01300_vg1_EAS01P2_01 add dev 0E94 gbe01300_vg1_EAS01P2_01_BCV009 (加BCV device)
5) symdg -sid XXX show <Device Group> 确认添加成功
6) symclone -g < Device Group Name > create -precopy -diff -c 5 -i 60 < Device Logical Name> BCV ld <BCV Device Logical Name > -nop (建立p-vol和s-vol的克隆关系,不是以device name来建立,是以device logic name来建立)
symclone -g gbe01300_vg1_EAS01P2_01 create -precopy -diff -c 5 -i 60 gbe01300_vg1_EAS01P2_01_009 BCV ld gbe01300_vg1_EAS01P2_01_BCV009 -nop
7) symclone -g <Device Group Name> activate -consistent -c 5 -i 60 < Device Logical Name> BCV ld <BCV Device Logical Name > -nop (Activate Clone)
symclone -g gbe01300_vg1_EAS01P2_01 activate -consistent -c 5 -i 60 gbe01300_vg1_EAS01P2_01_009 BCV ld gbe01300_vg1_EAS01P2_01_BCV009 -nop
8) symclone -g tag1d101_vg1_TXA01P3_01 query 确认克隆关系建立成功
9-1) symclone -g <dg name> recreat -precopy 执行copy
9-2)symclone -g <dg name> que
10) symclone -g <dg name> activated 当copy 到100%时执行这条命令
****************************以下为详细步骤*************************************************
实际项目,扩symetrix系列的VMAX存储的lun,挂给server。步骤如下:
5LU -- gbe01300_vg1_EAS1P2_01
2lU -- gbe01300_vg1_EAS01P3_01
1LU -- gbe01300_vg1_EAS01P11_01 (device group)
server需要扩100G,因为vmax在出厂就设置了13.5G*n个的thin lun了。所以扩100G的话给8个standerd thin device(STD)就好了,然后作为镜像clone的BCV盘也需要同样大小的8个device。
扩展逻辑如下:
从存储上选择8块没有被使用的STD Devic和8块没有使用的BCV Devices加到Device Group里面, 然后创建clone关系。
具体步骤如下:
Extension steps for SAN:
1. Select STD devices and BCV devices (找到我们要加的盘)
#symdev -sid XXX list -noport (输出的都是没有使用的盘,大家选13.5G的,加8块就选8个,选8个STD的盘,选8个BCV的盘)
gepbkp07:/ # symdev -sid 055 list -noport (找出所有未使用的thin device volume)
09D4 Not Visible ???:? NA:NA TDEV N/Grp'd NR 13894
09D5 Not Visible ???:? NA:NA TDEV N/Grp'd NR 13894
09D6 Not Visible ???:? NA:NA TDEV N/Grp'd NR 13894
09D7 Not Visible ???:? NA:NA TDEV N/Grp'd NR 13894
09D8 Not Visible ???:? NA:NA TDEV N/Grp'd NR 13894
09D9 Not Visible ???:? NA:NA TDEV N/Grp'd NR 13894
09DA Not Visible ???:? NA:NA TDEV N/Grp'd NR 13894
09DB Not Visible ???:? NA:NA TDEV N/Grp'd NR 13894
--------------------------------------------------------------------------------------------
0E94 Not Visible ???:? NA:NA BCV+TDEV N/Asst'd RW 13894
0E95 Not Visible ???:? NA:NA BCV+TDEV N/Asst'd RW 13894
0E96 Not Visible ???:? NA:NA BCV+TDEV N/Asst'd RW 13894
0E97 Not Visible ???:? NA:NA BCV+TDEV N/Asst'd RW 13894
0E98 Not Visible ???:? NA:NA BCV+TDEV N/Asst'd RW 13894
0E99 Not Visible ???:? NA:NA BCV+TDEV N/Asst'd RW 13894
0E9A Not Visible ???:? NA:NA BCV+TDEV N/Asst'd RW 13894
0E9B Not Visible ???:? NA:NA BCV+TDEV N/Asst'd RW 13894
---------------------------------------------------------------------------------------------
2. Bind STD devices to STD Pool, Bind BCV devices to BCV Pool.
#symconfigure -sid XXX -cmd "bind tdev <Dev id> to pool <PoolName>;" prep (试运行一下,如果成功,执行下一步commmit)
#symconfigure -sid XXX -cmd "bind tdev <Dev id> to pool <PoolName>;" commit
(这次做的过程中,BCV的盘,已经bind到BCV POOL了,但是STD的盘没有bind到STD POOL,所以这一步就只要把STD盘bind到STD POOL
symconfigure -sid 055 -cmd "bind tdev 09D4 to pool STD_VP_01_00;" commit -nop
symconfigure -sid 055 -cmd "bind tdev 09D5 to pool STD_VP_01_00;" commit -nop
symconfigure -sid 055 -cmd "bind tdev 09D6 to pool STD_VP_01_00;" commit -nop
symconfigure -sid 055 -cmd "bind tdev 09D7 to pool STD_VP_01_00;" commit -nop
symconfigure -sid 055 -cmd "bind tdev 09D8 to pool STD_VP_01_00;" commit -nop
symconfigure -sid 055 -cmd "bind tdev 09D9 to pool STD_VP_01_00;" commit -nop
symconfigure -sid 055 -cmd "bind tdev 09DA to pool STD_VP_01_00;" commit -nop
symconfigure -sid 055 -cmd "bind tdev 09DB to pool STD_VP_01_00;" commit -nop
3. Add STD device to STD SG, Add BCV devices to BCV SG.(把8块STD盘加到STD storage group, 8块BCV盘加到BCV storage group)(把16个lun加到两个sg,一个是std,一个是bcv,主机可以识别到)
#symaccess -sid XXX -name <SGname> -type storage add devs <Dev id>
symaccess -sid 55 -name GBE01101_GBE01201_SG -type storage add devs 09D4:09DB (8块STD盘加到STD SG)
symaccess -sid 55 -name GEPBKP01_GEPBKP02_SG02 -type storage add devs 0E94:0E9B (8块BCV盘加到BCV SG)
------------------------------------------------------
加到SG里面就可以通知OS team 扫描硬盘了。 下面创建Clone关系。
------------------------------------------------------
4. Add STD devices into Device Group(按规划的521添加进dg,std 与 bcv是不区分dg的,都是加到同样的8个dg里,注意一下。)
symld -sid 055 -g <Device Goup> add dev <Dev ID> <Device Logical Name>
symld -sid 055 -g gbe01300_vg1_EAS01P2_01 add dev 09D4 gbe01300_vg1_EAS01P2_01_009
symld -sid 055 -g gbe01300_vg1_EAS01P2_01 add dev 09D5 gbe01300_vg1_EAS01P2_01_010
symld -sid 055 -g gbe01300_vg1_EAS01P2_01 add dev 09D6 gbe01300_vg1_EAS01P2_01_011
symld -sid 055 -g gbe01300_vg1_EAS01P2_01 add dev 09D7 gbe01300_vg1_EAS01P2_01_012
symld -sid 055 -g gbe01300_vg1_EAS01P2_01 add dev 09D8 gbe01300_vg1_EAS01P2_01_013
symld -sid 055 -g gbe01300_vg1_EAS01P3_01 add dev 09D9 gbe01300_vg1_EAS01P3_01_007
symld -sid 055 -g gbe01300_vg1_EAS01P3_01 add dev 09DA gbe01300_vg1_EAS01P3_01_008
symld -sid 055 -g gbe01300_vg1_EAS01P11_01 add dev 09DB gbe01300_vg1_EAS01P11_01_006
5. Add BCV devices into Device Group
symbcv -sid <EMC ID> -g <Device Group Name> add dev <Device> <Logical Device>
symbcv -sid 055 -g gbe01300_vg1_EAS01P2_01 add dev 0E94 gbe01300_vg1_EAS01P2_01_BCV009
symbcv -sid 055 -g gbe01300_vg1_EAS01P2_01 add dev 0E95 gbe01300_vg1_EAS01P2_01_BCV010
symbcv -sid 055 -g gbe01300_vg1_EAS01P2_01 add dev 0E96 gbe01300_vg1_EAS01P2_01_BCV011
symbcv -sid 055 -g gbe01300_vg1_EAS01P2_01 add dev 0E97 gbe01300_vg1_EAS01P2_01_BCV012
symbcv -sid 055 -g gbe01300_vg1_EAS01P2_01 add dev 0E98 gbe01300_vg1_EAS01P2_01_BCV013
symbcv -sid 055 -g gbe01300_vg1_EAS01P3_01 add dev 0E99 gbe01300_vg1_EAS01P3_01_BCV007
symbcv -sid 055 -g gbe01300_vg1_EAS01P3_01 add dev 0E9A gbe01300_vg1_EAS01P3_01_BCV008
symbcv -sid 055 -g gbe01300_vg1_EAS01P11_01 add dev 0E9B gbe01300_vg1_EAS01P11_01_BCV006
6. Show Device Group(确认STD和BCV的盘都在DG里面)
symdg -sid XXX show <Device Group>
symdg -sid 055 show gbe01300_vg1_EAS01P2_01
symdg -sid 055 show gbe01300_vg1_EAS01P3_01
symdg -sid 055 show gbe01300_vg1_EAS01P11_01
7. Create Clone Between STD and BCV devices
symclone -g < Device Group Name > create -precopy -diff -c 5 -i 60 < Device Logical Name> BCV ld <BCV Device Logical Name > -nop
symclone -g gbe01300_vg1_EAS01P2_01 create -precopy -diff -c 5 -i 60 gbe01300_vg1_EAS01P2_01_009 BCV ld gbe01300_vg1_EAS01P2_01_BCV009 -nop
symclone -g gbe01300_vg1_EAS01P2_01 create -precopy -diff -c 5 -i 60 gbe01300_vg1_EAS01P2_01_010 BCV ld gbe01300_vg1_EAS01P2_01_BCV010 -nop
symclone -g gbe01300_vg1_EAS01P2_01 create -precopy -diff -c 5 -i 60 gbe01300_vg1_EAS01P2_01_011 BCV ld gbe01300_vg1_EAS01P2_01_BCV011 -nop
symclone -g gbe01300_vg1_EAS01P2_01 create -precopy -diff -c 5 -i 60 gbe01300_vg1_EAS01P2_01_012 BCV ld gbe01300_vg1_EAS01P2_01_BCV012 -nop
symclone -g gbe01300_vg1_EAS01P2_01 create -precopy -diff -c 5 -i 60 gbe01300_vg1_EAS01P2_01_013 BCV ld gbe01300_vg1_EAS01P2_01_BCV013 -nop
symclone -g gbe01300_vg1_EAS01P3_01 create -precopy -diff -c 5 -i 60 gbe01300_vg1_EAS01P3_01_007 BCV ld gbe01300_vg1_EAS01P3_01_BCV007 -nop
symclone -g gbe01300_vg1_EAS01P3_01 create -precopy -diff -c 5 -i 60 gbe01300_vg1_EAS01P3_01_008 BCV ld gbe01300_vg1_EAS01P3_01_BCV008 -nop
symclone -g gbe01300_vg1_EAS01P11_01 create -precopy -diff -c 5 -i 60 gbe01300_vg1_EAS01P11_01_006 BCV ld gbe01300_vg1_EAS01P11_01_BCV006 -nop
8 Activate Clone
symclone -g <Device Group Name> activate -consistent -c 5 -i 60 < Device Logical Name> BCV ld <BCV Device Logical Name > -nop
symclone -g gbe01300_vg1_EAS01P2_01 activate -consistent -c 5 -i 60 gbe01300_vg1_EAS01P2_01_009 BCV ld gbe01300_vg1_EAS01P2_01_BCV009 -nop
symclone -g gbe01300_vg1_EAS01P2_01 activate -consistent -c 5 -i 60 gbe01300_vg1_EAS01P2_01_010 BCV ld gbe01300_vg1_EAS01P2_01_BCV010 -nop
symclone -g gbe01300_vg1_EAS01P2_01 activate -consistent -c 5 -i 60 gbe01300_vg1_EAS01P2_01_011 BCV ld gbe01300_vg1_EAS01P2_01_BCV011 -nop
symclone -g gbe01300_vg1_EAS01P2_01 activate -consistent -c 5 -i 60 gbe01300_vg1_EAS01P2_01_012 BCV ld gbe01300_vg1_EAS01P2_01_BCV012 -nop
symclone -g gbe01300_vg1_EAS01P2_01 activate -consistent -c 5 -i 60 gbe01300_vg1_EAS01P2_01_013 BCV ld gbe01300_vg1_EAS01P2_01_BCV013 -nop
symclone -g gbe01300_vg1_EAS01P3_01 activate -consistent -c 5 -i 60 gbe01300_vg1_EAS01P3_01_007 BCV ld gbe01300_vg1_EAS01P3_01_BCV007 -nop
symclone -g gbe01300_vg1_EAS01P3_01 activate -consistent -c 5 -i 60 gbe01300_vg1_EAS01P3_01_008 BCV ld gbe01300_vg1_EAS01P3_01_BCV008 -nop
symclone -g gbe01300_vg1_EAS01P11_01 activate -consistent -c 5 -i 60 gbe01300_vg1_EAS01P11_01_006 BCV ld gbe01300_vg1_EAS01P11_01_BCV006 -nop
9 Query DG's
symclone -g tag1d101_vg1_TXA01P3_01 query
symclone -g gbe01300_vg1_EAS01P3_01 query
symclone -g gbe01300_vg1_EAS01P11_01 query
========================到这一步SAN的扩展就好了,下面还要做备份=============
转载于:https://blog.51cto.com/10851095/1723315