Skip to main content
SUSE

SUSE Lesson 20 Logical Volume Management

By October 2, 2013No Comments



Here we will take a visit into the world of Linux and Logical Volume Management or LVM. Making the most of our storage by enabling it to a be flexible. The bottom of the food chain are physical volumes that represent storage. these are added to volume goups that make the space available to logical volumes. Being able to extend the volume grouip with additional disk storage from PVs that we add as needed enable us to extend the size of our logical volumes and ultimately or file-systems. We will look at pvcreate, pvscan, vgcreate, vgscan and vgextend, and of course, lvcreate, lvscan and lvextend in the course of the video.

pvcreate /dev/sda14
pvcreate /dev/sda15
vgcreate vg1 /dev/sda14 /dev/sda15
lvcreate -L 1000M -n data4 vg1
chkconfig -a boot.lvm
mkfs.ext3 /dev/vg1/data4
echo "/dev/vg1/data4 /export/data3  ext3  defaults 0  2" >> /etc/fstab
mount -a