As a seasoned IT professional with over 20 years of experience in the field, I have encountered my fair share of disk consolidation and snapshot removal issues. In this blog post, I will shed some light on how to clean up these situations as quickly as possible, and what you can do when vCenter is screaming about the need for virtual machine disk consolidation.
First and foremost, it’s important to understand that disk consolidation and snapshot removal are not instantaneous processes. These tasks can take a significant amount of time, depending on the size of the disks and snapshots involved. As a rough estimate, you can expect the process to take around one hour per terabyte (TB) of disk capacity. So, if you have a 49TB disk, as I once did, be prepared for a wait of over two days!
Before we dive into the cleanup process, it’s essential to understand that consolidation and snapshot removal can usually be run in any VM power state. However, if the VM is powered on, the process will take longer due to constant OS disk I/O traffic interfering with the removal/consolidation task. Therefore, if you want to speed up the process, it’s best to power down the VM before starting the cleanup.
Now, let’s talk about the cleanup process itself. The first step is to remove any orphaned snapshots that are causing issues. To do this, simply right-click on the VM in vCenter and select “Edit virtual machine.” Then, click on the “Configure” button next to the “Snapshots” section and select “Remove all snapshots.”
Once you’ve removed any orphaned snapshots, it’s time to start the disk consolidation process. To do this, right-click on the VM in vCenter and select “Edit virtual machine.” Then, click on the “Configure” button next to the “Disks” section and select “Consolidate all disks.”
Please note that there is no specific control tool for the consolidation process, and once it’s started, it cannot be stopped. Theoretically, you can kill/restart the management services, but this will likely leave the disk in a corrupted state, which will be an enormous pain to fix. Therefore, it’s essential to have patience and let the process finish when it’s done.
In conclusion, disk consolidation and snapshot removal can be time-consuming processes, but they are essential for maintaining a healthy and efficient virtual infrastructure. By understanding how these processes work and how to run them effectively, you can keep your VMs running smoothly and avoid any potential issues that may arise.