Linux administration is about state, not memorizing commands.
In Phase 03 you learned to confirm that a service starts and responds locally. Here we move outward through the host's network interfaces, routes, name resolution and firewall—and downward through its disks, filesystems, mounts and logical volumes. These are Linux-specific administrative workflows, not a repeat of basic IP networking theory.
JUMP TO SECTION · 0 / 12Start with the introduction
Which layer failed? Prove each boundary.
A browser timing out does not tell you if DNS, routing, a listening socket, a host firewall, an upstream control or the application itself is the problem. Similarly, “disk missing” can mean an absent block device, an invalid UUID, a mount not active, or insufficient space in the mounted filesystem.
Networking Foundations already explains IP addresses, subnetting and routing concepts. This phase focuses on the Linux commands and configuration surfaces that let you inspect and safely correct those conditions on a real server.
ip -br addressIs the interface up with the expected address and subnet?
ip route get DESTWhich interface and next hop will the kernel actually select?
resolvectl query NAMEIs the host using an appropriate resolver and returning the expected address?
ss -ltnpIs a process listening on the intended local address and port?
nft list rulesetDoes the host firewall permit the approved source, destination and port in the evaluated rule order?
curl --fail URLCan an authorized client complete the intended request, not merely ping an intermediate device?
A remote network change can cut off your SSH connection before you can undo it. Confirm the management interface, maintenance window, console access, rollback mechanism and expected post-change path before editing routes or applying Netplan.
Read the kernel's interface view.
Use ip link to inspect interface flags and link counters, and ip address to see assigned IPv4 and IPv6 addresses. A physically connected interface can still have the wrong address, a disabled administrative state or a broken upstream path. An UP interface is necessary for many connections but is not proof of an application response.
ip -br addressFast state overviewFind the interface name, administrative state and configured addresses.
ip -s link show ens192Inspect countersLook for packet errors, drops or unexpected traffic trends without guessing which network layer is failing.
ip -6 address showDon't ignore IPv6A host may prefer or use IPv6, even if your initial tests considered only IPv4.
networkctl status ens192Check managed linksUseful on a system using systemd-networkd; NetworkManager or another renderer may own the actual configuration.
Interface configuration is distribution-specific. Ubuntu Server may use Netplan with systemd-networkd or NetworkManager as the renderer; other distributions may use NetworkManager profiles directly. Locate the active configuration owner before editing a file. Avoid copying a device name such as ens192 onto another host without confirming it exists there.
A working default route can hide a bad specific route.
The kernel selects routes according to matching prefixes and policy rules. A specific route such as 10.24.40.0/24 matches destinations in that subnet more narrowly than a route to 10.24.0.0/16. The longer matching prefix generally wins before metrics are compared within an otherwise equivalent class of routes.
10.24.0.0/16 via 10.24.8.1Broader, correct path10.24.40.0/24 via 10.24.8.254Longer prefix wins, but leads to the wrong hop10.24.40.12Selected next hop: 10.24.8.254 until the stale route is removedip route get DESTINATION reveals the chosen route for a specific lookup, including selected interface, source address and next hop. Use ip rule and alternate route tables when policy-based routing is involved. Ping to a nearby gateway only demonstrates that particular test path, not end-to-end availability of a remote service.
Never delete the default route on a remote system to “see what happens.” Identify the managed configuration, confirm the precise obsolete route, and use an approved change plan with rollback and an alternate management path.
Separate DNS failure from connectivity failure.
Linux applications may resolve names through the configured name-service switch, systemd-resolved, NetworkManager, local hosts entries, or other resolver components. On a host using systemd-resolved, resolvectl status displays per-link DNS servers and search/routing domains; resolvectl query NAME tests a name resolution request.
$ resolvectl status ens192Current DNS Server: 192.0.2.53 DNS Domain: northstar.test Approved DNS Server: 10.24.0.53
$ curl --fail http://10.24.8.44:8080/healthHTTP/1.1 200 OK # Known direct-IP application path works
If a name fails but a known IP endpoint works, inspect the resolver and returned answers before changing the application's firewall or replacing DNS records. On managed systems, /etc/resolv.conf may be generated or a symlink; manually editing it may be temporary or wrong. Preserve any active search domains, split-DNS configuration and rollback access.
Prove the socket, then evaluate host policy.
ss -ltnp can show listening TCP sockets and owning processes when permission allows. A listener on 127.0.0.1 accepts only IPv4 loopback traffic, while one bound to 0.0.0.0 listens on available IPv4 interfaces; both are still subject to appropriate socket and firewall conditions. Verify the actual transport and address family, including IPv6 where relevant.
ss -ltnpSocket layerConfirm the destination address/port and process identity before editing firewall rules.
nft -a list rulesetRule evaluation layerReview chains, hooks, policy, counters and order; an accept rule placed after an earlier drop may not help.
ufw status verboseDistribution wrapperOn hosts managed with UFW, inspect its rules rather than bypassing the active firewall management layer.
curl --fail https://HOST:PORT/healthClient-level testTest the intended service from an approved source with trusted TLS rather than disabling certificate verification.
Linux firewall management differs by distribution and deployment: nftables, firewalld, UFW and higher-level automation may control the same underlying packet filtering. A blanket allow-all or ruleset flush can expose unrelated services. Match approved source subnet, destination, protocol and port, apply rules in the evaluated order, preserve persistence and test from the actual client path.
An application may respond at localhost while a host firewall, upstream ACL, routing problem or load balancer blocks external clients. Validate from the user's source network once local service behavior is confirmed.
Block device, partition and filesystem aren't interchangeable.
A server may expose physical or virtual block devices such as /dev/vda or /dev/nvme0n1. Those can contain partitions, LVM physical volumes, encrypted devices and filesystems. A filesystem provides the files and directories an application reads; a mount connects that filesystem to a location in the Linux directory tree.
Use lsblk -f and blkid to identify an existing filesystem and UUID before touching it. df -h shows mounted filesystem block capacity, while du estimates directory usage. Differences can arise from deleted-but-open files, reserved blocks, snapshots and mount boundaries. df -i checks inode exhaustion, which can stop file creation even with data blocks available.
Formatting tools such as mkfs.ext4 create a filesystem and can overwrite existing data. Never use them as a routine fix for a missing mount. Before storage changes, confirm device identity, service impact, backup/restore readiness, filesystem type and recovery access.
Mount the intended filesystem, not the wrong device.
findmnt shows current mounts and their sources. The /etc/fstab file can describe mounts that should be available at boot or when requested. A persistent entry may use a filesystem UUID instead of a volatile device name, but a cloned volume or changed UUID can make an old entry invalid.
$ blkid /dev/vdb1UUID=87fa4f7a-8259-4f1b-8e8f-a0da5212c009 TYPE=ext4
$ grep /srv/northstar/data /etc/fstabUUID=34ab0000-0000-0000-0000-000000000000 /srv/northstar/data ext4 defaults,nofail 0 2 # Entry does not refer to /dev/vdb1
An incorrect entry doesn't imply the ext4 filesystem is corrupt. Preserve the original fstab, inspect device identity and intended mountpoint, validate syntax using findmnt --verify, and mount only the planned target after approval. On systemd hosts, refresh generated mount-unit definitions as appropriate when fstab changes. Avoid a blind reboot or a broad mount -a as your first experiment on an unfamiliar production host.
Check what lies beneath a mount point before and after mounting. A directory may contain ordinary files when the intended filesystem is absent; mounting overlays access to those underlying directory entries until unmounted. A successful manual mount also doesn't prove persistence after reboot.
fstab Linux manual ↗LVM free extents are not the same as filesystem space.
Linux Logical Volume Manager (LVM) groups storage into physical volumes (PV), volume groups (VG) and logical volumes (LV). A filesystem usually sits on top of the LV. Adding a disk or expanding a VG does not automatically expand the LV or its filesystem; each layer has its own capacity and tools.
On a healthy ext4-based system with approved free extents, an LV may be extended with lvextend, followed by a filesystem growth operation such as resize2fs. A mounted XFS filesystem uses different growth commands, commonly xfs_growfs. Verify filesystem type and layout before any destructive operation. Snapshots can help certain rollbacks but are not equivalent to tested off-host backups.
Why doesn't the filesystem automatically grow?
Follow capacity through PV, VG, LV and ext4. Changing one layer doesn't necessarily resize the next. This demonstration changes no real disk.
Existing PV space, after partitioning
16 GiB free for allocation after the modeled LV resize
Capacity allocated to lv_data
Capacity the application can actually use
The VG has 16 GiB unallocated. LV and ext4 are 8 GiB.
Simplified model: no real blocks, partition moves, encryption, snapshots or filesystem commands are executed. XFS grows differently from ext4; never shrink or format a live filesystem as an experiment.
lsblk -fMap block devices and partitions to detected filesystems, UUIDs and current mount points.
blkid /dev/vdb1Inspect identifiers for an existing filesystem; do not infer the device identity from a name alone.
findmnt /srv/northstar/dataConfirm what is mounted at a specific path, including the source and filesystem type.
findmnt --verifyValidate entries in the filesystem mount configuration; investigate errors before making persistent changes.
df -h /var/lib/northstarInspect available filesystem data blocks for the mounted path, not just raw disk size.
df -i /var/lib/northstarCheck available filesystem inodes separately from block capacity.
pvs; vgs; lvsInspect physical volumes, volume group unallocated space and logical volume sizes on an LVM system.
du -sh /var/lib/northstarEstimate disk usage beneath the named directory; permissions, sparse files and mount boundaries affect interpretation.
Plan rollback before touching management or data paths.
Confirm which service owns the interface, retain out-of-band access, review netplan try or other timed rollback features, and verify DNS and routes from both host and clients.
Back up the actual policy, preserve established management traffic, make the rule as narrow as possible, check evaluation order and persistence, and test from the approved client subnet.
Identify actual filesystem UUIDs, preserve fstab, check mountpoint contents, avoid formatting, and verify the expected source and critical files.
Verify extents and filesystem type; confirm backup readiness, growth support and workload impact. Measure the LV and filesystem separately afterward.
Every successful command should produce a verification claim you can defend. “The route lookup now selects the approved hop” is stronger than “Networking fixed.” “The expected ext4 volume is mounted” is stronger than “Storage restored.” Phase 05 will add monitoring, backups, rollback planning, and a complete multi-fault incident capstone.
Resolve the right layer—not the loudest symptom.
Work through a resolver misconfiguration, a stale specific route, a firewall rule blocking an approved subnet, an incorrect fstab UUID, and an LVM/ext4 capacity mismatch. Each scenario requires five read-only evidence inspections, a supported decision, approved simulated actions, and two distinct validation checks.
Network & Storage Investigation Workbench
Five original Linux host incidents. Gather five evidence sources before choosing a change. Apply the approved simulated steps in order and independently test the outcome.
IP connectivity works; intranet name does not
northstar-web responds by its known IP, but name lookups fail after a network profile edit. Do not change DNS records before checking which resolver the host uses.
These command responses are examples, not execution against a real host. Read all sources to establish the failing layer.
IP path succeeds; resolver misconfigured
What would you verify before making any change?Read all five simulated outputs to unlock the decision.
Choose the command that proves the condition.
Seven short decisions reinforce Linux-specific diagnostics: resolver state, route selection, socket binding, mounts, capacity layers, inode exhaustion, and firewall rule evaluation. Read the explanations and revise answers as needed.
Know the system state before declaring success.
Network and storage failures may be independent or coupled: a service can start but be blocked by the host firewall, or a storage path can exist while the intended filesystem is not mounted. The objective is to isolate the failing layer and verify the consequence of any permitted correction.
Check link, selected next hop and local versus remote reachability.
Distinguish name resolution, socket binding and ordered filtering decisions.
Verify device, UUID, source, filesystem and actual mounted path.
Compare PV/VG/LV allocation, filesystem blocks, inodes and application state.
Operations, Maintenance & Recovery
We'll bring the entire path together with monitoring and baselines, patching, capacity controls, backup validation, recovery planning and a complex Northstar application-server incident where multiple faults interact.
Continue to Phase 05 — Operations, Maintenance & Recovery →Read the host networking and storage sections before diagnosing the five Northstar incidents. The visualizer and workbench stay local to your browser.
