GNAI-024: Befund n — RAM/Swap voll während IBD; memory 4096→8192, swap 1024→2048
litecoind RSS 3,8 GiB (dbcache=2048 + IBD-Validierung) bei 4 GiB RAM + 1 GiB Swap. Live per pct set auf 8192/2048 erhöht (PVE-Host hat 22 GiB frei), keine OOM-Kills. Provisioning-Skript und Doku aktualisiert; dbcache bleibt bis Sync-Ende. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
+2
-1
@@ -46,6 +46,7 @@ Backups, Secret-Regeln).
|
||||
| k) | Research: `onlynet=onion` (P2P ausschließlich zu onion-Peers). Live geprüft 2026-11-27: die kompilierten onion-Seeds von v0.21.5.8 sind alle unerreichbar („host unreachable“ via Tor), während clearnet-via-Tor funktioniert (check.torproject.org via SOCKS: IsTor=true; duckduckgo-onion: HTTP 301). Der Node bliebe ohne Peers. | **Anpassung:** `onlynet=onion` entfällt; mit `proxy=127.0.0.1:9050` geht ALLER Verkehr (DNS-Seeds, clearnet-Peers via Tor-Exits, onion) durch Tor — unsere IP wird nie exponiert, `listen=0`/`discover=0` verhindern Inbound. Audit prüft: jedes Netzwerk hat proxy=127.0.0.1:9050, keine inbound Peers. |
|
||||
| l) | Schätzung Chain ~60–90 GiB (2026-11-27). Live 2026-11-28: Platte voll bei 140/147 GiB, Node stoppte sauber („Disk space is too low!“). Chain bei Block 2,57 Mio bereits 132 GiB → real ~165 GiB am Tip. | **rootfs 150 → 300 GiB** (`pct resize 114 rootfs 300G` + `resize2fs` lief über pct automatisch), thin pool `pve/data` per `lvextend -l +100%FREE` auf 364,82 GiB (79 %). Backup-Lauf 03:00 fiel wegen Node-Down aus, manuell nachgeholt (restic: 2 Snapshots). Künftig: Pool-Füllstand im GNMON-Monitoring (Abschnitt 11), `thin_pool_autoextend_threshold` auf PVE lässt sich als Frühwarnung setzen. |
|
||||
| m) | 2026-11-28: NVMe-thin-pool `local-lvm` bei 80 % (CT 103/107/304 bereits bei 98–99 %), CT-114-rootfs nach Befund l auf 300 GiB — Kette wächst aber weiter (~165 GiB + ~20 GiB/Jahr). Leer stehendes 8-TB-Volume `daten4` (7,3 TiB SSD, btrfs, PVE-Storage mit `content rootdir,images`) vorhanden. | **rootfs nach `daten4` verschoben:** CT gestoppt, `pct move-volume 114 rootfs daten4` (148,8 GiB via rsync, exit 0), `pct resize 114 rootfs 2T`, alte LVs (`vm-114-disk-0` + 2 Snap-LVs) nach Verifikation per `lvremove` freigegeben → Pool `pve/data` von 79 % auf **39 %** gefallen. Snapshot-Support auf daten4 verifiziert (`pct snapshot`/`delsnapshot` getestet; Timer-Rolle `pve_lxc_snapshot` unverändert). CT bootet von daten4, Node synct weiter (Block 2.503.309/3.220.549), Wallet gelockt. Provisioning-Skript: `CONTAINER_STORAGE='daten4'`. |
|
||||
| n) | 2026-11-28: RAM (4 GiB) und Swap (1 GiB) des CT voll — litecoind RSS 3,8 GiB, Peak 3,9 GiB + ~1 GiB Swap während IBD (Ursache: `dbcache=2048` + UTXO-/Blockindex-Validierung; keine OOM-Kills, Node lief stabil). PVE-Host hat 22 GiB available. | **memory 4096 → 8192, swap 1024 → 2048** live via `pct set 114 -memory 8192 -swap 2048` (sofort wirksam, cgroup-Limit). danach 3,8 GiB RAM frei, 1 GiB Swap frei. Provisioning-Skript (var_ram/var_swap + Checks) und Doku aktualisiert. `dbcache=2048` bleibt während IBD (schnelle Validierung); nach Sync optional auf 1024 senken (Folgepunkt Abschnitt 11). |
|
||||
| j) | Debian 13, unprivileged, Key-Only-SSH, fail2ban, unattended-upgrades, dedizierter User `litecoin`. | Übernommen nach Repo-Muster: frischer CT per gepinntem Community-Scripts-`debian.sh` + Bootstrap-Hook (wie CT 102, GNAI-016 Phase D), dann Ansible (`litecoin_lxc_baseline`, `litecoin_access`, `litecoin_fail2ban`, …). `unattended-upgrades` auf Debian-Security eingeschränkt (CT-100/101/102-Konvention). |
|
||||
|
||||
## 3. Zielarchitektur
|
||||
@@ -55,7 +56,7 @@ Backups, Secret-Regeln).
|
||||
| CT-ID / Hostname | `114` / `ltc-node` |
|
||||
| IP | `10.0.0.61/24` (statischer Serverbereich bis `.99`; DHCP ab `.100`), GW `10.0.0.1`, DNS `10.0.0.14` (Pi-hole), vmbr0, IPv6 aus |
|
||||
| OS / Typ | Debian 13, unprivileged, onboot, protection |
|
||||
| Ressourcen | 2 vCPU, 4096 MiB RAM, 1024 MiB Swap, rootfs auf **`daten4`** (7,3 TiB SSD, btrfs): 300 GiB bei Provisioning, live auf **2 TiB** gewachsen (Befund m) |
|
||||
| Ressourcen | 2 vCPU, **8192 MiB RAM, 2048 MiB Swap** (Befund n), rootfs auf **`daten4`** (7,3 TiB SSD, btrfs): 300 GiB bei Provisioning, live auf **2 TiB** gewachsen (Befund m) |
|
||||
| Software | `litecoind` v0.21.5.8 in `/opt/litecoin` (Symlink), `tor` (Client-only, SOCKS 127.0.0.1:9050), nftables, fail2ban, unattended-upgrades, restic |
|
||||
| Node-Konfig | `proxy=127.0.0.1:9050` (alle Netze, Befund k), `listen=0`, `dnsseed=0`, `upnp=0`, `natpmp=0`, RPC `127.0.0.1:9332` Cookie-Auth, `wallet=cold`, `dbcache=2048` |
|
||||
| Firewall | nftables default-deny; nur SSH 22 aus LAN/WireGuard; kein Forwarding |
|
||||
|
||||
@@ -133,7 +133,7 @@ require_file_sha256 "$DEBIAN_SCRIPT_SHA256" "$helper_path"
|
||||
export COMMUNITY_SCRIPTS_URL COMMUNITY_SCRIPTS_CORE_URL
|
||||
export mode='generated'
|
||||
export var_cpu='2'
|
||||
export var_ram='4096'
|
||||
export var_ram='8192'
|
||||
export var_disk="$ROOT_DISK_GIB"
|
||||
export var_ctid="$CTID"
|
||||
export var_hostname="$HOSTNAME"
|
||||
@@ -163,12 +163,12 @@ pct config "$CTID" >/dev/null 2>&1 ||
|
||||
die "helper returned without creating CT ${CTID}"
|
||||
|
||||
# Community Scripts does not currently expose an LXC swap variable.
|
||||
pct set "$CTID" --swap 1024
|
||||
pct set "$CTID" --swap 2048
|
||||
|
||||
config="$(pct config "$CTID")"
|
||||
grep -qx 'cores: 2' <<<"$config" || die 'unexpected CPU allocation'
|
||||
grep -qx 'memory: 4096' <<<"$config" || die 'unexpected memory allocation'
|
||||
grep -qx 'swap: 1024' <<<"$config" || die 'unexpected swap allocation'
|
||||
grep -qx 'memory: 8192' <<<"$config" || die 'unexpected memory allocation'
|
||||
grep -qx 'swap: 2048' <<<"$config" || die 'unexpected swap allocation'
|
||||
grep -qx 'hostname: ltc-node' <<<"$config" || die 'unexpected hostname'
|
||||
grep -qx 'nameserver: 10.0.0.14' <<<"$config" || die 'unexpected nameserver'
|
||||
grep -qx 'onboot: 1' <<<"$config" || die 'onboot is not enabled'
|
||||
|
||||
Reference in New Issue
Block a user