您的位置:首页 > 其它

xenserver增加新硬盘

2015-11-23 15:57 190 查看
1. 查看所有硬盘了的id

# ls -l /dev/disk/by-id/


2. 挂载

# xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-uuid/13942f1e-5b2b-4073-b04f-af96f4446f30
name-label="Local storage 2"


3. 列出pdb模块

# xe pbd-list
uuid ( RO)                  : ef93ebb5-255c-4a4c-b29b-b96e7a4a4a76
host-uuid ( RO): bf8e993a-b79b-4f96-a81c-9f6ac86ae2f5
sr-uuid ( RO): 472c8021-f103-7cb4-7fed-93e077ea5b8a
device-config (MRO): location: /opt/xensource/packages/iso; legacy_mode: true
currently-attached ( RO): true


4. 断开本地存储连接

# xe pbd-unplug uuid="uuid of PBD"


5. 列出存储

# xe sr-list

uuid ( RO)                : 3efee1e8-7f88-ff6c-b527-7873ed7d6723
name-label ( RW): Local storage
name-description ( RW):
host ( RO): xenserver-lfywfkzt
type ( RO): lvm
content-type ( RO): user


6. 卸载存储

# xe sr-destroy uuid="uuid of SR"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: