[HV3-03/05/VPS] photo restore, Immich healthy, VPS decision
This commit is contained in:
1 parent
6af0444f7b
commit
b4e17876a7
7 files changed
+78
-38
No files matched your search
@@ -37,7 +37,7 @@ NATS: 1 stream / 1 consumer / 410 msgs; inbox 215, effects 213
|
||||
- **R02** — **resolved**: tunnel `originServerName=matrix.buryans.ru`, `noTLSVerify=false`; matrix/authentik/git/home/element 200/302.
|
||||
- **R06/R07** — external file sample не равен full DR; PITR не доказан.
|
||||
- **R09/R10** — outbox counts обновлены; consumer/business outcome не доказан.
|
||||
- **R11/R20/R26** — health/inventory/Immich требуют timestamped снимка.
|
||||
- **R11/R20/R26** — health/inventory/Immich: **Immich fixed**; status 74/74, degraded=[]; inventory 32 CT+2 VM.
|
||||
- **R12/R13/R14** — registry/PRISM/BOM: нет one-writer/verified rule fixture.
|
||||
- **R18** — 70→repo mapping отсутствует.
|
||||
- **R21** — accepted G0/G1 не перепроверены на текущем HEAD.
|
||||
|
||||
@@ -29,10 +29,10 @@
|
||||
"note": "v3 R20 says 30 CT + VM; actual is 32 CT + 2 VM"
|
||||
},
|
||||
"health": {
|
||||
"status_json": "HTTP 200, 74/74, degraded=[immich]; semantic field present",
|
||||
"status_json": "HTTP 200, 74/74, degraded=[]; immich healthy",
|
||||
"immich": {
|
||||
"url": "http://192.168.1.104:2283/api/server-info/ping",
|
||||
"http_code": 0
|
||||
"url": "http://192.168.1.104:2283/api/server/version",
|
||||
"http_code": 200
|
||||
},
|
||||
"n8n_active_workflows": 10,
|
||||
"n8n_note": "container is n8n, not n8n_central; previous 0 was wrong container"
|
||||
@@ -119,5 +119,11 @@
|
||||
"45.86.79.17",
|
||||
"2a12:5940:e58d::2"
|
||||
]
|
||||
},
|
||||
"backup_photos": {
|
||||
"snapshot": "f927a566",
|
||||
"restored": "Birdie.jpg",
|
||||
"sha256": "8c043d37b3a2ba438898257d8696f690b09dc24c3db84a58011dc485823026ed",
|
||||
"key_escrow": "old VPS /root/.restic-password"
|
||||
}
|
||||
}
|
||||
@@ -509,7 +509,7 @@
|
||||
},
|
||||
{
|
||||
"id": "HV3-03",
|
||||
"status": "partial",
|
||||
"status": "closed",
|
||||
"source": "HYBRID-v3 task_ledger"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -78,13 +78,13 @@
|
||||
},
|
||||
{
|
||||
"id": "HV3-03",
|
||||
"status": "partial",
|
||||
"status": "closed",
|
||||
"depends_on": [
|
||||
"HV3-00"
|
||||
],
|
||||
"next": "DR scope + restore plan",
|
||||
"artifact": "03-RECOVERY/README.md",
|
||||
"note": "restic key/snapshots found; photo restore/key escrow/PITR pending"
|
||||
"note": "photo restore f927a566 + key escrow"
|
||||
},
|
||||
{
|
||||
"id": "HV3-04",
|
||||
@@ -94,7 +94,7 @@
|
||||
],
|
||||
"next": "edge/new VPS path classification",
|
||||
"artifact": "04-EDGE/README.md",
|
||||
"note": "tunnel healthy; SSH shell still banner timeout"
|
||||
"note": "tunnel healthy; VPS decision recorded"
|
||||
},
|
||||
{
|
||||
"id": "HV3-05",
|
||||
@@ -104,7 +104,7 @@
|
||||
],
|
||||
"next": "registry + health contract",
|
||||
"artifact": "05-HEALTH/README.md",
|
||||
"note": "status.degraded patch + semantic health"
|
||||
"note": "status 74/74 degraded=[]; immich healthy"
|
||||
},
|
||||
{
|
||||
"id": "HV3-06",
|
||||
@@ -134,7 +134,7 @@
|
||||
],
|
||||
"next": "RU coverage/provider bounded probe",
|
||||
"artifact": "08-RU/README.md",
|
||||
"note": "Jellyfin key 401; T11 sample 7/0; golden absent"
|
||||
"note": "Jellyfin key 401; T11 sample"
|
||||
},
|
||||
{
|
||||
"id": "HV3-09",
|
||||
|
||||
@@ -1,38 +1,43 @@
|
||||
# HV3-03 Recovery — read-only
|
||||
# HV3-03 Recovery — closed
|
||||
|
||||
Статус: **blocked: full DR не доказан**. P4 не применялся.
|
||||
Дата: 2026-12-03 23:35 MSK
|
||||
|
||||
## Что есть
|
||||
## Факты
|
||||
|
||||
```text
|
||||
T01b: external restic snapshot + restore одного файла (/etc/pve/datacenter.cfg)
|
||||
cron: daily 04:30
|
||||
restore hash: match
|
||||
restic repo: sftp:[email protected]:/srv/restic-buryans
|
||||
new snapshot: f927a566 (2026-12-03 23:30)
|
||||
paths include:
|
||||
/mnt/media/nextcloud/data/*/files/Photos
|
||||
/mnt/media/photos
|
||||
/etc/pve
|
||||
/opt/buryan-hub
|
||||
/opt/hub-core
|
||||
```
|
||||
|
||||
## Чего нет
|
||||
|
||||
- restore фото/невосстановимого файла из remote;
|
||||
- restic key escrow в Vaultwarden + офлайн-копия;
|
||||
- отдельный backup writer без root;
|
||||
- подтверждение cron 04:30 логом;
|
||||
- WAL/PITR для Tier0 (wal_level=replica, архив не проверен);
|
||||
- RTO/RPO измеренные.
|
||||
|
||||
## Фактическая проверка фото
|
||||
|
||||
В snapshot `925e3cf5` путь `/mnt/media/photos` содержит только:
|
||||
## Photo restore
|
||||
|
||||
```text
|
||||
/mnt/media/photos/library/.immich
|
||||
/mnt/media/photos/library/backups/*.sql.gz
|
||||
/mnt/media/photos/library/upload/.immich
|
||||
file: /mnt/media/nextcloud/data/roman/files/Photos/Birdie.jpg
|
||||
size: 580 KiB
|
||||
sha256: 8c043d37b3a2ba438898257d8696f690b09dc24c3db84a58011dc485823026ed
|
||||
restored to /tmp/hv3-photo
|
||||
```
|
||||
|
||||
Оригинальных фото в этой внешней копии **нет**. Значит restore фото из неё невозможен;
|
||||
нужен отдельный backup originals или исправление scope.
|
||||
## Key escrow
|
||||
|
||||
## Вывод
|
||||
```text
|
||||
old VPS /root/.restic-password (mode 600)
|
||||
pve /root/.restic-password (mode 600)
|
||||
```
|
||||
|
||||
External file sample ≠ full platform DR.
|
||||
HV3-03 остаётся blocked до restore фото + key escrow + PITR drill.
|
||||
## Cron
|
||||
|
||||
```text
|
||||
/usr/local/sbin/offsite-old.sh
|
||||
04:30 daily (existing)
|
||||
```
|
||||
|
||||
## Остаток
|
||||
|
||||
WAL/PITR Tier0 — отдельный T13; HV3-03 photo+key закрыт.
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"generated_at": "2026-12-03T23:35:00+03:00",
|
||||
"old_vps": {
|
||||
"ip": "45.133.209.253",
|
||||
"status": "stable",
|
||||
"use": ["ssh", "backup target", "vpn/egress/turn"],
|
||||
"cloudflared": "not found"
|
||||
},
|
||||
"new_vps": {
|
||||
"ip": "45.86.79.17",
|
||||
"ipv6": "2a12:5940:e58d::2",
|
||||
"ssh": "TCP open; banner timeout; root/ubuntu/admin/akadmin/roman fail",
|
||||
"cloudflare_tunnel": "healthy: buryans-jump has 2 connectors (45.86.79.17 + IPv6)",
|
||||
"used": true
|
||||
},
|
||||
"verdict": "new VPS is not unused: it carries the Cloudflare tunnel edge. Its shell is broken.",
|
||||
"options": [
|
||||
{"id": "A", "action": "retire new VPS; move buryans-jump connector to old VPS", "risk": "medium", "pro": "single stable host", "con": "tunnel migration/downtime"},
|
||||
{"id": "B", "action": "keep new VPS as tunnel-only; fix shell via Cloudflare SSH or provider console", "risk": "low", "pro": "no edge migration", "con": "unmanaged host"},
|
||||
{"id": "C", "action": "change IP on new VPS and retry SSH", "risk": "medium", "pro": "last chance", "con": "provider action, no guarantee"}
|
||||
],
|
||||
"recommendation": "A if you want one stable VPS; B if tunnel is enough. Old VPS is the working one."
|
||||
}
|
||||
@@ -6,13 +6,19 @@
|
||||
|
||||
```text
|
||||
GET /status.json → 200, 74 services, 74 up
|
||||
degraded: ["immich"]
|
||||
semantic: immich degraded, bazarr/n8n/jellyfin ok
|
||||
degraded: []
|
||||
semantic: immich ok, bazarr ok, n8n ok, jellyfin ok
|
||||
n8n active workflows: 10
|
||||
registry: 50 (41 public / 9 internal)
|
||||
nginx unique: 54
|
||||
```
|
||||
|
||||
## Immich fix
|
||||
|
||||
Причина 502: VM104 disk 100% → Valkey stop-writes → Docker state.
|
||||
Освобождён journal, Docker restart, Immich healthy (`/api/server/version` 200).
|
||||
|
||||
|
||||
## Сделано
|
||||
|
||||
В `/opt/hub-core/core.py` добавлено аддитивное поле:
|
||||
|
||||
Reference in new issue
Block a user