存两个命令,方便后期增加硬盘使用,分ext和lvm。
1、查看硬盘path ID
ls -l /dev/disk/by-id/
2、记住硬盘,挂载
ext
xe sr-create type=ext content-type=user device-config:device=/dev/disk/by-id/scsi-SATA_#########SC2BB4BTWL334007QB480QGN name-label=”Local storage”
lvm
xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-id/scsi-SATA_#########SC2BB4BTWL334007QB480QGN name-label=”Local storage”