Systems90 by Webglobe
  • Help
  • API Documentation
  • Login
Explore help topics
  • General questions
  • First steps
  • Operating systems
  • Backup & Storages
  • Network settings
  • Configuration changes
  • User interface
  • Billing
  1. Virtual servers (VPS)
  2. Operating systems
  3. Linux
  4. How to edit partitions on Linux after upgrading the VPS plan?

How to edit partitions on Linux after upgrading the VPS plan?

If you installed the system yourself and are using LVM, the general procedure is as follows:

  • We do not modify existing partitions, but instead create a new partition via fdisk (eg sda2).
  • After adding the partition, restart the VPS.
  • Now you add the new partition (here sda2) to LVM, the commands are approximately the following and may vary individually:
    1. Initialization of sda2 partition for use with LVM, sda2 - new partition created by fdisk
      
      							pvcreate /dev/sda2
      						
    2. You can find out the name of the group you want to extend by using the lvs - VG column command
      
      							vgextend GROUP /dev/sda2
      						
    3. The unit name can be found in the same way as the group - column LV
      
      							/dev/mapper/GROUP-UNIT
      						
    4. Extension about 15 GB
      
      							lvextend --size +15G /dev/mapper/GROUP-UNIT
      						
    5. Inflating an existing filesystem over LVM
      
      							resize2fs /dev/GROUP/UNIT
      						
      For CentOS with XFS, however, resize2fs cannot be used, so it is necessary to select xfs_growfs with the mountpoint path eg.
      
      							xfs_growfs /home
      						
For VPS servers with WebApps , the disk partition is automatically modified after the VPS plan upgrade.