Skip to main content
LEARN / LINUX SYSTEMS ADMINISTRATION / PHASE 04

Trace the path.
Protect the data.

A service can run perfectly and still be unreachable. A storage device can exist while its filesystem is unavailable. Learn to prove what a Linux host can reach, what it can mount, and which layer needs a carefully scoped change.

Phase 04 / Networking & StorageApplied Linux administration5 original incidentsFree · No account
PHASE 04 / LINUX NETWORKING & STORAGE

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.

By the end, you should be able toInterpret ip and resolvectl output, follow route selection, inspect sockets and nftables, correlate device/UUID/mount state, distinguish VG/LV/filesystem capacity, and apply a safe evidence-based change with independent verification.
01 / DIAGNOSE A HOST, NOT AN ABSTRACT NETWORK

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.

01
LINK & ADDRESSip -br address

Is the interface up with the expected address and subnet?

02
ROUTINGip route get DEST

Which interface and next hop will the kernel actually select?

03
NAME RESOLUTIONresolvectl query NAME

Is the host using an appropriate resolver and returning the expected address?

04
SERVICE SOCKETss -ltnp

Is a process listening on the intended local address and port?

05
HOST POLICYnft list ruleset

Does the host firewall permit the approved source, destination and port in the evaluated rule order?

06
CLIENT VALIDATIONcurl --fail URL

Can an authorized client complete the intended request, not merely ping an intermediate device?

Preserve your access

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.

02 / INTERFACE & ADDRESS STATE

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 overview

Find the interface name, administrative state and configured addresses.

ip -s link show ens192Inspect counters

Look for packet errors, drops or unexpected traffic trends without guessing which network layer is failing.

ip -6 address showDon't ignore IPv6

A host may prefer or use IPv6, even if your initial tests considered only IPv4.

networkctl status ens192Check managed links

Useful 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.

03 / FOLLOW THE ACTUAL NEXT HOP

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.

APPROVED BACKUP ROUTE10.24.0.0/16 via 10.24.8.1Broader, correct path
STALE OVERRIDE10.24.40.0/24 via 10.24.8.254Longer prefix wins, but leads to the wrong hop
DESTINATION10.24.40.12Selected next hop: 10.24.8.254 until the stale route is removed

ip 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.

Routing change rule

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.

04 / NAME RESOLUTION IS ITS OWN HOST SUBSYSTEM

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.

NORTHSTAR / SIMULATED DNS EVIDENCE$ resolvectl status ens192
Current 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/health
HTTP/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.

resolvectl documentation ↗
05 / LISTENING AND ALLOWED ARE DIFFERENT FACTS

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 layer

Confirm the destination address/port and process identity before editing firewall rules.

nft -a list rulesetRule evaluation layer

Review chains, hooks, policy, counters and order; an accept rule placed after an earlier drop may not help.

ufw status verboseDistribution wrapper

On hosts managed with UFW, inspect its rules rather than bypassing the active firewall management layer.

curl --fail https://HOST:PORT/healthClient-level test

Test 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.

Never confuse a local health check with an external reachability test.

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.

06 / THE STORAGE LAYERS UNDER A PATH

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.

01 / DEVICE/dev/vdcUnderlying block capacity
02 / PARTITION/PV/dev/vdc1Allocated physical volume
03 / VG → LVvg_northstar/lv_dataLogical allocated capacity
04 / FILESYSTEMext4Usable files and blocks
05 / MOUNT/var/lib/northstarApplication-visible path

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.

Data protection boundary

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.

07 / A PRESENT DEVICE MAY STILL BE UNAVAILABLE

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.

NORTHSTAR / EXISTING DEVICE VS STALE FSTAB ENTRY$ blkid /dev/vdb1
UUID=87fa4f7a-8259-4f1b-8e8f-a0da5212c009 TYPE=ext4
$ grep /srv/northstar/data /etc/fstab
UUID=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 ↗
08 / CAPACITY MOVES THROUGH LAYERS

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.

INTERACTIVE STORAGE LAYERS / ILLUSTRATIVE MODEL

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.

8 GiBusable filesystem size
01 / Physical volume24 / 24 GiB

