Automating LVM Partition using Python-Script >-

Avadhut Shinde
3 min readMar 14, 2021

--

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 : )

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response