ARTH TASK 7.1.C

Sarthak Agarwal
2 min readMar 14, 2021

Task description

Automating LVM partition using Python script

In this task I had tried to automate the LVM partition using Python script by giving it a user based choices.

In this user can choose up what all did he want to do or he want to check in the concept of LVM.

As you can see from the image we have given you the whole code that we had provided.

We had given 6 choices to the user which had to be input by him then only he will get the solution for his queries.In this image we had execute the command if user want to go for the choice 1.User will be able to list the Harddisk available in his system.

In the above image it is clearly shown about how user will use the environment if he choose the option 2 and user will be able to create a new drive.

Similarly if user wants to go for the choice number 3 he will be able to extend the existing drive.

If user or the client go for the option or the he chooses option number 5 he will be able to see all the mounted folder in his particular Operating system.

Finally the exit of the user is also choice based in which user can choose up if he want to exit.

Thank You for giving the blog a complete read.

Hope you like it.

Happy Learning πŸ™

--

--

Sarthak Agarwal

Cloud & DevOps Enthusiast β˜…ARTH Learner β˜… AWS β˜… GCP β˜… Jenkins β˜… K8S β˜… Ansible β˜… MLOps β˜… Terraform β˜… Networking β˜… Python