Hi community.
I upgraded from SSD 2016 1 to SSD 2016 2. So now I have 10GB disk space more. According to the OVH guide at the following link
https://docs.ovh.com/gb/en/vps/repartitioning-vps-after-upgrade/
I should unmont the partition, delete it, create a new one. But I'd prefer to just create a new partition for the additional 10GB and then mount them in the current disk in order to avoid data backup and or loss. Any suggestion on how to do it?
lsblk command give me
vda 253:0 0 20G 0 disk
└─vda1 253:1 0 10G 0 part /
How to create a vda2 of 10G and mount somewhere in the existing vda1?
Thanks in advance to any suggestion.
Thank you AnthonyR.
I'll try it asap. Anyway it seems more or less what I was looking for.
Regards,
CARLOT.
HOPE IT COULD BE USEFUL TO SOMEONE
According to the OVH article
https://docs.ovh.com/gb/en/vps/repartitioning-vps-after-upgrade/ https://docs.ovh.com/gb/en/vps/repartitioning-vps-after-upgrade/
after a VPS upgrade to use the additional disk space you need to do a re-partitioning of the hard-disk.
But HD partitioning could bring to a data loss. A good alternative way could be to create a new partition using the new added disk space and the mount it on the first partition. So here it is the procedure I used:
fdisk /dev/vda (to work on the disk)
type n (to create a new partition)
the default is p (primary partition) so just push enter
the default is the entire disk space added with the upgrade so just pu enter
type w to write to disk
reboot -f (reboot needed to see the new partition)
mkfs -t ext4 /dev/vda2 (to format the new partition with ext4 file system)
mkdir /directory_name_where_mount_the_partition
nano /etc/fstab
------------------------- into /etc/fstab add the following line ------------------------
/dev/vda2 /directory_name_where_mount_the_partition ext4 defaults 0 0
---------------------------------------------------------------------------------------------------
reboot -f (reboot needed to mount definitively the partition)
I hope this could help
Thanks again to AnthonyR