在xen中彻底删除存储 | 张恒镭的博客

在xen中彻底删除存储

时间:14-07-07 栏目:cloudstack 作者:恒镭, 张 评论:0 点击: 2,019 次

如果直接用 xe sr-forget uuid = xxx

可能会出现Sr is still connected。。

这个时候需要先节操PBD

 

image

 

 

[root@xenserver-test ~]# xe pbd-list
uuid ( RO)                  : 5bd728f5-28f8-a10c-2aff-1d8839a350f2
              host-uuid ( RO): 475f9006-da6b-48b3-aaae-c6ac6f3ea54b
                sr-uuid ( RO): 8973e741-6d1f-a7ea-7983-f2bec6c741c6
          device-config (MRO): device: /dev/sda3
     currently-attached ( RO): true

uuid ( RO)                  : dfe23520-5066-3b17-a0b3-a696105e62a3
              host-uuid ( RO): 475f9006-da6b-48b3-aaae-c6ac6f3ea54b
                sr-uuid ( RO): 73a19daa-1216-a1f8-9c38-ea9f8b25ed40
          device-config (MRO): location: /dev/xapi/block
     currently-attached ( RO): true

uuid ( RO)                  : 1b69dee1-8203-27c9-845f-773ef6d0101c
              host-uuid ( RO): 475f9006-da6b-48b3-aaae-c6ac6f3ea54b
                sr-uuid ( RO): d4bf5d9d-dff1-e4a6-fe6b-64cfce8f7f6a
          device-config (MRO): location: /dev/xapi/cd
     currently-attached ( RO): true

uuid ( RO)                  : ce3f1ee2-b41c-1f62-708a-0b4c045802b9
              host-uuid ( RO): 475f9006-da6b-48b3-aaae-c6ac6f3ea54b
                sr-uuid ( RO): 83c2d604-4f8b-c8dd-aab4-3d35a3f308a7
          device-config (MRO): location: /opt/xensource/packages/iso; legacy_mode: true
     currently-attached ( RO): true

 

[root@xenserver-test ~]# xe pbd-unplug uuid=5bd728f5-28f8-a10c-2aff-1d8839a350f2
[root@xenserver-test ~]# xe sr-forget uuid=8973e741-6d1f-a7ea-7983-f2bec6c741c6

这样就ok了。

声明: 本文由( 恒镭, 张 )原创编译,转载请保留链接: 在xen中彻底删除存储

在xen中彻底删除存储:等您坐沙发呢!

发表评论




------====== 本站公告 ======------
欢迎关注我的博客。

其他