If you have opted for a storage add-on, and the drive has been added as a secondary drive, appart from your boot drive, depending on your linux distribution, you will have to add the drive in the operating system manualy.
This is usually a simple task, 1- to 15 minutes max, and has to be done only once for each drive added.
You can also install an add-on like cockpit, and do this in WEB GUI.
https://cockpit-project.org/running.html
For example, on Debian 12 you can install cockpit with 2 steps:
If you wish to login with root user, remove "root" entry from this file
/etc/cockpit/disallowed-users
Now you can login to your VPS via web:
https://my server ip:9090
From there you can add the addon drive via the storage option.
If you prefer manual CLI setup, there are some things to consider, we recommend these as we have done extensive testing on this subject.
- Always add the drive using UUID in /etc/fstab
- Create a GPT partition table, not MBR. MBR has a limit of 2TB
- Format the new drive with XFS file system not EXT4. DO NOT USE ZFS in VPS!
- Mount the drive in /mnt/XXTB-disk0Y, XX representing the size of the drive and y the number, as you might have 1,2 or more.
We recomend that you follow these links as guidance, please change the drive ID/NAME according to your system:
Great article from worldstream : https://kb.worldstream.com/mounting-a-disk-in-linux/
Linux in General: https://www.digitalocean.com/community/tutorials/how-to-partition-and-format-storage-devices-in-linux
Ubuntu/Debian: https://www.cyberciti.biz/faq/linux-finding-using-uuids-to-update-fstab/
Centos: https://www.answertopia.com/centos-stream/adding-a-new-disk-drive-to-a-centos-stream-system/
Version 1
Date: 01-January-2024