Challenge 10 - Logical Volume Manager
June 3, 2022 ยท View on GitHub
< 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
PVis 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
LVusing 10% of the disk (500MB) - Verify that
LVs are created - Format both
LVs asext4 - Mount the
LVs in the directories created earlier in/mnt - Resize the smallest
LVto take up another 20% of the disk (1GB) - Check:
- That the
LVhas been resized - If there was reflection in the file system
- That the
- 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