Last weekend I run into an issue, where due to missing disk space availability my server run into back pressure.
Exchange has a feature, which will move the current mail queue file and the respective log files to another folder. This happens when transport service detects an issue with the current queue and is called QueueDatabaseRecoveryAction.
But i don’t want to dive into the issue with crashing transport service. This needs some additional investigations.
The problem is that transport service tending to create with this behavior a scenario, where you won’t be able to delete the old files and folders anymore as the path is too long:
There is no way of deleting the folder structure with the explorer or even with PowerShell. The only way to get rid of this is our good old friend Robocopy:
I used the nirroring functionality and let the tool remove all the items underneath the Messaging.old-* folder with the following steps:
- create an empty folder (as source)
- open an elevated PowerShell
- run the command:
robocopy <empty source path> <path to Messaging.old-* folder> /mir
After a few minutes I reclaimed free space and Exchange was not anymore in back pressure
Nothing special, but hopefully handy for someone.
Sometimes we have to remember the good “old” tools…