[root@xcp-ng-192 ~]# fdisk -l
Disk /dev/sda: 1497.2 GB, 1497198755840 bytes, 2924216320 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt
Disk identifier: A6FCA0BE-410D-4939-87F0-0D85816499A8
# Start End Size Type Name
1 46139392 83888127 18G Microsoft basic
2 8390656 46139391 18G Microsoft basic
3 87033856 2924216286 1.3T Linux LVM
4 83888128 84936703 512M BIOS boot
5 2048 8390655 4G Microsoft basic
6 84936704 87033855 1G Linux swap
Disk /dev/sdb: 31.0 GB, 31004295168 bytes, 60555264 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0xcad4ebea
Device Boot Start End Blocks Id System
/dev/sdb4 * 256 60555263 30277504 c W95 FAT32 (LBA)
######## 注 : 3 87033856 2924216286 1.3T Linux LVM 这个磁盘最大,为本地磁盘,也就是 sda3#################
[root@xcp-ng-192 ~]# xe host-list
uuid ( RO) : 5cba324a-f1bc-4bf2-8cb1-8b06a1ee9151
name-label ( RW): xcp-ng-192.168.5.107
name-description ( RW): Default install
[root@xcp-ng-192 ~]# xe sr-create content-type=user device-config:device=/dev/sda3 host-uuid=5cba324a-f1bc-4bf2-8cb1-8b06a1ee9151 name-label="Local storage" shared=false type=lvm
d2208f22-3ca6-780d-6585-61349c235b46
[root@xcp-ng-192 ~]#