1.查看磁盘分区
[root@xenserver ~]# ls -l /dev/disk/by-path/ 总计 0 lrwxrwxrwx 1 root root 9 07-10 16:21 pci-0000:00:1f.2-scsi-0:0:0:0 -> ../../sr0 lrwxrwxrwx 1 root root 9 07-10 16:21 pci-0000:03:00.0-scsi-0:2:0:0 -> ../../sda lrwxrwxrwx 1 root root 10 07-10 16:21 pci-0000:03:00.0-scsi-0:2:0:0-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 07-10 16:21 pci-0000:03:00.0-scsi-0:2:0:0-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 07-10 16:21 pci-0000:03:00.0-scsi-0:2:0:0-part3 -> ../../sda3 lrwxrwxrwx 1 root root 9 07-10 16:21 pci-0000:03:00.0-scsi-0:2:1:0 -> ../../sdb lrwxrwxrwx 1 root root 9 07-10 16:21 pci-0000:03:00.0-scsi-0:2:2:0 -> ../../sdc lrwxrwxrwx 1 root root 9 07-10 16:21 pci-0000:03:00.0-scsi-0:2:3:0 -> ../../sdd2.挂载磁盘到系统中
[root@xenserver by-path]# xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-path/pci-0000:03:00.0-scsi-0:2:1:0 name-label="diskb" ftffa09f-eb93-3d87-5f55-6ed2bf5ca0ad [root@xenserver by-path]# xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-path/pci-0000:03:00.0-scsi-0:2:2:0 name-label="diskc" 816ea80b-ea93-2c89-2d57-8ed2bf7aa0ed [root@xenserver by-path]# xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-path/pci-0000:03:00.0-scsi-0:2:3:0 name-label="diskd" 07063763-ae3a-71ba-3574-bb7b95c47a033. 就可以进入XenCenter里查看了。