hub v0.129.0: operator raises ONE clean-up window's cap (R-833); restore-beside script + runbooks (R-834)
gates / gates (push) Successful in 30s
gates / gates (push) Successful in 30s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
1 parent
3885640f66
commit
55f7621c90
20 files changed
+647
-28
No files matched your search
@@ -73,6 +73,12 @@ pct list | awk '{print $1}' | grep -x -e <TARGET-VMID> -e <SOURCE-VMID>
|
||||
|
||||
## 3. Restore, then fix the binds BEFORE first boot
|
||||
|
||||
> **Restoring BESIDE a live original** (a copy to read, a check, a drill)? **Do not use this section.** Use
|
||||
> `felhom.eu/scripts/felhom-restore-beside.sh <scratch-vmid> <volid> <storage>`: onboot 0 at restore, every host-path
|
||||
> bind removed, every NIC down, never started, config read back (R-834, proven live 2026-10-04). This section is for
|
||||
> a **replaced host**, where the original is gone and the binds are right. A bare `pct restore` keeps the archive's
|
||||
> `onboot: 1`, so a host reboot would start it.
|
||||
|
||||
Restore **without starting** the guest. `pct restore` does not auto-start, but never pass anything that
|
||||
would, and do not `pct start` until §4 passes.
|
||||
|
||||
|
||||
@@ -45,14 +45,16 @@ recovered with the household's recovery code — the same as restoring from ep0)
|
||||
`namespace <customer>` / `username root@pam!<name>`.
|
||||
**Do not use `pvesm add pbs` without `--password`:** it validates with the password from its command line, fails 401,
|
||||
and on failure DELETES the `.pw`/`.enc` files you placed (measured). Passing `--password` puts the token on argv.
|
||||
3. `pvesm list <id>` → the household's snapshots (measured: 2 s). `pct restore <scratch VMID> <id>:backup/ct/<vmid>/<time>
|
||||
--storage <dir storage> --unique 1` (measured: **186 s for a 15 GB-logical / 14 GB-on-disk backup** over the LAN, key
|
||||
fingerprint printed by the restore).
|
||||
4. **⚠ BEFORE ANYTHING ELSE — the restored config is the PRODUCTION one:** `onboot: 1`, `mp8` bound to the host's REAL
|
||||
household drives (`/mnt/felhom-drives`) and `mp9` to the original guest's bootstrap. Starting it, or a host reboot,
|
||||
runs a second controller for the same household against the same drives. On a restore BESIDE the original:
|
||||
`pct set <vmid> --onboot 0 --delete mp8,mp9` immediately (R-834). On a true replacement host, where the original is
|
||||
gone, the binds are what you want.
|
||||
3. `pvesm list <id>` → the household's snapshots (measured: 2 s). Then restore with the safe script (R-834):
|
||||
`felhom-restore-beside.sh <scratch VMID> <id>:backup/ct/<vmid>/<time> <dir storage>` (copy it from
|
||||
`felhom.eu/scripts/`; measured 2026-10-03 by hand: **186 s for a 15 GB-logical / 14 GB-on-disk backup** over the LAN).
|
||||
4. **⚠ Why the script, not a bare `pct restore`:** the archive's config is the PRODUCTION one — `onboot: 1`, `mp8` bound
|
||||
to the host's REAL household drives (`/mnt/felhom-drives`) and `mp9` to the original guest's bootstrap. Started, or
|
||||
after a host reboot, it is a second controller for the same household on the same drives. The script restores with
|
||||
`--onboot 0`, removes every host-path bind, takes every NIC down, never starts it, and reads the config back
|
||||
(proven live 2026-10-04, `audits/backup-close-2026-10-04/partA/`). On a true replacement host, where the original is
|
||||
gone, the binds are what you want: use `RUNBOOK-manual-guest-restore.md` §3 or the agent's DR bring-up instead (the
|
||||
DR bring-up refuses beside a live original since agent v0.139.0).
|
||||
5. Read the data without starting it: `pct mount <vmid>` → `/var/lib/lxc/<vmid>/rootfs` (measured: 1 s; rootfs, the
|
||||
controller data volume and `/var/lib/felhom` present, `settings.json` dated 10 min before the backup) → `pct unmount`.
|
||||
6. Teardown: `pct destroy <vmid> --purge`; `pvesm remove <id>` (removes the entry and its priv files — never the
|
||||
|
||||
Reference in new issue
Block a user