Increased virtual disk not being seen by virtual machine

I am using Dragonfish-24.04.2.2. I have a virtual machine running Ubuntu v22. I created a 50G data disk which was setup on the VM using LVM. I need to bump that up to 500G. I went to the VM and rescanned for the new size, nothing. I rebooted the machine, still not seeing the size increase.

Is there something else I need to do to get my machine to see the new size?

Thanks

You need to increase the size of the partition as created on the virtual disk by the guest OS. How exactly depends on which tool chain you used at installation time - LVM or not for example.

I suggest you use a search engine with e.g. Ubuntu, guest, resize, virtual disk, … throw LVM in the mix if applicable.

HTH,
Patrick

on my Alpine VM i used cfdisk to do the job, then used resize2fs.
I think should work for you too!

(do a snapshot before!!!)

I know how to grow the drive using LVM. That’s not the issue. The issue is that the VM doesn’t even know that the space has been increased.

I normally work with VMware. If I increase the drive size in VMware, all I need to do is rescan the bus from within the OS to pick up the new drive size, then I can use LVM to grow it. Same is true if I add a drive to the machine from within VMware, I just rescan the bus, reboots also work, then the machine see’s the new space or drive and I can use it however I need.

This is not working on the TrueNAS Scale virtual machine. I grew the virtual drive up to 500G, rescanned the scsi bus, even rebooted, but the VM doesn’t know that the space was enlarged. I even created a new 500G drive and attached it to the machine. Rescan, rebooted, but the machine does not see it.

At first I thought I missed something when I re-sized the drive, but since the VM doesn’t even see the new drive, then I think there is an issue in the TrueNAS environment. Something just isn’t allowing the VM to see the increase.

Thanks

I have yet to try that with SCALE, but it has worked with TrueNAS CORE every single time I tried it.

  1. shutdown VM
  2. zfs set volsize=<newsize> pool/path/to/zvol
  3. boot VM

Same with adding a drive. Shut down, add, boot.

Live changes are to my knowledge not supported by either platform.

1 Like

I see. I guess I’m used to how I can do things in VMare. I’ll try shutting down and adding the drive, then booting.

Thank you