Skip to main content

Command Line LVM Management

By October 21, 2013September 12th, 2022No Comments

Using the command line is quick, effective and essential in Linux administration. Using LVM, Logical Volume Management, allows for volumes to dynamically grow as extra partitions or disks can be supplied to support the existing volume groups. These are command on SANs and in our data-centers. This video then takes you through the creation of a logical volume structure on SUSE Linux Enterprise Server 11 from start to finish. Don’t forget to make sure the LVM service is enabled

chkconfig -a boot.lvm
pvcreate /dev/sda14
pvcreate /dev/sda15
lvcreate 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