添加磁盘到xenserver

来源:互联网 发布:linux中安装idea 编辑:程序博客网 时间:2024/06/05 21:53

1. 使用root 用户ssh登录到xenserver

2. 查找想要添加的磁盘信息

cat /proc/partitions   #查看磁盘情况

ll /dev/disk/by-id    #查看磁盘对应的id

3. 查看集群中的主机id

xe host-list

4. 添加磁盘到指定主机

xe sr-create content-type=user device-config:device=/dev/disk/by-id/<scsi-xxxxxxxxxxxxxxxxxxxxxxxxx> host-uuid=<host-uuid> name-label=”Local Storage 2” shared=false type=lvm
或者

xe sr-create content-type=user device-config:device=/dev/disk/by-id/<cciss-xxxxxxxxxxxxxxxxxxxxxxxxx> host-uuid=<host-uuid> name-label=”Local Storage 2” shared=false type=lvm
或者

 xe sr-create content-type=user device-config:device=/dev/<sdx> host-uuid=<host-uuid> name-label=”Local Storage 2” shared=false type=lvm

0 0
原创粉丝点击