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