SCOM 2012 agent fails to start with error -2130771964

I had an issue on a SCOM agent where the System Center Management service (healthservice) failed to start. It gave error -2130771964 as the reason.
If something like that happens check the System Eventlog for errors and also check the Operations Manager eventlog for any errors.
In this case I saw an error in the Operations Manager eventlog coming from Source Health Service ESE Store and event ID 482 with the following content:
HealthService (21756) Health Service Store: An attempt to write to the file “C:\Program Files\System Center Operations Manager\Agent\Health Service State\Health Service Store\tmp.edb” at offset 1744896 (0x00000000001aa000) for 8192 (0x00002000) bytes failed after 0 seconds with system error 112 (0x00000070): “There is not enough space on the disk. “. The write operation will fail with error -1808 (0xfffff8f0). If this error persists then the file may be damaged and may need to be restored from a previous backup.
In this case the error is inside that block of text. The problem was that there was a very sudden filling of the disk for some reason. No more space on disk -> healthservice doesn’t like it and stops working. Due to this disk space change being very sudden the agent did not have a chance to alert on too low disk space and just stopped working. Of course this gives you in SCOM a Health Service Heartbeat Failure for that agent.
I seem to remember having this error number before and found all kinds of references, but each time I try to find it again because I did not make a pointer for myself here 😀 So now here it is.
Bob Cornelissen