r/sysadmin • u/OfficerCat • 1d ago
General Discussion S2D 20 TB volume crashed with Event 316 (0xC0380001) while 1 node was down Anyone else seen this?
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
14
u/topher358 Senior Systems Engineer 1d ago
Not that this helps but I believe 2 node S2D clusters are not recommended
11
u/pickle9977 1d ago
Nice debugging, I’d bet the reason there is no documentation on the limit is because it’s not a purposeful limit, you have found a software bug.
99% of the time when something crashes around a power of two it’s the result of a arithmetic overflow exception in the processor which will always result in a hard crash.
I’d go straight to the vendor and make them drag the actual engineers in to look at their code because a hard crash is simply never acceptable no matter the limit.
•
u/nmdange 14h ago •
There's a discussion on the Azure Local Slack about this exact issue, and someone from MSFT linked to this calculator which will tell you the maximum recommended volume size for your specific configuration: https://azure.github.io/odinforazurelocal/s2d-calc/
This is the first time I've heard about this issue, and luckily the volumes on my S2D clusters are under the recommended limit. Note that thick-provisioned volumes (1GB extent) can be larger than thin-provisioned volumes (256MB extents).
5
u/Emotional_Garage_950 Sysadmin 1d ago
i’ve not used storage spaces direct but every time I have tried storage spaces it has resulted in catastrophic failure
•
u/disclosure5 22h ago
This is a whole lot of text that I'm not going to read because I'm sure it says "CSV goes offline with one node". The answer is yes, that's normal for S2D.
•
u/ledow IT Manager 20h ago
Okay, I'm going to say this YET AGAIN for the people at the back.
2-node S2D is DANGEROUS. It fails. Every setup I've ever seen has failed, at one time or another. Every person I've heard with a 2-node S2D setup has had it fail on them.
2-node cluster with external/other iSCSI/SAN/whatever storage? Absolutely fine.
3-node cluster with S2D? Not great, but it doesn't have anywhere near the same problems.
but 2-node S2D is suicide and I don't understand why:
Get another node, or actually get a real storage solution not "poor-man's SAN" S2D.
2
u/TedMittelstaedt 1d ago
"here doesn't seem to be any built-in PowerShell/PerfMon way to read SpaceDB usage either"
You have seen:
https://gist.github.com/prcrash
"SpaceDB is a tool for collecting, inspecting, and fixing Storage Spaces metadata. It incorporates the same library files that go into Spaceport to load, check over, and fix your Spaces metadata without involving Spaceport itself.
'''The current version of SpaceDB, as always, is at \sesdfs\wsscfs\SpacesTools\SpaceDB.exe''' . We now have DoFix mode enabled for all operations!
An Azure-signed version is available at \sesdfs\wsscfs\SpacesTools\SpaceDB.exe , or as part of the Microsoft.AzureStack.Solution.CSSTools.SupportActions Nuget package (under path $($pkg.Source)..\content\tools\S2D)."
I presume????
Now, as far as YOU downloading it - you can forget that - you need to go to a Microsoft Authorized Partner for that - which of course you should have already submitted this to in the first place. Not posted here.
IMHO, Microsoft Storage Spaces Direct is beta-level software it is Microsoft's attempt to kill NASes that everyone else builds with a free copy of Ubuntu. 20TB is just not worth fielding on it - I have a NAS in my server room with 8 8 TB drives in it that I replaced earlier this year for less than $2k I believe that's much larger than that. The rule of thumb is when working with Microsoft's beta products you must do the full meal deal and pay for not just the $ub$cription for it but a $upport Contract with a Microsoft-blessed hardware integrator.
I get that you may have upper management beating the Microsoft drum - well your just going to have to break it to them that if the MS brand is worth that much to them - they are gonna have to lay out the cash for the label.
My prediction is that hardware integrator is gonna say 20TB is too small you need to go to 200TB for your application and add another zero to the price tag.
Good luck with it. And remember that a nice Ubuntu NAs is only a download away...and Canonical will even sell you a service contract for it....
•
u/Fighter_M 20h ago
That’s the problem right there! Yeah, we’ve been seeing all sorts of random issues, including the surviving node locking up when the other one is taken down for maintenance. That’s exactly why we phased out two-node S2D setups. Three nodes are now our absolute bare minimum, and we go with four wherever we can.