1and1 Help Centre Categories

print article

Increase the Physical Volume Size of a 1&1 Dynamic Cloud Server Linux

For 1&1 Dynamic Cloud Server Linux

Learn how to fix the incorrect reporting of disk space on a 1&1 Dynamic Cloud Server Linux after increasing disk space for the server through the 1&1 Control Panel.

This article describes how to manually increase the physical volume size of a Dynamic Cloud Server after increasing the disk space for 1&1 Dynamic Cloud Server Linux through the 1&1 Control Panel. Follow the first steps to see if your physical volume size needs to be increased.

Step 1
After the disk space increase for your Dynamic Cloud Server has completed, log into the server via SSH.
Step 2
Type fdisk -l and press ENTER. You are looking for the total size of the disk highlighted below in red. One of the partitions is Linux LVM. Total Disk Size
Total Disk Size
Step 3
Type the pvs command (physical volume show) and press ENTER. Ensure that the difference in size between the fdisk output and the PSize value shown from the pvs command is more than 100GB. If the difference in size between the two is less than 100GB, you do not need to follow the next steps. Show Physical Volume
Show Physical Volume
Step 4
Type fdisk /dev/xvda. The value after fdisk may change depending on your server. Use the Disk name shown in the output of fdisk -l and press ENTER. Format Disk
Format Disk
Step 5
Fdisk will prompt you to enter a command. Type p (for print) and hit ENTER to print the partitions on the disk.

You will see a similar output as the fdisk -l command. The last partition will be an LVM type. Delete this partition and re-create it to use all available space from the disk size increase. Deleting the partition and creating a new, larger partition in its place will not delete the data on the disk. The partition must be deleted and recreated since it is not possible to resize it.
Please note:
If at any time you believe you have made a mistake, type q and press ENTER to quit without saving changes and then start the process over.
Re-Create Partition
Re-Create Partition
Step 6
Type d (for delete) and press ENTER.
Type 3 and press ENTER to specify the 3rd partition is the one to delete.
Specify Partition for Deletion
Specify Partition for Deletion
Step 7
Type p and press ENTER again to show the partitions. The third partition will be gone.
Review Partitions
Review Partitions
Step 8
Type n to create a new partition and press ENTER.
Next, type p for primary partition and press ENTER.
Type 3 as the partition number and press ENTER.
When prompted for the First cylinder, press ENTER to use the default value.
When prompted for the Last cylinder, press ENTER again to use the default value. Create New Primary Partition
Create New Primary Partition
Step 9
Type p and press ENTER again to view the partitions. There will now be a third partition. You will notice that the partition is no longer a Linux LVM type but a Linux type. View new Partitions
View new Partitions
Step 10
Type t to change the partition type and press ENTER.
Type 3 as the partition number and press ENTER.
Type 8e as the Hex code and press ENTER.

The partition type has been changed to Linux LVM.
Changed System Type of Partition
Changed System Type of Partition
Step 11
Type p and press ENTER to list the partitions again. This time the third partition will be Linux LVM. Review List of Partitions
Review List of Partitions
Step 12
Type w and press ENTER to write (save) changes and quit fdisk. You will receive a notice that the new partition table will be used after the next reboot.
Save Changes and Quit
Save Changes and Quit
Step 13
Reboot the server by typing shutdown -r now and pressing ENTER. System will Reboot Now
System will Reboot Now
Step 14
Give the server a few minutes to reboot, then connect via SSH again. Type fdisk -l and press ENTER again to check the disk size. The disk size listed by fdisk will not have changed.Check Disk Size
Check Disk Size
Step 15
Type pvs and press ENTER to check the physical volume size. The value will not have changed and the difference between the two will still be more than 100GB. Check the Physical Volume Size
Check the Physical Volume Size
Step 16
Type pvresize /dev/xvda3. The value after fdisk may change depending on your server. The Disk name will shown when you type fdisk -l and press ENTER. The physical volume has been resized.
Physical Volume Resized
Physical Volume Resized
Step 17
Type pvs one last time and press ENTER. The PSize value will now be slightly less that the fdisk output size, but not by more than 100GB. PSize Value Decreased
PSize Value Decreased