xen xcp-ng – How to add a new disk in xcp-ng (ex. on a Dell r710)

  linux, xcp-ng
# ssh into the box as root (or use the console)


# list all the disks by id
ll /dev/disk/by-id/


# find your device, for example:
# lrwxrwxrwx 1 root root  9 Oct  2 02:24 ata-SanDisk_SSD_PLUS_1000GB_19244L449713 -> ../../sdb
# my SanDisk SSD is on /dev/sdb


# find your host's uuid
xe host-list


# create the new drive
xe sr-create content-type=user device-config:device=/dev/sdb host-uuid=abcd-efg-123-555-asdfasdf name-label="sandisk-1tb-ssd" shared=false type=lvm


# go to scp-ng center and look under the server and the new drive should show up.


# find it, click on Storage, click Add, and create a new virtual disk using that drive.