I Built a SQL Server Failover Cluster in My Garage (and Only Broke Windows Twice)
I have a confession. When I heard VergeOS 26.2 was adding shared disks for Windows Failover Clustering, I didn't think "what a useful enterprise feature." I thought "I can finally build a SQL Server cluster in the garage without buying a SAN off eBay that sounds like a leaf blower."
So that's what I did. Two Windows Server 2022 nodes, one SQL Server failover cluster instance, one clustered fileserver, four shared disks, and somewhat more PowerShell than any one human should type in an afternoon. Here's how it went, including the parts where it didn't.
Why this was hard before
A Windows failover cluster needs storage that every node can see at the same time. In a real data center that's a SAN, some LUNs, and a storage admin who sighs when you ask for "just one more small disk for quorum."
At home that's a problem, because my storage team is me, and I don't own a SAN. Before 26.2, virtual disks in VergeOS belonged to one VM. That's what you want 99% of the time, and it's useless when two VMs need to share the same disk.
What 26.2 actually changed
The 26.2 release notes call shared (multi-writer) disks the headline capability: one disk attached to several VMs at once. Three details matter to Windows:
- Shared disks present proper NAA/WWN identity. Windows can tell each disk apart and trust it.
- They support SCSI-3 Persistent Reservations, which is how the cluster decides who owns a disk right now.
- I/O isn't serialized or exclusively locked when a disk is flagged shared. The guest cluster coordinates the writes, which is the cluster's job anyway.
In other words, VergeOS gives Windows a disk that looks and behaves like a shared LUN, then gets out of the way.
The build
Here's what lives in the garage now:
| Piece | What it is |
|---|---|
demo-sql-n1, demo-sql-n2 |
Windows Server 2022 VMs, 4 vCPU and 8 GB each, in cluster SQL-CL |
| SQL-Quorum (2 GB) | The cluster's tie-breaker disk |
| SQL-Data (60 GB), SQL-Log (20 GB) | SQL Server data and logs |
| SQL-Files (30 GB) | The clustered file server's disk |
| SQL-FCI | SQL Server 2022 failover cluster instance with a demo database, DemoOrders (5,000 orders) |
| SQL-FS | Clustered file server sharing \\SQL-FS\Projects |
There's also a small domain controller (clusters really want Active Directory, and they're not shy about it) and a jump box, so I'm not RDP'ing into cluster nodes from my couch like an animal.
Step 1: make the disks (the easy part)
On the VergeOS side, this was honestly anticlimactic. Create each disk once, as a normal disk on the first node, with the interface set to Virtio-SCSI. On the second node, add a new drive, open Advanced, turn on Shared Disk, and pick the existing disk from the list.
Two things to know. First, the Shared Disk setting has to be chosen when the drive is created; you can't flip it later. Second, Windows needs the virtio drivers for Virtio-SCSI, so have the virtio-win ISO handy.
To check your work, go to Virtual Machines → VM Drives and filter Shared = Yes. Each shared disk shows up once per node with the same file name. Same file name, same disk. That's the whole test.
Step 2: keep the nodes apart
A cluster whose two nodes run on the same physical server is a very elaborate way to have one server. I put both VMs in the same HA Group (sql-nodes), and VergeOS keeps them on separate physical nodes whenever possible. Right now one is on node2 and the other is on node3, which is exactly where I want them.
Step 3: the Windows part (where the fun began)
VergeOS's job ends here. Everything after this is pure Windows Server Failover Clustering, done by the book: join the domain, install the Failover Clustering feature, bring the disks online, build the cluster, install SQL Server as a cluster instance, add the file server role.
"By the book" is doing a lot of work in that sentence. Here's the blooper reel.
The blooper reel
Blooper 1: the WinRM double hop
I automated most of the build from a Linux jump host over WinRM, because I'm lazy in the specific way that makes you work twice as hard. It worked beautifully until I asked one cluster node to do something on another cluster node. Windows looked at my credentials, decided they weren't allowed to travel any further, and refused.
That's the famous double hop. My fix was to stop fighting it: the script drops a small PowerShell script on the node and runs it as a scheduled task under the domain admin account. Credentials don't hop if you never ask them to.
Blooper 2: SQL Server setup and the backslash of doom
SQL Server's unattended cluster install takes a delightfully long command line. Mine failed, more than once, because of quoting. If a path ends in a backslash, like "S:\", the backslash escapes the closing quote, and setup quietly reads the rest of your command as part of the path. I ended up giving every disk path a real folder (S:\Data, L:\Logs) and quoting the disk resource names carefully.
setup.exe /Q /ACTION=InstallFailoverCluster /FEATURES=SQLENGINE `
/INSTANCENAME=MSSQLSERVER /FAILOVERCLUSTERNETWORKNAME=SQL-FCI `
/FAILOVERCLUSTERDISKS="SQL-Data" "SQL-Log" `
/SQLUSERDBDIR=S:\Data /SQLUSERDBLOGDIR=L:\Logs ...
Blooper 3: "it's installed but nobody can talk to it"
SQL installed, came online, and refused every connection. I spent a while being clever about TLS before noticing the obvious: there was no Windows Firewall rule for TCP 1433. One New-NetFirewallRule later, everything worked, and I reverted my clever TLS changes, as is tradition.
New-NetFirewallRule -DisplayName "SQL Server (TCP 1433)" -Direction Inbound -Protocol TCP -LocalPort 1433 -Action Allow
Blooper 4: the cluster put my node in time-out
While I was repeatedly killing nodes on purpose (more on that below), the cluster decided one of them was unreliable and quarantined it. Fair, honestly. For a lab where breaking things is the point, I raised the quarantine threshold so the cluster would stop treating my testing as a personality flaw.
The fun part: breaking it on purpose
A cluster you haven't failed over is a rumor. So I built a small web page on the jump host that does three things every second: writes a heartbeat row to SQL Server, reads the order count, and lists a file on the clustered share. It shows which node owns SQL right now, and it times any interruption.
Then I started moving things:
Move-ClusterGroup -Cluster SQL-CL 'SQL Server (MSSQLSERVER)' -Node SQL-N1
Move-ClusterGroup -Cluster SQL-CL 'SQL-FS' -Node SQL-N1
The page goes amber, the owner flips from SQL-N2 to SQL-N1, the heartbeats resume, and all 5,000 orders are still there. The SQL Server move took 20 seconds, and the page couldn't reach SQL for 16.6 of them. That's SQL Server shutting down cleanly on one node and starting up on the other. The file server moved in 4 seconds, and the share check didn't miss a single beat.
Then came the less polite version: I killed the power on the active node from the VergeOS UI. On my first test cluster, the clustered roles were back online on the surviving node in about 35 seconds, with no VergeOS errors logged. That's the cluster doing exactly what it's supposed to do, on disks that 26.2 made possible.
What I'd tell you before you try this
- Upgrade first. Shared disks need VergeOS 26.2 or later.
- Power on the domain controller before the cluster nodes. Clusters without AD are just two lonely servers.
- Decide "shared" at creation time. You can't convert a normal disk later.
- Use an HA Group so your two nodes don't share one physical point of failure.
- Script the Windows side if you'll ever rebuild it. Mine got rebuilt. More than once.
- Open TCP 1433. Learn from me.
The point of all this
The real headline isn't that you can run a SQL cluster in a garage (although you can, and it's great). It's that shared disks were one of the last "but we still need the old platform for that" items for a lot of people moving off VMware. Clustered SQL Server and clustered file services are exactly that kind of workload, and in 26.2 they run on plain VergeOS VMs with no external SAN.
Now if you'll excuse me, there's a node I haven't killed today.