Linux Administrator Question: Download Questions PDF
How to reduce or shrink the size of LVM partition?
![Linux Administrator Interview Answer Linux Administrator Interview Question](https://globalguideline.com/public/images/interview/6.png)
Answer:
The logical Steps to reduce size of LVM partition :
☛ Umount the filesystem using umount command,
☛ use resize2fs command , e.g resiz2fs /dev/mapper/myvg-mylv 10G
☛ Now use the lvreduce command , e.g lvreduce -L 10G /dev/mapper/myvg-mylv
Above Command will shrink the size & will make the filesystem size 10GB.
☛ Umount the filesystem using umount command,
☛ use resize2fs command , e.g resiz2fs /dev/mapper/myvg-mylv 10G
☛ Now use the lvreduce command , e.g lvreduce -L 10G /dev/mapper/myvg-mylv
Above Command will shrink the size & will make the filesystem size 10GB.
Download Linux Administrator Interview Questions And Answers
PDF
Previous Question | Next Question |
How to increase the size of LVM partition? | How to create partition from the raw disk? |