Hello, we have deployed a new Graylog OVA instance. I expanded the virtual disk size to 400GB static before powering on the virtual machine. Upon powering it on, if i do a “df -kh” , the / root shows to be only 15G which is expected as per the documentation.
How do i make the / root extend or use all the 400GB i have allocated?
HI Tess, you are right this was out the scope, my bad. I have already tried doing whatever you suggested but it errors out when trying to create a new LVM device /dev/sda6 as shown below even though my “fdisk -l output shows /dev/sda to be 400GB” . The reason i asked this question was it is easy to add a new separate disk and move the graylog data to use that new larger disk (as explained in the documentation) but my question here was whether its possible to expand the existing graylog_root lvm to use any unallocated space on the disk. There is something specific with the way .ova image has its partition table created that causes this error…
If the disk itself is already 430Gb and my interpretation of the fdisk is correct, the extended sda5 partition is also already something like 400Gb large, you probably need to vgextend the volume group occupying it (if it hasn’t occupied the full size already), then lvextend the root vg, then use the appropriate filesystem resize command to grow your filesystem (e.g. for ext4 you’d use resize2fs).
Guess then you can always delete sda5 and re-create it in the same session at the same starting block but occupying the whole disk, then pvextend the physical volume that lvm has on it, then lvextend and fs resize…
Hi [benvanstaveren] , Unfortuantely can’t delete /sda5 because it has the root LVM. As you know its a pain to extend root partitions. Even “vgextend” doesn’t see 400GB available.
I guess, I will just redeploy the OVA with the default options, attach a separate disk of 400GB (sdb ) instead of wasting time in expanding the existing sda disk.
We can close this thread. Thank you all for your inputs