P. 1
CentOS 6 Logical Volume Management

CentOS 6 Logical Volume Management

|Views: 29|Likes:
Published by mdayyub
Creation of logical volumes in centos 6
Creation of logical volumes in centos 6

More info:

Published by: mdayyub on May 29, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

12/05/2013

pdf

text

original

Logical Volume Management:The below is the simple process to process while working with logical volume management

. 1. Initialize a disk or partition for use by LVM (pvcreate) 2. Create volume group with disk partitions (vgcreate) 3. Create logical volume from volume group (lvcreate) 4. Some useful commands working with logical volume. a. pvs b. vgs c. lvs 1. Create a logical volume with 300M: a. Specification three partitions of 500MB b. Create volume group named vg01 with three partitions from above c. Create volume group named lv01

I am using /dev/sdb which has the capacity of 20GB The below is the example shown to create a partition of type logical with the 500MB of size and write changes to partition tables Once you have created the partitions you can find the devices as below Eg : /dev/sdb1, /dev/sdb2,

Create volume group

Create logical volume “lv01”

Load the logical with file system (ext4)

Create a mount point to mount the logical volume Create a directory to mount the logical volume # mkdir /mnt/lv01 Mount the logical volume as below

Add the logical volume to /etc/fstab file to make logical volume mount automatically after boot.

# vim /etc/fstab

Write the changes to the file and boot the system. # df –h (to view the disk space)

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->