Resize LVM in Vmware wheen 4 partitions
I need to add free space to LVM group. Most tutorials do tell about creating new partition but i can't create new one. How i would add all unlocated space in this situation ?
Code:
Filesystem size used aval. %used. mounted on |
Quote:
you should create a partition and set partition type as 8e, then initialize that partition as physical volume (pvcreate), and then only you can add it to volume group. Code:
/dev/sda2 14 19581 157179960 8e Linux LVM show outputs of pvs, vgs and lvs Also note that redhat strongly recommends to create single partition that covers whole disk and mark as PV for administrative convenience and to take advantage of striping. if you are using vmware to learn why not add some virtual hdd to it. |
Your problem is that you have filled all 4 slots in the primary partition table, and that is the limit. With the MS-DOS partition table that you have, the only way to have more than 4 partitions is to have one of the primary partitions be an extended partition. Within that extended partition you could create up to 11 logical partitions before hitting the Linux limit of 15 total partitions per drive.
You cannot simply convert an ordinary partition to an extended partition. What you can do is grow your existing sda4 partition to use the rest of the disk. You won't be able to do that with gparted since it doesn't know how to grow the LVM container, but you can simply use fdisk to delete the partition and then re-create it with the same starting point and extending to the end of the disk. After doing that (and rebooting, to get the kernel to read the new partition table), you can run "pvresize /dev/sda4" to expand the PV. The space will now be available to extend your present LVM logical volumes or create new ones. |
All times are GMT -5. The time now is 12:13 PM. |