Skip to content

Failover Clustering safety: quorum guards + CSV data-loss guard + witness validation (v1.121.6)#74

Merged
TheAbider merged 1 commit into
masterfrom
fix/cluster-safety
Jul 1, 2026
Merged

Failover Clustering safety: quorum guards + CSV data-loss guard + witness validation (v1.121.6)#74
TheAbider merged 1 commit into
masterfrom
fix/cluster-safety

Conversation

@TheAbider

Copy link
Copy Markdown
Owner

Deep audit of the clustering module found 7 real bugs (3 high). Dashboard drain + node eviction now preserve quorum (size-aware); CSV removal aborts when it can't verify VM dependencies (data-loss guard); disk/file-share witness validated; false redirected-I/O warning fixed; validation report location shown. Every fix mirrors a correct pattern already in the module. Suite 5279/5279, PSSA 0.

…oss guard, witness validation (v1.121.6)

Deep audit of the clustering module found call sites that failed to reuse the
module's own correct safety patterns.

- Dashboard node-drain now checks for another Up node + quorum before
  Suspend-ClusterNode -Drain (mirrors Suspend-ClusterNodeForMaintenance), instead
  of a bare confirm that could take the cluster offline (51-ClusterDashboard).
- Node-eviction undo uses size-aware post-eviction quorum math instead of a
  hardcoded '-le 2' that let 4+ node clusters lose quorum (27-FailoverClustering).
- CSV removal aborts when the mount point can't be resolved, instead of running a
  VM-dependency scan that matches nothing and falsely reports 'no VMs' — which
  could destroy live-VM storage.
- Disk witness must be Online; file-share witness gets a Test-Path reachability
  pre-flight + a cluster-name-object ACL reminder.
- Show-CSVHealth uses Get-ClusterSharedVolumeState.FileSystemRedirectedIOReason
  instead of the always-true SharedVolumeInfo.FaultState comparison (no more false
  'redirected I/O' warnings on healthy CSVs).
- Cluster validation report is saved to a known path and its location printed.
- Tests: new Run-Tests Section 193. Version bump to 1.121.6.
@TheAbider TheAbider merged commit e69293a into master Jul 1, 2026
7 checks passed
@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@TheAbider TheAbider deleted the fix/cluster-safety branch July 1, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant