[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7APCC0W2D05CP0NG2Y99AK5":3,"skill-same:01M7APCC0W2D05CP0NG2Y99AK5":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7APCC0W2D05CP0NG2Y99AK5","sysadmin-systemd-storage-and-networking",null,"Use when configuring the core services of a machine: the systemd unit model, the dependency-versus-ordering distinction people get wrong, the hardening and resource directives, journald and timers over cron; the storage stack including LVM, filesystem choice and I\u002FO tuning; and networking with the modern commands, a diagnosis order that works, firewalling and the tuning that actually matters.","the-vibey-project\u002Fvibey","the-vibey-project","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F329298758?v=4","01M7AJHGZ9722CTJ4JNQZVRH0Q","the vibey project","01M7AJHGZVMG2K7TGXQ6XFHVG3",5,"MIT","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Flinux-server-admin\u002Fskills\u002Fsysadmin-systemd-storage-and-networking\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: sysadmin-systemd-storage-and-networking\ndescription: \"Use when configuring the core services of a machine: the systemd unit model, the dependency-versus-ordering distinction people get wrong, the hardening and resource directives, journald and timers over cron; the storage stack including LVM, filesystem choice and I\u002FO tuning; and networking with the modern commands, a diagnosis order that works, firewalling and the tuning that actually matters.\"\n---\n\n# Linux Server Administration: systemd, Storage, and Networking\n\n> **Part 2 of 5** of the *Linux Server Administration* reference (plugin `linux-server-admin`), covering §4–§6. Sibling skills: `sysadmin-filesystem-permissions-and-processes` (§0–§3), `sysadmin-packages-boot-and-hardening` (§7–§9), `sysadmin-observability-troubleshooting-and-operations` (§10–§14), `sysadmin-reference` (§15–§20). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** The core — POSIX semantics, kernel subsystems, systemd, networking — is stable; distribution lifecycle dates and kernel LTS windows move. See §17 → `sysadmin-reference` for the dated table.\n\n> **How to read this.** Command-dense and operational. Assumes you can already use a\n> shell; this is about understanding the machine well enough to fix it under pressure.\n>\n> **⚠️ GOTCHA** boxes mark what causes outages or silent data loss.\n>\n> **The three mental models that make everything else make sense:**\n> 1. **⚠️ Everything is a file descriptor, and the kernel is the only thing that can\n>    actually do anything.** Userspace asks via syscalls. **When something \"doesn't work,\"\n>    the question is always: which syscall failed, and what errno?** — and `strace` will\n>    tell you (§12 → `sysadmin-observability-troubleshooting-and-operations`).\n> 2. **⚠️ State lives in four places and they disagree**: what's on disk, what's in the\n>    kernel's memory, what the running process loaded at start, and what your config\n>    management thinks. **Most confusing bugs are a disagreement between these** (§11.2 → `sysadmin-observability-troubleshooting-and-operations`).\n> 3. **⚠️ A server is a cache of your configuration management, not a pet.** If you cannot\n>    rebuild it from source control, you don't have a server — you have an artifact\n>    nobody understands (§15 → `sysadmin-reference`).\n\n---\n\n## §4. systemd\n\n### 4.1 The model\n**Units**: `.service`, `.socket`, `.timer`, `.mount`, `.target`, `.path`, `.slice`,\n`.device`. **Targets replace runlevels.**\n```\nsystemctl status|start|stop|restart|reload|enable|disable|mask NAME\nsystemctl daemon-reload            ⚠️ ALWAYS after editing a unit file\nsystemctl list-units --failed      ⚠️ the first thing to run on a sick box\nsystemctl cat NAME                 effective unit, including drop-ins\nsystemctl show NAME                every resolved property\nsystemctl edit NAME                ⚠️ creates a drop-in — the RIGHT way to override\nsystemd-analyze blame              boot time by unit\nsystemd-analyze critical-chain     ⚠️ the actual boot critical path\n```\n> **⚠️ GOTCHA — never edit vendor unit files in `\u002Fusr\u002Flib\u002Fsystemd\u002Fsystem\u002F`.**\n> A package update overwrites them. **Use `systemctl edit NAME` (drop-in in\n> `\u002Fetc\u002Fsystemd\u002Fsystem\u002FNAME.d\u002F`) or copy the whole unit to `\u002Fetc\u002Fsystemd\u002Fsystem\u002F`.**\n> `\u002Fetc` beats `\u002Fusr`. **`systemctl cat` shows you what's actually in effect.**\n\n### 4.2 Dependency and ordering — the distinction people get wrong\n**⚠️ `Wants=`\u002F`Requires=` express *dependency*. `After=`\u002F`Before=` express *ordering*.\nThey are independent.** `Requires=foo.service` without `After=foo.service` starts both in\nparallel and your service probably fails.\n- **`Requires=`** — if the dep fails, this unit fails. **`Wants=`** — weaker; proceed\n  regardless. **`BindsTo=`** — stronger; stop if the dep stops.\n- ⚠️ **`Requires=` + `After=` is the combination you almost always want.**\n\n### 4.3 The hardening and resource directives\n**⚠️ This is systemd's best feature and it's underused.** Per-service sandboxing:\n```\n[Service]\nUser=svc                       Group=svc\nNoNewPrivileges=true           ⚠️ blocks setuid escalation\nProtectSystem=strict           \u002Fusr, \u002Fboot, \u002Fetc read-only\nProtectHome=true               \u002Fhome, \u002Froot, \u002Frun\u002Fuser inaccessible\nPrivateTmp=true                ⚠️ private \u002Ftmp — kills a whole class of symlink attacks\nPrivateDevices=true            minimal \u002Fdev\nProtectKernelTunables=true     ProtectKernelModules=true\nProtectControlGroups=true      RestrictSUIDSGID=true\nRestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX\nSystemCallFilter=@system-service\nCapabilityBoundingSet=CAP_NET_BIND_SERVICE\nAmbientCapabilities=CAP_NET_BIND_SERVICE\nReadWritePaths=\u002Fvar\u002Flib\u002Fsvc\nMemoryMax=2G                   CPUQuota=50%     TasksMax=512\nLimitNOFILE=65535              ⚠️ limits.conf does NOT apply here\nRestart=on-failure             RestartSec=5s\n```\n**⚠️ `systemd-analyze security NAME` scores a unit's exposure** and tells you what's\nmissing. Run it on everything you write.\n\n**⚠️ `Type=` matters**: `simple` (default, ⚠️ **considered started immediately — no\nreadiness signal**), `exec`, `forking` (⚠️ **needs `PIDFile=`**), `oneshot`\n(+ `RemainAfterExit=`), **`notify`** (⚠️ **the process signals readiness via sd_notify —\nthe correct choice if the software supports it**).\n\n### 4.4 journald\n```\njournalctl -u NAME -f                  follow one unit\njournalctl -u NAME --since \"1 hour ago\" --until \"10 min ago\"\njournalctl -p err -b                   ⚠️ errors this boot\njournalctl -b -1                       previous boot ⚠️ (crash forensics)\njournalctl -k                          kernel messages\njournalctl -o json-pretty              structured fields\njournalctl --disk-usage · --vacuum-time=30d · --vacuum-size=1G\njournalctl -f _SYSTEMD_UNIT=x.service _PID=1234    field matching\n```\n**⚠️ By default the journal may be volatile** (`\u002Frun\u002Flog\u002Fjournal`) and lost on reboot.\n**For persistence: `Storage=persistent` in `journald.conf` and `mkdir -p\n\u002Fvar\u002Flog\u002Fjournal`.** ⚠️ **A surprising number of \"we have no logs from the crash\"\nincidents are this.**\n\n### 4.5 Timers over cron\n```\n[Timer]\nOnCalendar=*-*-* 02:00:00\nPersistent=true          ⚠️ run on boot if the last run was missed\nRandomizedDelaySec=300   ⚠️ avoid thundering herd across a fleet\n```\n**⚠️ Timers beat cron because**: you get journald logging, dependency ordering, resource\nlimits, and `systemctl list-timers`. **`systemd-analyze calendar \"EXPR\"` validates the\nschedule before you deploy it.**\n\n---\n\n## §5. Storage\n\n### 5.1 The stack\n```\nPhysical device → partition → [LUKS] → [LVM PV → VG → LV] → [RAID] → filesystem → mount\n```\n```\nlsblk -f                     ⚠️ the best single overview: tree + FS + UUID + mountpoint\nblkid                        UUIDs and types\ndf -h · df -i                ⚠️ run BOTH — inodes exhaust independently\ndu -xh --max-depth=1 \u002Fpath   ⚠️ -x stops it crossing filesystems\nncdu -x \u002F                    interactive\n```\n\n### 5.2 LVM\n```\npvcreate \u002Fdev\u002Fsdb1 · vgcreate vg0 \u002Fdev\u002Fsdb1 · lvcreate -L 50G -n data vg0\nlvextend -L +20G -r \u002Fdev\u002Fvg0\u002Fdata      ⚠️ -r resizes the filesystem too\nvgs · lvs · pvs                        status\nlvcreate -s -L 5G -n snap \u002Fdev\u002Fvg0\u002Fdata   snapshot\n```\n**⚠️ LVM snapshots are copy-on-write and will fill up and break** if the origin churns\npast the snapshot size. **They are a backup *staging* mechanism, not a backup.**\n\n### 5.3 Filesystems\n| FS | Use | ⚠️ Notes |\n|---|---|---|\n| **ext4** | Default, boring, reliable | ⚠️ **Cannot shrink while mounted** |\n| **XFS** | RHEL default, large files, parallel I\u002FO | ⚠️ **CANNOT SHRINK AT ALL. Ever.** |\n| **btrfs** | Snapshots, checksums, subvolumes | ⚠️ **Avoid RAID5\u002F6 — long-standing write hole** |\n| **ZFS** | Checksums, snapshots, send\u002Frecv, ARC | ⚠️ **Out-of-tree licensing; wants RAM and ECC** |\n\n**⚠️ `\u002Fetc\u002Ffstab` mistakes strand a box at boot.** Use **UUID= or LABEL=**, never\n`\u002Fdev\u002FsdX` (⚠️ **device names are not stable across reboots**). **Add `nofail` to\nnon-critical mounts.** ⚠️ **Always `mount -a` after editing fstab and before rebooting —\nthis one habit prevents a genuine class of console-access-required incidents.**\n\n**Useful mount options**: `noatime` (⚠️ **reduces write amplification; `relatime` is the\nmodern default and usually fine**), `nodev,nosuid,noexec` on data mounts, `discard` vs\nperiodic `fstrim.timer` (⚠️ **prefer the timer; inline discard can hurt latency**).\n\n### 5.4 I\u002FO\n`iostat -xz 1` — ⚠️ **`%util` near 100% means the device is busy, but for SSDs and arrays\nthat does NOT mean saturated** (they handle parallel requests). **Look at `await`,\n`aqu-sz` and throughput instead.** `iotop`, `biolatency`\u002F`biosnoop` (§10.4 → `sysadmin-observability-troubleshooting-and-operations`).\n**Schedulers**: `cat \u002Fsys\u002Fblock\u002Fsda\u002Fqueue\u002Fscheduler` — ⚠️ **`none`\u002F`mq-deadline` for NVMe,\n`bfq` for desktop-ish latency, `mq-deadline` for spinning rust.**\n\n---\n\n## §6. Networking\n\n### 6.1 The modern commands\n**⚠️ `ifconfig`, `netstat`, `route` and `arp` are deprecated. Learn `ip` and `ss`.**\n```\nip a · ip -br a                  ⚠️ -br is the readable one\nip r · ip r get 8.8.8.8          ⚠️ shows which route\u002Finterface a dest actually uses\nip -s link                       per-interface error\u002Fdrop counters\nip neigh                         ARP\u002FNDP table\nss -tulpn                        ⚠️ listening TCP\u002FUDP with process — replaces netstat\nss -s                            socket summary\nss -tan state time-wait | wc -l  TIME_WAIT count\n```\n\n### 6.2 Diagnosis, in order\n```\nip a                    do I have an address?\nip r                    do I have a route?\nping -c3 \u003Cgateway>      is L2\u002FL3 up locally?\nping -c3 1.1.1.1        is routing working? (⚠️ ICMP may be filtered — not proof of down)\ndig @1.1.1.1 example.com   is DNS working, bypassing local resolver?\ndig example.com         does the SYSTEM resolver work?  ⚠️ compare with the above\ncurl -v https:\u002F\u002Fhost\u002F   does the application layer work?\nmtr -rwc100 host        ⚠️ where is loss\u002Flatency introduced, per hop\nss -tulpn               am I actually listening, and on which address?\ntcpdump -ni any port 443 -c 50   what's on the wire\n```\n**⚠️ The single most common network \"outage\" is DNS**, and the second most common is a\nservice listening on `127.0.0.1` instead of `0.0.0.0`. **`ss -tulpn` distinguishes them\ninstantly.**\n\n**⚠️ Resolution on modern systems**: `\u002Fetc\u002Fresolv.conf` may be a symlink managed by\n`systemd-resolved` — **use `resolvectl status` and `resolvectl query name`**, because\nediting `\u002Fetc\u002Fresolv.conf` directly gets silently overwritten.\n\n### 6.3 Firewalling\n**⚠️ `nftables` is the modern backend; `iptables` commands are usually a shim onto it.**\n```\nnft list ruleset                        ⚠️ the source of truth\nfirewall-cmd --list-all                 (RHEL family)\nfirewall-cmd --permanent --add-service=https && firewall-cmd --reload\nufw status verbose · ufw allow 443\u002Ftcp  (Debian\u002FUbuntu)\n```\n**⚠️ Two rules that prevent lockouts**: **allow SSH before enabling any firewall**, and\n**when changing rules remotely, schedule a rollback first** —\n`echo \"nft flush ruleset\" | at now + 5 minutes` or a `systemd-run --on-active=5m` revert.\nCancel it once you've confirmed you're still connected.\n\n### 6.4 Tuning that actually matters\n```\nnet.core.somaxconn = 4096              ⚠️ listen backlog cap — raise for busy servers\nnet.ipv4.tcp_max_syn_backlog = 8192\nnet.ipv4.ip_local_port_range = 10240 65535    ⚠️ ephemeral port exhaustion\nnet.ipv4.tcp_tw_reuse = 1              ⚠️ safe; tcp_tw_recycle was REMOVED — never use it\nnet.core.default_qdisc = fq\nnet.ipv4.tcp_congestion_control = bbr   ⚠️ notably better on lossy\u002Flong-fat links\nfs.file-max \u002F nofile limits            for high connection counts\n```\n**⚠️ Apply via `\u002Fetc\u002Fsysctl.d\u002F*.conf` and `sysctl --system`**, not by editing\n`\u002Fetc\u002Fsysctl.conf` — packaging and ordering are cleaner.\n","# Linux Server Administration: systemd, Storage, and Networking\n\n> **Part 2 of 5** of the *Linux Server Administration* reference (plugin `linux-server-admin`), covering §4–§6. Sibling skills: `sysadmin-filesystem-permissions-and-processes` (§0–§3), `sysadmin-packages-boot-and-hardening` (§7–§9), `sysadmin-observability-troubleshooting-and-operations` (§10–§14), `sysadmin-reference` (§15–§20). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** The core — POSIX semantics, kernel subsystems, systemd, networking — is stable; distribution lifecycle dates and kernel LTS windows move. See §17 → `sysadmin-reference` for the dated table.\n\n> **How to read this.** Command-dense and operational. Assumes you can already use a\n> shell; this is about understanding the machine well enough to fix it under pressure.\n>\n> **⚠️ GOTCHA** boxes mark what causes outages or silent data loss.\n>\n> **The three mental models that make everything else make sense:**\n> 1. **⚠️ Everything is a file descriptor, and the kernel is the only thing that can\n>    actually do anything.** Userspace asks via syscalls. **When something \"doesn't work,\"\n>    the question is always: which syscall failed, and what errno?** — and `strace` will\n>    tell you (§12 → `sysadmin-observability-troubleshooting-and-operations`).\n> 2. **⚠️ State lives in four places and they disagree**: what's on disk, what's in the\n>    kernel's memory, what the running process loaded at start, and what your config\n>    management thinks. **Most confusing bugs are a disagreement between these** (§11.2 → `sysadmin-observability-troubleshooting-and-operations`).\n> 3. **⚠️ A server is a cache of your configuration management, not a pet.** If you cannot\n>    rebuild it from source control, you don't have a server — you have an artifact\n>    nobody understands (§15 → `sysadmin-reference`).\n\n---\n\n## §4. systemd\n\n### 4.1 The model\n**Units**: `.service`, `.socket`, `.timer`, `.mount`, `.target`, `.path`, `.slice`,\n`.device`. **Targets replace runlevels.**\n```\nsystemctl status|start|stop|restart|reload|enable|disable|mask NAME\nsystemctl daemon-reload            ⚠️ ALWAYS after editing a unit file\nsystemctl list-units --failed      ⚠️ the first thing to run on a sick box\nsystemctl cat NAME                 effective unit, including drop-ins\nsystemctl show NAME                every resolved property\nsystemctl edit NAME                ⚠️ creates a drop-in — the RIGHT way to override\nsystemd-analyze blame              boot time by unit\nsystemd-analyze critical-chain     ⚠️ the actual boot critical path\n```\n> **⚠️ GOTCHA — never edit vendor unit files in `\u002Fusr\u002Flib\u002Fsystemd\u002Fsystem\u002F`.**\n> A package update overwrites them. **Use `systemctl edit NAME` (drop-in in\n> `\u002Fetc\u002Fsystemd\u002Fsystem\u002FNAME.d\u002F`) or copy the whole unit to `\u002Fetc\u002Fsystemd\u002Fsystem\u002F`.**\n> `\u002Fetc` beats `\u002Fusr`. **`systemctl cat` shows you what's actually in effect.**\n\n### 4.2 Dependency and ordering — the distinction people get wrong\n**⚠️ `Wants=`\u002F`Requires=` express *dependency*. `After=`\u002F`Before=` express *ordering*.\nThey are independent.** `Requires=foo.service` without `After=foo.service` starts both in\nparallel and your service probably fails.\n- **`Requires=`** — if the dep fails, this unit fails. **`Wants=`** — weaker; proceed\n  regardless. **`BindsTo=`** — stronger; stop if the dep stops.\n- ⚠️ **`Requires=` + `After=` is the combination you almost always want.**\n\n### 4.3 The hardening and resource directives\n**⚠️ This is systemd's best feature and it's underused.** Per-service sandboxing:\n```\n[Service]\nUser=svc                       Group=svc\nNoNewPrivileges=true           ⚠️ blocks setuid escalation\nProtectSystem=strict           \u002Fusr, \u002Fboot, \u002Fetc read-only\nProtectHome=true               \u002Fhome, \u002Froot, \u002Frun\u002Fuser inaccessible\nPrivateTmp=true                ⚠️ private \u002Ftmp — kills a whole class of symlink attacks\nPrivateDevices=true            minimal \u002Fdev\nProtectKernelTunables=true     ProtectKernelModules=true\nProtectControlGroups=true      RestrictSUIDSGID=true\nRestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX\nSystemCallFilter=@system-service\nCapabilityBoundingSet=CAP_NET_BIND_SERVICE\nAmbientCapabilities=CAP_NET_BIND_SERVICE\nReadWritePaths=\u002Fvar\u002Flib\u002Fsvc\nMemoryMax=2G                   CPUQuota=50%     TasksMax=512\nLimitNOFILE=65535              ⚠️ limits.conf does NOT apply here\nRestart=on-failure             RestartSec=5s\n```\n**⚠️ `systemd-analyze security NAME` scores a unit's exposure** and tells you what's\nmissing. Run it on everything you write.\n\n**⚠️ `Type=` matters**: `simple` (default, ⚠️ **considered started immediately — no\nreadiness signal**), `exec`, `forking` (⚠️ **needs `PIDFile=`**), `oneshot`\n(+ `RemainAfterExit=`), **`notify`** (⚠️ **the process signals readiness via sd_notify —\nthe correct choice if the software supports it**).\n\n### 4.4 journald\n```\njournalctl -u NAME -f                  follow one unit\njournalctl -u NAME --since \"1 hour ago\" --until \"10 min ago\"\njournalctl -p err -b                   ⚠️ errors this boot\njournalctl -b -1                       previous boot ⚠️ (crash forensics)\njournalctl -k                          kernel messages\njournalctl -o json-pretty              structured fields\njournalctl --disk-usage · --vacuum-time=30d · --vacuum-size=1G\njournalctl -f _SYSTEMD_UNIT=x.service _PID=1234    field matching\n```\n**⚠️ By default the journal may be volatile** (`\u002Frun\u002Flog\u002Fjournal`) and lost on reboot.\n**For persistence: `Storage=persistent` in `journald.conf` and `mkdir -p\n\u002Fvar\u002Flog\u002Fjournal`.** ⚠️ **A surprising number of \"we have no logs from the crash\"\nincidents are this.**\n\n### 4.5 Timers over cron\n```\n[Timer]\nOnCalendar=*-*-* 02:00:00\nPersistent=true          ⚠️ run on boot if the last run was missed\nRandomizedDelaySec=300   ⚠️ avoid thundering herd across a fleet\n```\n**⚠️ Timers beat cron because**: you get journald logging, dependency ordering, resource\nlimits, and `systemctl list-timers`. **`systemd-analyze calendar \"EXPR\"` validates the\nschedule before you deploy it.**\n\n---\n\n## §5. Storage\n\n### 5.1 The stack\n```\nPhysical device → partition → [LUKS] → [LVM PV → VG → LV] → [RAID] → filesystem → mount\n```\n```\nlsblk -f                     ⚠️ the best single overview: tree + FS + UUID + mountpoint\nblkid                        UUIDs and types\ndf -h · df -i                ⚠️ run BOTH — inodes exhaust independently\ndu -xh --max-depth=1 \u002Fpath   ⚠️ -x stops it crossing filesystems\nncdu -x \u002F                    interactive\n```\n\n### 5.2 LVM\n```\npvcreate \u002Fdev\u002Fsdb1 · vgcreate vg0 \u002Fdev\u002Fsdb1 · lvcreate -L 50G -n data vg0\nlvextend -L +20G -r \u002Fdev\u002Fvg0\u002Fdata      ⚠️ -r resizes the filesystem too\nvgs · lvs · pvs                        status\nlvcreate -s -L 5G -n snap \u002Fdev\u002Fvg0\u002Fdata   snapshot\n```\n**⚠️ LVM snapshots are copy-on-write and will fill up and break** if the origin churns\npast the snapshot size. **They are a backup *staging* mechanism, not a backup.**\n\n### 5.3 Filesystems\n| FS | Use | ⚠️ Notes |\n|---|---|---|\n| **ext4** | Default, boring, reliable | ⚠️ **Cannot shrink while mounted** |\n| **XFS** | RHEL default, large files, parallel I\u002FO | ⚠️ **CANNOT SHRINK AT ALL. Ever.** |\n| **btrfs** | Snapshots, checksums, subvolumes | ⚠️ **Avoid RAID5\u002F6 — long-standing write hole** |\n| **ZFS** | Checksums, snapshots, send\u002Frecv, ARC | ⚠️ **Out-of-tree licensing; wants RAM and ECC** |\n\n**⚠️ `\u002Fetc\u002Ffstab` mistakes strand a box at boot.** Use **UUID= or LABEL=**, never\n`\u002Fdev\u002FsdX` (⚠️ **device names are not stable across reboots**). **Add `nofail` to\nnon-critical mounts.** ⚠️ **Always `mount -a` after editing fstab and before rebooting —\nthis one habit prevents a genuine class of console-access-required incidents.**\n\n**Useful mount options**: `noatime` (⚠️ **reduces write amplification; `relatime` is the\nmodern default and usually fine**), `nodev,nosuid,noexec` on data mounts, `discard` vs\nperiodic `fstrim.timer` (⚠️ **prefer the timer; inline discard can hurt latency**).\n\n### 5.4 I\u002FO\n`iostat -xz 1` — ⚠️ **`%util` near 100% means the device is busy, but for SSDs and arrays\nthat does NOT mean saturated** (they handle parallel requests). **Look at `await`,\n`aqu-sz` and throughput instead.** `iotop`, `biolatency`\u002F`biosnoop` (§10.4 → `sysadmin-observability-troubleshooting-and-operations`).\n**Schedulers**: `cat \u002Fsys\u002Fblock\u002Fsda\u002Fqueue\u002Fscheduler` — ⚠️ **`none`\u002F`mq-deadline` for NVMe,\n`bfq` for desktop-ish latency, `mq-deadline` for spinning rust.**\n\n---\n\n## §6. Networking\n\n### 6.1 The modern commands\n**⚠️ `ifconfig`, `netstat`, `route` and `arp` are deprecated. Learn `ip` and `ss`.**\n```\nip a · ip -br a                  ⚠️ -br is the readable one\nip r · ip r get 8.8.8.8          ⚠️ shows which route\u002Finterface a dest actually uses\nip -s link                       per-interface error\u002Fdrop counters\nip neigh                         ARP\u002FNDP table\nss -tulpn                        ⚠️ listening TCP\u002FUDP with process — replaces netstat\nss -s                            socket summary\nss -tan state time-wait | wc -l  TIME_WAIT count\n```\n\n### 6.2 Diagnosis, in order\n```\nip a                    do I have an address?\nip r                    do I have a route?\nping -c3 \u003Cgateway>      is L2\u002FL3 up locally?\nping -c3 1.1.1.1        is routing working? (⚠️ ICMP may be filtered — not proof of down)\ndig @1.1.1.1 example.com   is DNS working, bypassing local resolver?\ndig example.com         does the SYSTEM resolver work?  ⚠️ compare with the above\ncurl -v https:\u002F\u002Fhost\u002F   does the application layer work?\nmtr -rwc100 host        ⚠️ where is loss\u002Flatency introduced, per hop\nss -tulpn               am I actually listening, and on which address?\ntcpdump -ni any port 443 -c 50   what's on the wire\n```\n**⚠️ The single most common network \"outage\" is DNS**, and the second most common is a\nservice listening on `127.0.0.1` instead of `0.0.0.0`. **`ss -tulpn` distinguishes them\ninstantly.**\n\n**⚠️ Resolution on modern systems**: `\u002Fetc\u002Fresolv.conf` may be a symlink managed by\n`systemd-resolved` — **use `resolvectl status` and `resolvectl query name`**, because\nediting `\u002Fetc\u002Fresolv.conf` directly gets silently overwritten.\n\n### 6.3 Firewalling\n**⚠️ `nftables` is the modern backend; `iptables` commands are usually a shim onto it.**\n```\nnft list ruleset                        ⚠️ the source of truth\nfirewall-cmd --list-all                 (RHEL family)\nfirewall-cmd --permanent --add-service=https && firewall-cmd --reload\nufw status verbose · ufw allow 443\u002Ftcp  (Debian\u002FUbuntu)\n```\n**⚠️ Two rules that prevent lockouts**: **allow SSH before enabling any firewall**, and\n**when changing rules remotely, schedule a rollback first** —\n`echo \"nft flush ruleset\" | at now + 5 minutes` or a `systemd-run --on-active=5m` revert.\nCancel it once you've confirmed you're still connected.\n\n### 6.4 Tuning that actually matters\n```\nnet.core.somaxconn = 4096              ⚠️ listen backlog cap — raise for busy servers\nnet.ipv4.tcp_max_syn_backlog = 8192\nnet.ipv4.ip_local_port_range = 10240 65535    ⚠️ ephemeral port exhaustion\nnet.ipv4.tcp_tw_reuse = 1              ⚠️ safe; tcp_tw_recycle was REMOVED — never use it\nnet.core.default_qdisc = fq\nnet.ipv4.tcp_congestion_control = bbr   ⚠️ notably better on lossy\u002Flong-fat links\nfs.file-max \u002F nofile limits            for high connection counts\n```\n**⚠️ Apply via `\u002Fetc\u002Fsysctl.d\u002F*.conf` and `sysctl --system`**, not by editing\n`\u002Fetc\u002Fsysctl.conf` — packaging and ordering are cleaner.\n",{"name":5,"description":7},"develop","ae32736a1aabddabca5d2c96d665aa0ebc7d8700","src\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Flinux-server-admin\u002Fskills\u002Fsysadmin-systemd-storage-and-networking",3,"https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey","https:\u002F\u002Fthe-vibey-project.github.io\u002Fvibey\u002F","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project","https:\u002F\u002Fvibewithadam.matthewsteinberger.com","freedom for software engineers","2026-11-15 05:47:42",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add the-vibey-project\u002Fvibey --skill sysadmin-systemd-storage-and-networking",{"tool":40,"command":41},"bunx","bunx skills add the-vibey-project\u002Fvibey --skill sysadmin-systemd-storage-and-networking",{"tool":43,"command":44},"pnpm","pnpm dlx skills add the-vibey-project\u002Fvibey --skill sysadmin-systemd-storage-and-networking","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Flinux-server-admin\u002Fskills\u002Fsysadmin-systemd-storage-and-networking\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7AT1FQJAE1FQYAMDTF490Y4","white-paper-writing","Use when writing white papers, technical reports, policy documents, thought leadership pieces, or any long-form authoritative document. Triggers on requests to write, structure, outline, or review white papers, technical reports, position papers, policy briefs, or evidence-driven arguments. Also use for B2B content marketing strategy, technical documentation requiring authority, academic-style reports, or any document that must educate while persuading. Use when someone asks \"how should I structure this\" for a long-form document.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fwhite-paper-writing\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7AT16BJRJJKK2MASXRZS76G","prose-technical-mechanics","Use when editing or writing prose at a technical\u002Fmechanical level: choosing between Anglo-Saxon and Latinate diction, placing information in topic vs stress positions, writing periodic vs cumulative sentences, handling sentence rhythm, punctuation as logic, transitions, paragraph structure, or phonesthetics. Use when someone wants to understand WHY prose works or doesn't, not just surface-level style advice. Triggers on word choice, sentence structure, emphasis, rhythm, diction, or any deep writing mechanics question.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-technical-mechanics\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7AT0W9HT0ZZ9Y287NW99MR3","prose-mechanics","Use when writing, editing, or analyzing prose style; when trying to avoid generic AI-sounding writing; when applying specific prose styles such as journalistic, academic, narrative, KJV biblical, Hemingway plain, Latinate\u002FJamesian, Orwellian, Augustan, Victorian, Early Modern (Bacon, Browne, Milton), or free indirect discourse; or when coaching someone on writing voice and mechanics. Triggers on any request to improve, analyze, or write in a specific prose style, to fix \"AI-sounding\" writing, to make prose more vivid or concrete, to vary sentence rhythm, or to understand how a particular writer achieves their effects.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-mechanics\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7AT0KR635JX66X2X6F3E2CP","narrative-structure","Use when structuring stories, pitches, presentations, white papers, or any persuasive narrative; analyzing the hero's journey in fiction or non-fiction; applying StoryBrand for business communication; designing narrative arcs for thought leadership; or understanding Vogler, Snyder, Propp, or Campbell frameworks. Triggers on any narrative structure, storytelling, pitch structure, StoryBrand, hero's journey, three-act structure, Freytag, Save the Cat, narrative arc, or \"how should I structure this story\u002Fpitch\u002Fpresentation\" request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fnarrative-structure\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7AT0AKGW09NKKZDYBT8VRDE","legal-brief-writing","Use when writing legal briefs, motions, or any court filing; when analyzing judicial cognition and persuasion; when applying elite brief-writing techniques from Roberts, Clement, Kagan, Garner; or when structuring legal arguments for maximum persuasion. Also use for autistic\u002Fneurodivergent advocates who need to understand how their natural communication style maps to elite legal advocacy. Triggers on any legal writing, brief drafting, motion preparation, or legal argument structuring request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Flegal-brief-writing\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7AT00VWPS4Q8B5VEMXX9NQT","journal-publishability-criteria","Use whenever a research paper, article or preprint is being written, revised, reviewed or published, and specifically before every publication of docs\u002Fpaper.md. Covers what legitimate journals actually gate on, in order of gating — the editor's desk screen (scope, novelty, package problems), what reviewers judge (methodological soundness, claims the evidence can carry, statistical and qualitative reporting), EQUATOR reporting guidelines, the ICMJE authorship criteria, COPE's view of text recycling, the near-universal generative-AI policy (no AI author, disclosure, author responsibility), TOP 2025 transparency standards, how to verify a journal is legitimate, submitting without an institution, and a pre-submission checklist. Triggers on requests to evaluate, review, prepare or submit a paper, to judge publishability, to write a declarations or data-availability section, to disclose AI use, or to check a journal.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fjournal-publishability-criteria\u002FSKILL.md",[],[]]