How to Add Disk to Ubuntu LVM

How to Add Disk to Ubuntu LVM

Follow these steps to add your new disk to ubuntu LVM

1.) Login to your server

2.) Install Logical Volume Manager ( If its not installed ).

sudo apt-get install system-config-lvm

3.) Check the name of your new disk by below command

ls /dev/sd*

4.) Convert your new disk to a physical volume

sudo pvcreate /dev/<your disk name>

5.) Check your Machine’s Volume Group Name by below command


6.) Add the physical volume to the volume group with below command.

sudo vgextend <<your volume group name>> /dev/sdb

7.) Check your logical volume path by using below command


8.) Allocate the physical volume to a logical volume, add 100% physical volume to existing logical volume

sudo lvextend -l +100%FREE /dev/<<your volume group name>>/<your volume>

9.) Resize the file system on the logical volume so it uses the additional space

sudo resize2fs /dev/<<your volume group>>/<<your volume>>


No Comments

Sorry, the comment form is closed at this time.