Let's say you have three disks in your server;
You can list the disks inside your server using this command:
The operating system is usually installed on the /dev/sda disk.
Here are instructions to partition the additional disk /dev/sdb (the same process would be valid for any other disks, just replace the disk letter)
Initialize the empty disk:
parted /dev/sdb mklabel msdos
Create a new partition to fill the disk:
parted -a optimal /dev/sdb mkpart primary 1M 100%
This should have created the partition /dev/sdb1 You can confirm this by using the command
fdisk -l /dev/sdb and you should see the new partition.
Format the new partition using this command:
Create a new mount folder for the disk:
mkdir /disk2 (if this was your third disk then use /disk3 etc)
Get the UUID of the new partition using this command:
Now you need to add the following line to /etc/fstab replacing the UUID with the correct UUID you got from the command above.
UUID=00000000-XXXX-XXXX-XXXX-000000000000 /disk2 ext4 defaults 0 0
Then mount the disk (this will be done automatically every reboot by the line in /etc/fstab)
You can now add the folder in VirtPanel to the server's list of "Disk Paths" for example:
/vps,/disk2 (/vps is the default location for your first disk)
You will now be able to see the disk usage inside the server's page inside VirtPanel.
I started using VirtPanel in March 2015, the support and service is excellent. The panel is always having new features for server admins and customers added at no extra fees. If I have any server issues VirtPanel are always on hand to offer advice on resolving the issues. I highly recommend VirtPanel to anyone.John E. - xHosts.uk
I mitigated from SolusVM to VirtPanel in early 2015 because of how simple it looked compared to other control panels that are available, including SolusVM. Since they understand networking better than SolusVM it saves me a lot of time installing nodes which I can use to help grow my business further. Any complaints I have had have been corrected and it is working well for myself, my vps customers and my resellers.Lewis B. - HostSavor.com