Automating LVM Partition using Python-Script >-

Automation include higher production rates and increased productivity, more efficient use of materials, better product quality, improved safety, shorter workweeks for labour, and reduced factory lead times.

STEP 1 :

I created a Menu for the user to choose according to it .

STEP 2 :

I have taken help of if-else statement for the user to run whatever options he wants.

Now We are ready to use this menu on LVM partition.

First I attached a external storage device of 20 GB.

Checking Device name to the external storage I attached .

By pressing 1 I created a Physical volume .

Next I created a Volume Group by choosing option 2 .

Then I created a logical volume .

I haven’t done option 4 as it is a combination of option 1,2,3 …,just added to new things on it is formatting and mounting .

Then I performed practical on Option 5.

Finally, Task 7.1.C Automating LVM Partition using Python-Script is accomplished !!

Thank you : )



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