How to Add New Partition in Linux using LVM (Logical Volume Manager)

This concept will only work if we created our partition using Logical Volume Manager while installing the Operating System.

First of all find out the current usage and add 1 disk using VMWare Workstation, this step will be similar to Physical Machine as well.

1

Find out whether fdisk -l displays /dev/sdb:

2

Create the partition for /dev/sdb as /dev/sdb1.

3

Now create the PV Volume on new created disk /dev/sdb1 as below:

4

As we can we Physical Space has been displayed we need to extend the Volume Group using “vgextend”:

5

Confirm the Volume group has been extended or not, now we can see size has been increased to 39.79 GB.

6

Now finally find out the Logical Volume which is currently there:

7

Now extend the Logical Volume per the below command:

8

After the extend the logical volume we need to re-size the Logical Volume

9

Verify the space again, it has been increased to 14 Gig to 34 Gig.

10

Thanks for viewing.

Hope it helps…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s