Challenge 10 - Logical Volume Manager
< Previous Challenge - Home - Next Challenge >
Pre-requisites
- Create a data disk of 5GB
- Add to the Virtual Machine
Description
This challenge will give you an understanding over the Logical Volume Manager on Linux, and knowledge using the commands pvcreate, vgcreate, lvrcreate, and more
- Create a Physical Volume (
PV
) with the disk added
- Check that the
PV
is created
- Create a Volume Group (
VG
) using the created PV
- Verify that the VG is created
- Create a Logical Volume (
LV
) using half the disk (2.5GB)
- Create an
LV
using 10% of the disk (500MB)
- Verify that
LV
s are created
- Format both
LV
s as ext4
- Mount the
LV
s in the directories created earlier in /mnt
- Resize the smallest
LV
to take up another 20% of the disk (1GB)
- Check:
- That the
LV
has been resized
- If there was reflection in the file system
- Resize the file system
Success Criteria
- Validate the creation of the Physical Volume
- Validate the creation of the Volume Group
- Validate the creation of the Logical Volume
- Make sure both logical volumes were created with the expected sizes
- Make sure both logical volumes were formated as ext4 file system
- Confirm both logical volumes were properly mounted at
/mnt
- Show the logical volume and file system resized
Learning Resources