xen xcp-ng – How to add a drive or RAID array over 2 TB

  linux, xcp-ng
# check drives and partitions
fdisk -l

# make a 23.9 TB partition using parted:

parted /dev/sdb

mklabel gpt

yes

# either this:
mkpart primary 1 100%
align-check optimal 1

# or this:
unit TB
print
mkpart primary 0.00TB 23.90TB


print
quit


# check drives and partitions
fdisk -l

# format it
mkfs.ext4 /dev/sdb1