How do I use the additional disk?
Book the additional disk under Add-ons – in 10 GB steps.
- Container (LXC): it is mounted at
/mnt/dataright away and ready to use. - KVM: it appears as a second disk (usually
/dev/sdb) and needs to be formatted once:
lsblk
mkfs.ext4 /dev/sdb
mkdir -p /mnt/data
echo '/dev/sdb /mnt/data ext4 defaults,nofail 0 2' >> /etc/fstab
mount -a
Enlarging works any time while running and keeps your data (on KVM run resize2fs /dev/sdb afterwards). Shrinking is technically not possible: the disk is then recreated empty in the new size – back up your data first.
Was this helpful?