KingServer

Registered
Feb 9, 2013
1
0
1
cPanel Access Level
Root Administrator
Hi

I want to resize the root partition

/dev/mapper/vg_server-lv_root
current size : 50 GB
resize to 250 GB

how to resize this partition ?

Regards :D
 

InterServed

Well-Known Member
Jul 10, 2007
275
18
68
cPanel Access Level
DataCenter Provider
As long as you have free space on your PV ( run command: pvs to see how much free space you got) you can do the following:
lvextend -L+200G /dev/mapper/vg_server-lv_root
resize2fs /dev/mapper/vg_server-lv_root
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
Houston, TX
cPanel Access Level
Root Administrator
First you must boot via other OS like live OS or rescue.
Use program like parted/gparted and resize your root partition.:)
With LVE (Logical Volume Management), which it appears the original poster is using, you do not need to actually resize the partition. Resizing the partition will cause data loss. Instead, with LVE, add space to the logical volume. The ability to resize logical volumes without repartitioning and reformatting is a key feature of LVE.

Never make any changes to your partitions or logical volumes without first making full backups of all of your data and testing those backups to make sure they are good.