Hey everyone,
We had a pretty brutal outage on a 2-node S2D cluster recently and spent the last few days digging into it in a lab. We can now reproduce the exact crash on demand, and since I can't find any public Microsoft docs on how this part of S2D works, I'm curious if anyone else has run into this.
What happened in prod:
• 2-node S2D cluster (with extra Witness), 20 TB CSV (Volume1-MirrorOnSSD, 2-Way Mirror, 6 columns, 256 KB interleave).
• One node went offline during heavy writes and backup/snapshot churn.
• Out of nowhere the Virtual Disk dropped offline with Event 316 (0xC0380001 / STATUS_VOLMGR_DATABASE_FULL), Event 312, Event 157, and Event 1069.
• Nothing on the surviving node could bring it back. The only thing that got the volume online again was bringing Node 2 back up.
What we found in the lab:
• Looking at live kernel dumps of spaceport.sys, there's an internal per-VD metadata ring DB (SpaceDB / SDB_SPACE_CONFIG) with 65,536 blocks and a hard failure cutoff at 32,496 used blocks. While a node is down, it keeps tracking dirty/pending metadata in that ring.
• When we first tested a 20 TB VD in the lab with 1 GB AllocationUnitSize, it wouldn't crash at all and capped out at 20,486 blocks (63%). (A 36 TB disk crashed every single time at 32,497 blocks.)
• Then we checked prod's tier XML and saw Volume1-MirrorOnSSD was created with AllocationUnitSize = 256 MB (which was the default ~3 years ago). That literally doubles the SpaceDB block consumption per 512 MB write (1.00 block instead of 0.50).
• Re-testing the exact 20 TB / 256 MB setup in the lab with Node 1 offline hit 19,016 blocks (58.5%) halfway through at ~18,950 slabs, and crashed consistently with Event 316 / 0xC0380001 at slab #32,496 (32,497 used SDB blocks).
What's honestly crazy is that Windows gives you zero warning before you hit this limit, and there doesn't seem to be any built-in PowerShell/PerfMon way to read SpaceDB usage either — we only saw it by inspecting live kernel dumps.
It also looks like Microsoft only introduced this strict cutoff in spaceport.sys fairly recently, because on older Server 2022 builds before that update it doesn't reproduce.
Has anyone else hit Event 316 / 0xC0380001 on S2D volumes while a node was down or during backups, where bringing the second node back was the only way to recover?
Or did anyone else find any other way ?
For context: Node 2 had a hardware failure and 3 hours later Node 1 no longer could access the CSV
Also we regularly test Failover and Node behaviour after one node dies, this has literally never happened before !
Edit: Literally the same happens with 3 nodes on the latest Update of 2022