在日常Tdev设备的管理中,存储管理员常常会遇到存储空间回收的问题,如何有效且完美的做到Tdev设备的回收呢?下面的葵花宝典将为你一一解读:

 

 

1.根据需要修改AutoProvisioning Group中的内容。

1)如果删除个别LUN,可以直接从Storage Group中删除

symaccess -sid 57 remove -name vmware_cluster1 -type storage devs 425:429

2)如果删除一个Cluster中所有主机访问的所有LUN,可以直接删除相应View、Storage Group、Initiator Group、Port Group

symaccess -sid 57 delete view -name UCS1_1_view –nop

symaccess -sid 57 -name UCS1_1_ig -type init delete -nop –force

symaccess -sid 57 -name UCS1_1_pg -type port delete -nop –force

symaccess -sid 57 -name vmware_cluster1 -type storage delete -nop –force

3)如果删除一个主机访问的所有LUN,可以直接删除相应View、Initiator Group、Port Group

symaccess -sid 57 delete view -name UCS1_1_view –nop

symaccess -sid 57 -name UCS1_1_ig -type init delete -nop –force

symaccess -sid 57 -name UCS1_1_pg -type port delete -nop –force

 

 

2.Unbind从Pool

symconfigure -sid 57 -cmd "unbind tdev 425:429 from pool FCPool;"   preview -nop

symconfigure -sid 57 -cmd "unbind tdev 425:429 from pool FCPool;"   commit -nop

 

 

3.删除Meta

symconfigure -sid 57 -cmd "dissolve meta dev 425:429;" preview –nop

symconfigure -sid 57 -cmd "dissolve meta dev 425:429;" commit –nop

 

 

4.删除Thin Device

symconfigure -sid 57 -cmd "delete dev 425:42c;" preview -nop

symconfigure -sid 57 -cmd "delete dev 425:42c;" commit -nop