Increasing the size of logical volumes

Опубликовано: 05 Октябрь 2024
на канале: lecture snippets
2,313
20

This video is part of a course titled Linux LVM Fundamentals using Ubuntu 18.04. Here is a link to the course: https://dev9.us/course/linux-lvm-fund...

Video objectives:
Create a Volume Group with a single Physical Volume
Create a Logical Volume that uses all available physical extents
Add an additional Physical Volumes to the Volume Group
Extend the Logical Volume to include the additional storage space
Add additional Physical Volumes to the Volume Group
Create a second Logical Volume within the Volume Group
Increase the storage capacity of the first Logical Volume

Commands used:
vgcreate mydata-vg /dev/sdb
lvcreate -l 100%FREE -n volume1-lv mydata-vg
vgextend mydata-vg /dev/sdc
lvextend -l +100%FREE mydata-vg/volume1-lv
vgextend mydata-vg /dev/sdd /dev/sde
lvcreate -L 1G -n volume2-lv mydata-vg
lvextend -L +512M mydata-vg/volume1-lv