Add a new disk on a proxmox VM

  1. Add disk to the VM via proxmox web interface
  2. Create partitions table of type GPT
parted /dev/sdb mklabel gpt
  1. Create the first partition
parted -a opt /dev/sdb mkpart primary ext4 0% 100%
  1. Create the filesystem
mkfs.ext4 -L storage-label /dev/sdb1
  1. Create the mountpoint
mkdir /mnt/storage
  1. Modify /etc/fstab
echo "LABEL=storage-label /mnt/storage ext4 defaults,noatime,errors=remount-ro 0 2" >> /etc/fstab