How to add More Space in pre-existing mount Point – using LVM (RHEL/OEL 6)

Just to achieve that we added 1 disk in the VM environment and switched on the machine.

Verify the current disk usage:

1

Add the new disk and verify using below command:

2

Partition the new added disk:

3

So now we have /dev/sdb1 new formatted partition created to use to increase the size of mount point. Create the physical volume out of this new partition:

4

Find out all available physical volume presented:

5

Find out the volume group name which we really need to extend and extend it using vgextend command like below:

6

Now check again vgdisplay:

7

We can see that 39.99 GB is visible now from vgdisplay command.

Now we have to find out which logical volume has to extend finally, find out through lvdisplay command:

9

So the actual LV we have to increase is – /dev/vg_oralinux/LogVol01.

Use command – lvextend to add space to logical volume:

10

Still it did not add the space to logical volume, we just need 1 more step to get this done.

Use resize2fs command to add space in logical volume.

11

So finally we have 40 GB added in the logical volume.

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