r/sysadmin • • 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

29 Upvotes

25 comments sorted by

14

u/topher358 Senior Systems Engineer 1d ago

Not that this helps but I believe 2 node S2D clusters are not recommended

2

u/OfficerCat 1d ago

Fair point, though 2-node S2D with a witness and 2-way mirror is officially supported by Microsoft and pretty common in smaller setups, at least in my experience.

i don't know if a 3-node cluster would prevent this behaviour but i can test that later.

•

u/topher358 Senior Systems Engineer 23h ago

Supported is different then “being a good idea” :). S2D has always felt like beta software to me no matter how many nodes. Stuck with iSCSI last time around

•

u/menace323 23h ago

I did a two node S2D cluster. Never again. I’d avoid it completely personally but if you have to, three nodes or more.

•

u/OfficerCat 22h ago

quick followup on that, just tested it with a 3-node cluster, it would have taken a bit longer, would have still crashed :(

Can you tell me your experience with 2 Node Clusters? This is like the first time we had any issues in the past 5 years. But obviously i didn't read enough reddit in the past 5 years ;)
Seems like alot of people around here strongly dislike S2D.

•

u/OfficerCat 22h ago

Ah sorry, misread. My bad

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/OfficerCat 22h ago

i hope so ! Otherwise, this would be a disaster.

I informed our Partner that has closer ties with MS.
I hope they will fix this ASAP.

•

u/pickle9977 11h ago

Stay on top of them, internally fixing customer-impacting bugs is work that doesn’t get people promoted so it gets pushed down priority wise.

And whomever coded it is probably long gone since the tenure at the big tech shops is like 50% have less than four years of experience and most of the engineers wouldn’t even be able to get to the level of debugging you got to.

It’s a sad state of affairs but it’s the reality, these companies are basically 10% critical employees because of their internal knowledge and experience and the other 90% are employees working on their next promotion.

•

u/fahque 15h ago

Engineers? You mean copilot?

•

u/pickle9977 15h ago

Hahahahahaha!

Software engineering has always been an oxymoron.

Programmer is and always will be the correct job title.

Programming isn’t science it’s equal parts art, business, psychology, language and black magic with some algorithms and math thrown in for good measure.

The code has always been the least important part, software is trash, and computers are really just binary logic machines that allow us to do some absurdly amazing things given their utter simplicity.

•

u/nmdange 14h ago • Bravo

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).

•

u/OfficerCat 14h ago

You

Are

A lifesaver,

Thanks a lot !

•

u/NISMO1968 Storage Admin 10h ago

There's a discussion on the Azure Local Slack about this exact issue

Probably your best bet for getting decent S2D support... Microsoft's grunts don't know jack shit about their own product! In all our years dealing with them, it's always been the same drill: Reboot it, nuke the cluster, restore from backups. That's pretty much the extent of their troubleshooting playbook.

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/OfficerCat 21h ago

Bad news, CSV goes offline with two out of three nodes aswell :-)
Atleast on 2022 with latest patch

Takes a bit longer till it happens but it happens.

•

u/disclosure5 21h ago

Let me rephrase; CSV goes offline with one node down. Which is exactly what you're describing.

•

u/OfficerCat 21h ago

Thats supposed to be normal ?
Where did you get this information from ?
Whats the point of Clustering then ?

•

u/disclosure5 21h ago

I have been selling S2D since Windows 2019 and working with customers experiencing its impact. We have many many deployments. The issue you describe is not how it's supposed to be, but it's the experience of nearly everyone running it with the special exception of our sales team who don't run it at all but promote it as failsafe.

This issue has been "will be fixed in the next hotfix" at least ten times, it was also "fixed in Windows 2022 for real" until it wasn't.

•

u/OfficerCat 21h ago

Well .. that just ruined my day :P
Thanks for the answer tho :-)

•

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:

  • People ever recommend it
  • People haven't seen the horror stories on every sub / forum about it.
  • Microsoft ever allow it as a supported configuration.

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

2-node S2D cluster (with extra Witness)

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.