![]() Rounding size to boundary between physical extents: 4.90 GiB You can alternatively remove the + to increase to the amount specified rather than by the amount specified. In the below example we are using the -L flag to increase by a size specified (M for Megabytes, G for Gigabytes, T for Terabytes). Now it’s time to expand the logical volume. LV UUID 7PNgg2-ZmnG-a26g-zRoT-PRVM-RDc1-oq6J4M In this example we only have just the one volume group, but you may have more so you need to check. It will also show the volume group that the logical volume is a member of, so ensure that the correct volume group has been checked for enough space with vgdisplay as previously mentioned to prevent trying to increase a logical volume that is inside some other volume group.Īs shown in the example below, we are going to be working with the logical volume “var” which is in volume group “centos”, the volume group we saw in vgdisplay. The below lvdisplay command will show all logical volumes and their current size. Eve ng add more disk space free#Now that we have confirmed there is space free within the volume group, confirm the name of the logical volume you want to increase as well as how much space you plan on adding. Alternatively if you have multiple LVM partitions, you could shrink a different logical volume first to create space within the volume group. Note: If you do not have any or enough free space in the volume group, you will first need to expand the volume group to complete the resize. In this example we have 5GB of free space in the volume group, as shown by “Free PE / Size 1279 / 5.00 GiB”. VG UUID VvG6Sp-wIgb-LTh0-szdU-s9R1-a6K9-qHassI To view the free space of your volume group, run vgdisplay command as shown below and look at the “Free PE / Size” field. ![]() In order to increase the size of a logical volume, the volume group that it is in must have free space available. This process is extremely easy to do with LVM as it can be done on the fly with no downtime needed, you can perform it on a mounted volume without interruption. Eve ng add more disk space how to#LVM Resize – How to increase or expand the logical volume
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |