Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 1.93 KB

Challenge-10.md

File metadata and controls

46 lines (35 loc) · 1.93 KB

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 LVs are created
  • Format both LVs as ext4
  • Mount the LVs 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

  1. Validate the creation of the Physical Volume
  2. Validate the creation of the Volume Group
  3. Validate the creation of the Logical Volume
  4. Make sure both logical volumes were created with the expected sizes
  5. Make sure both logical volumes were formated as ext4 file system
  6. Confirm both logical volumes were properly mounted at /mnt
  7. Show the logical volume and file system resized

Learning Resources