How to convert an OLVM OS-disk from thin-provisioned to preallocated

This blog post outlines how to convert a thin-provisioned OS-disk in OLVM (version 4.5) to a preallocated disk with minimal downtime. 

Issue

During the patching of one of our customer environments (opatch apply on GI…), the current ssh session suddenly froze and wasn’t responding anymore.

After checking the VM in the oVirt Engine web interface, a „Paused“ sign was visible next to the VM.

A forced stop and start of the VM was required to be able to re-connect to the virtual machine.

Once checking the VM and the engine.log, an error message was shown/reported:

VM <VM name> has paused due to no Storage space error.“

The storage domain had sufficient free space; however, the VM’s disk could not be extended.

sd free space
vm disk size

The issue itself was reproducible very easily by simply writing with „dd“ to the OS-disk until an extension would be required. Even writing smaller files up to 512MB caused the VM to pause.

After some research I found the following MOS-note with an explanation and possible way to fix it: 
(KB226122) OLVM: VM Has Been Paused Due to Storage Space Error

If the VM (or its application) is writing bulky data (>1GB) to virtual disks continuously, the VM may have to be paused multiple times before it can be resumed.

As described in the MOS-note, multiple restarts of the VM would be required to fix the issue. This was no option and therefore a different approach was required.

Resolution

As we needed a quick solution for this VM, we decided to change the disk type of the OS-disk from thin-provisioned to „preallocated“ in the Storage Domain.

Important, a downtime is required for this, and it takes some minutes.

  1. Shutdown the VM (& Rename)
  2. Create a snapshot of the OS-disk within the OLVM engine
1 shutdown create snapshot
1 a snapshot
  1. Click on the VM -> Snapshots -> Select the snapshot -> Clone; select „Preallocated“ in the system tab
3 clone snapshot
3 resource allocation
  1. (re-attach direct attached LUNs to the new VM and) Start VM
  2. Verify that all the NICs in the VM still have the same name (could be changed as it was in our case)
  3. Verify GI status after startup
  4. Restart VM to to make sure everything works even after a restart
  5. Detach all direct attached LUNs from source VM and delete VM
  6. Great Success!

Conclusion

As described in „(KB226122) OLVM: VM Has Been Paused Due to Storage Space Error“, it would be possible to change following parameters in the vdsm.conf so bulky data (>1GB) on the OS-disk may not lead to paused/halted VMs:

<code>

[irs]

volume_utilization_percent=25

volume_utilization_chunk_mb=2048

</code>

I do not recommend this approach and instead suggest:

  1. Use preallocated disks for OS or any disk which could be prone to „bulky data (>1GB)“ writes in general.
  2. Convert the disk to „preallocated“ as it is much faster than multiple restarts, so the underlying LVM is extended properly.
 
Also, the solution provided in the MOS-note isn’t as convenient as using the OLVM-Engine to replace a disk with a preallocated one and additionally only one restart of the VM was required after cloning.
 
This is the reason why the described approach in this blog entry was used to resolve the issue.

Reference

(KB226122) OLVM: VM Has Been Paused Due to Storage Space Error

If the VM (or its application) is writing bulky data (>1GB) to virtual disks continuously, the VM may have to be paused multiple times before it can be resumed.

DBConcepts

Weitere Beiträge

PostgreSQL #2 Meetup

PostgreSQL Meetup #2 bei DBConcepts Das zweite PostgreSQL Meetup in Wien findet bei uns statt. Im Fokus stehen praxisnahe Vorträge, reale Use Cases und direkter

DBConcepts Sommerfest 2026

02. Juli 2026, ab 17:00 Uhr · La Crêperie, Alte Donau, Wien anmelden Es gibt Termine, die sind mehr als ein Kalendereintrag. Unser Sommerfest gehört

Vielen Dank für Ihr Interesse an unserem Unternehmen. Derzeit suchen wir niemanden für diese Stelle. Aber wir sind immer an talentierten Menschen interessiert und freuen uns von Ihnen zu hören! Schicken Sie uns einfach Ihren Lebenslauf und eine kurze Nachricht und schreiben Sie an welcher Stelle Sie interessiert sind: recruitment@dbconcepts.com. Wir freuen usn von Ihnen zu hören!

DBConcepts

Newsletter abonnieren

Wir freuen uns, dass wir Ihr Interesse für den Newsletter geweckt haben! Mit dem Versand dieser Zustimmung erhalten Sie regelmäßig alle aktuellen Informationen!