Logical Volume Management
Steps in LVM creation
A. Partition Creation
1. Create Physical Partition using fdisk command
# fdisk <disk name>
2. Create physical volume
# pvcreate <physical partition name 1> <physical partition name 2> .. n
#pvs and # pvdisplay
above command used to display pv.
3. Create volume group
#vgcreate <vg name> <pv name1> <pv name 2>
#vgdisplay
# vgs
4. Create logical Volume
# lvcreate -L <size> -n <lvname> <vgname>
#lvdisplay
# lvs
B. Format Partition
#mkfs.<file system> <lv path>
# mkfs -t <file system> <lv path>
for swap
mkswap <lvpath>
C. Mount Partition
a. temporary
b. permanent
Steps to delete partition
1. Unmount
2.Delete LVM partition
3.Delete Volume group
4.Delete Physical volume
5.Delete Physical partition
Comments
Post a Comment