A partition has run out of space on a RHEL5 VM:
26G 22G 25G 98% /ora
Using blkid, pvs, vgs, lvs and df -ha, I confirm the Physical Volume, Logical Volume and Group Volume and increase the disk size in vCenter.
Using fdisk, I try to create another primary partition (we only can create 3 primary and one logical)
Disk /dev/sdg: 26.6 GB, 26687091200 bytes
Device Boot Start End Blocks Id System
/dev/sdg1 1 1698 13631487+ 8e Linux LVM
/dev/sdg2 1698 3394 13630817 8e Linux LVM
However when I go to add /dev/sdg3, I get the following from fdisk
fdisk no free sectors available
I try to run partprobe, hoping this would pick up space added to the data disk no nothing.
For the hell of it, I reboot and I try fdisk again and I'm able to proceed to add the new partition and using LVM successfully grow the disk.
I don't understand why fdisk wasn't allowing for the creation of the new disk, however a reboot fixed it...?