Elasticity Task

LVM Creation
# mkfs.ext4 /dev/<VG Name>/<LV Name>
# mount /dev/<VG Name>/<LV Name>   /<mount point>
# lvextend --size +<size to increase> /dev/<VG Name>/<LV Name>
# resize2fs /dev/<VG Name>/<LV Name>

Python Script to automate the whole process

When we run commands manually, it is prone to experience some error as we might forget some steps or there might be some typing mistake. Hence here is one python script making our task easier.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store