Extend linux partition by LVM
What is Logical Volume Manager? This is great explanation in english https://en.wikipedia.org/wiki/Logical_Volume_Manager_(Linux), this most using practical commanns https://opensource.com/business/16/9/linux-users-guide-lvm and also this is greatest and more details explanation in russian https://help.ubuntu.ru/wiki/lvm.
Below I show some more examples for practical using LVM. I want to write big file to my Ubuntu Virtual Machine and need expand free space from 50GB to 150GB. I have use LVM future for this purpose - this is alternative solution for simple add additional partition and mount it to something mount point.
- Firstly I have only 50GB space.
- Than I have add 100 GB space by simple increase disk space in VmWare.
- In this case after reboot I receive additional unformated partition.
- Than I show my actually LVM name by vgdisplay and done main command - extend my LVM to additional free partition by vgextend
- Than I new size of my LVM (add 100 GB) by command lvextend
- Than I have resized filesystem to all logical volume be resize2fs. This is more examples about fdisk and resize2f - https://geekpeek.net/resize-filesystem-fdisk-resize2fs/.
- And finally I have check in VmWare how many free space have my Ubuntu.
Comments (
)
Link to this page:
//www.vb-net.com/LVM/Index.htm
|