Skip to content

Runbook: Disaster Recovery & Cluster Quorum Restoration

This runbook defines cold-boot boot sequencing, etcd Raft quorum recovery, KubeVirt virtual machine restoration, and emergency break-glass administrative procedures for the LambertLab infrastructure.


⚡ Deterministic Cold-Boot Boot Sequencing

Following a whole-home power failure or physical infrastructure maintenance, nodes must be booted in strict deterministic order to satisfy cross-service dependencies:

Hold "Alt" / "Option" to enable pan & zoom
graph TD
    Step1["Step 1: Storage Appliance<br/>TerraMaster F4-425 Plus (san.lambertlab.us)<br/>Wait 2-3 mins for iSCSI/NFS ready"] --> Step2["Step 2: Primary Control Plane Node<br/>opti74 (etcd quorum member #1)<br/>Initializes kubeadm API server & kube-vip"]
    Step2 --> Step3["Step 3: Secondary Quorum Members<br/>opti76 & optiplex (etcd members #2 & #3)<br/>Restores Raft quorum & Cilium eBPF"]
    Step3 --> Step4["Step 4: Dedicated Compute Engine<br/>workstation (GPU & ECK Elastic Stack)<br/>Starts Elasticsearch NVMe engine"]
    Step4 --> Step5["Step 5: Virtual Machine Verification<br/>KubeVirt mounts SAN iSCSI LUNs<br/>DC01, Win11, OPNsense boot"]

Stage 1: Storage Appliance (TerraMaster F4-425 Plus)

Power on the NAS appliance first and wait until storage daemons initialize (~2–3 minutes): * Verify TCP port 3260 (iSCSI target daemon) is listening. * Verify NFS exports (/Volume4/isos-store, /Volume1/data) are accepting mount requests. * Failure Risk: Booting Kubernetes nodes before SAN targets are online causes KubeVirt PVC mounts to enter FailedMount or CrashLoopBackOff.

Stage 2: Primary Control Plane Node (opti74)

Power on opti74. The kubelet systemd service boots and automatically initializes the static control plane pods (etcd, kube-apiserver, kube-controller-manager, kube-scheduler, and kube-vip) from /etc/kubernetes/manifests/: * Check kubelet service status:

sudo systemctl status kubelet
* Verify control plane static pods are running:
sudo crictl ps | grep -E "kube-apiserver|etcd|kube-vip"

Stage 3: Secondary Control Plane Members (opti76 & optiplex)

Power on opti76 and optiplex simultaneously: * Once a second node joins, etcd re-establishes a majority quorum ($2/3$ members), and the Kubernetes API server begins accepting workload requests. * Verify node cluster status:

kubectl get nodes -o wide

Stage 4: Heavy Compute Engine (workstation)

Power on workstation: * The node kubelet connects to the control plane. * Docker engine starts local GPU media workloads (Jellyfin transcoding, Tdarr pipelines). * The Kubernetes control plane / ECK operator resumes the in-cluster Elastic Stack workloads on workstation, re-binding the local NVMe PersistentVolume (elasticsearch-data-pv) to initialize elasticsearch-es-default-0, logstash-ls-0, and fleet-server-agent with GELF listening on port 12201. * Verify Elastic Stack pods reach Running status:

kubectl get pods -n observability -o wide


⚖️ etcd Raft Quorum Loss & Recovery

If two of the three control plane nodes suffer permanent hardware loss, etcd will lose Raft consensus and the API server will reject all write requests.

Single Node Quorum Re-seeding (Disaster Recovery)

If only a single control plane node (e.g. opti74) survives catastrophic hardware loss on optiplex and opti76, re-bootstrap etcd as a single-node cluster:

  1. Edit the static pod manifest for etcd on the surviving control plane node (e.g. opti74):
    sudo nano /etc/kubernetes/manifests/etcd.yaml
    
  2. Add the flag --force-new-cluster to the etcd command arguments in the manifest.
  3. Kubelet will automatically restart the etcd pod and force a new single-member consensus quorum.
  4. Once the API server is healthy and accepting requests, remove --force-new-cluster from /etc/kubernetes/manifests/etcd.yaml so normal consensus operations resume.
  5. Re-join replacement control plane nodes using kubeadm join 10.0.0.201:6443 --control-plane.

🖥️ KubeVirt Virtual Machine Restoration

If virtual machines fail to resume automatically after a host reboot:

  1. Inspect active VM status across the vms namespace:
    kubectl get vms -n vms
    kubectl get vmis -n vms
    
  2. Start any stopped virtual machines:
    virtctl start dc01 -n vms
    virtctl start win11 -n vms
    
  3. Verify underlying iSCSI SAN disk attachments:
    kubectl describe vmi win11 -n vms | grep -A 10 "Volumes"
    
  4. Access direct out-of-band graphical consoles via VNC if guest OS networking fails:
    virtctl vnc win11 -n vms
    

🔑 Break-Glass Administrative Procedures

In the event of a catastrophic directory or federation failure:

Failure Scenario Emergency Access Vector Operational Procedure
On-Prem DC01 Failure Microsoft Entra ID Cloud Admin Log into Azure / Entra portal using the emergency break-glass account (pure cloud Global Admin). Independent of on-premises AD or Kerberos.
Entra ID / Internet Outage On-Premise Domain Admin Access dc01 or win11 console directly via virtctl vnc using LAMBERTLAB\chris or the local machine administrator account.
Guacamole SSO Unavailable Local guacadmin Account Browse to https://guacamole.lambertlab.us. Because EXTENSION_PRIORITY: "*,openid" is configured, local DB authentication runs first. Log in directly with guacadmin.
Vault Sealed on Reboot Vault Unseal Keys If Vault unsealing is interrupted, execute vault operator unseal using the recovery Shamir unseal keys stored in the physical offline safe.