LVM Configuration in Rhel

LVM configuration Rhel 6:-
#fdisk –l =to check hardrive
#pvdisplay=to display physical volume
#pvcreate=to create physical volume.
#pvcreate /dev/sda1 /dev/sdb2
physical volume successfully created
#pvdisplay physical volume are showing
#vgdisplay=to preview volume group
#vgcreate /dev/myvggroup /dev/sda1 /dev/sdb2
#succesfully created
#vgdisplay
We have to shrink logical volume for our use
#lvdisplay=to display logical volume
#lvcreate –name –size 100M /dev/myvggroup
To make it usable format and mount is must.
#mkfs.ext4 /dev/myvggroup/test1
Mount=to display mounted directory
#mkdir /mylg
#mount /dev/myvggroup/test1/mylg/
We have successfully created logical volume from volumegroup of two harddrive.

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s