Dynamic Disk Stopped Expanding
Posted: 22. Sep 2011, 14:17
I created a 16 GB virtual disk (VDI file) and set it to dynamic expanding. It started very small and over time grew automatically to 12.28GB. It will not grow any more, despite having 3.72 GB more space allocated to the VDI file and 500 GB freespace on the host O/S.
According to the docs, VB will auto-allocate when the guest tries to write to a sector that has not yet been allocated. So, I should simply be able to copy foo.txt to bar.txt and force it to allocate space. It does not, and tells me the disk is full.
What is the command to manually allocate an extent within a VDI file? VB does this internally by calling a sub-routine, and I hope this sub-routine is exposed through an API.
I am using Oracle Virtualbox 4.1.2 on 64-bit Windows 7 host with a 64-bit Oracle Linux 5.5 guest. I tried the same setup with CentOS 5.7 guest and ran into the same problem - the disk never expands to max size.
-Mark
According to the docs, VB will auto-allocate when the guest tries to write to a sector that has not yet been allocated. So, I should simply be able to copy foo.txt to bar.txt and force it to allocate space. It does not, and tells me the disk is full.
What is the command to manually allocate an extent within a VDI file? VB does this internally by calling a sub-routine, and I hope this sub-routine is exposed through an API.
I am using Oracle Virtualbox 4.1.2 on 64-bit Windows 7 host with a 64-bit Oracle Linux 5.5 guest. I tried the same setup with CentOS 5.7 guest and ran into the same problem - the disk never expands to max size.
-Mark