Existing PV space, after partitioning

02 / Volume group24 / 24 GiB

16 GiB free for allocation after the modeled LV resize

03 / Logical volume8 / 24 GiB

Capacity allocated to lv_data

04 / Mounted ext4 filesystem8 / 24 GiB

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 -f

Map block devices and partitions to detected filesystems, UUIDs and current mount points.

blkid /dev/vdb1

Inspect identifiers for an existing filesystem; do not infer the device identity from a name alone.

findmnt /srv/northstar/data

Confirm what is mounted at a specific path, including the source and filesystem type.

findmnt --verify

Validate entries in the filesystem mount configuration; investigate errors before making persistent changes.

df -h /var/lib/northstar

Inspect available filesystem data blocks for the mounted path, not just raw disk size.

df -i /var/lib/northstar

Check available filesystem inodes separately from block capacity.

pvs; vgs; lvs

Inspect physical volumes, volume group unallocated space and logical volume sizes on an LVM system.

du -sh /var/lib/northstar

Estimate disk usage beneath the named directory; permissions, sparse files and mount boundaries affect interpretation.

Red Hat LVM administration reference ↗
09 / KNOW YOUR FAILURE DOMAIN

Plan rollback before touching management or data paths.

Network configuration

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.

Firewall changes

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.

Mount changes

Identify actual filesystem UUIDs, preserve fstab, check mountpoint contents, avoid formatting, and verify the expected source and critical files.

LVM/filesystem changes

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.

10 / FIVE GUIDED HOST INVESTIGATIONS

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.

NORTHSTAR INFRASTRUCTURE / PHASE 04

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.

0/5REVIEWED
INCIDENT 01 / northstar-linux-01 · ens192

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.

INITIAL CONDITIONIP path succeeds; resolver misconfiguredScope: fictional Northstar Linux host
01 / Inspect the system0/5 sources reviewed

These command responses are examples, not execution against a real host. Read all sources to establish the failing layer.

First report

IP path succeeds; resolver misconfigured

What would you verify before making any change?
02 / Decide on the smallest safe changeInspect all sources
Which response best follows the evidence?

Read all five simulated outputs to unlock the decision.

Safe browser-only training. The workbench never changes a host, DNS, route, firewall, filesystem or LVM volume.

11 / CHECK YOUR UNDERSTANDING

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.

KNOWLEDGE CHECK / NETWORKING & STORAGE0/7 answered · 0 correct
01 An endpoint responds by IP but fails by DNS name. Which Linux-specific check should you prioritize?
02 Linux has routes 10.24.0.0/16 via A and 10.24.40.0/24 via B. Which route matches 10.24.40.12?
03 A service listens on 127.0.0.1:8443 only. What does that tell you about remote IPv4 clients?
04 lsblk shows an ext4 filesystem but findmnt shows no expected mount. What's the safest next step?
05 The VG gained capacity, but df -h is still unchanged. What must you examine?
06 Which command examines inode exhaustion independently of data-block capacity?
07 A firewall rule appears to allow the traffic but connectivity still fails. What should you verify?
12 / PREPARE FOR OPERATIONAL RECOVERY

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.

01 / PATHProve the host route

Check link, selected next hop and local versus remote reachability.

02 / POLICYInspect resolver and firewall

Distinguish name resolution, socket binding and ordered filtering decisions.

03 / MOUNTConfirm filesystem identity

Verify device, UUID, source, filesystem and actual mounted path.

04 / CAPACITYVerify every storage layer

Compare PV/VG/LV allocation, filesystem blocks, inodes and application state.

NEXT / PHASE 05 + CAPSTONE

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 →
PRACTICE & LAB / PHASE 04

Read the host networking and storage sections before diagnosing the five Northstar incidents. The visualizer and workbench stay local to your browser.

CONTINUE YOUR LEARNING PATH · LINUX SYSTEMS ADMINISTRATION

Begin the Capstone

You've reached the end of this written lesson. Your next step is capstone: Operations, Maintenance & Northstar Recovery Capstone. Complete that milestone before moving to the following lesson. You can revisit the explanation whenever you need it. Next: milestone 5 of 5.

Your completion marks are saved in this browser only.