Automating LVM Partition using Python-Script.

STEP 1

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

Menu

STEP 2

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

Program

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 .

Checking device name.

By pressing 1 I created a Physical volume .

Creating a Physical Volume

Next I created a Volume Group by choosing option 2 .

Creating a Volume Group

Then I created a logical volume .

Creating 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.

Increasing the size of Logical Volume .

Again I haven’t performed practical on option 6 as it is same as option 5.

Thankyou

For any query or suggestions dm me on my LinkedIn.

--

--

--

Tech_lover

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Trigger an email when a new record is created in DynamoDB

How to Run Your Own Codius Host

Sensor and actuator communication via Mainflux MQTT broker

A Nurse Scheduling Problem with Quantum Computing

16 No coding knowledge required Mobile app development tools, Take it…

Equilibrium Successfully Completes First W3F Grant Milestone

Progress Update — The Three Kingdoms In Full Dev Mode

[Leet Code] Squares of a Sorted Array

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
Prasantmahato

Prasantmahato

Tech_lover

More from Medium

First Experience using GitHub: From forking to pulling a repository

How to upload a zip file as a multipart form data in Android/RetroFit

— — — — end monologue — — — —

3 Ways of Retrieving Infotype Data with ABAP