Check How Much Disk Space Is Left on a Linux Server
Before you copy a large file or start a backup, you need to know whether the disk has room for it. Practice reading the size and the available space of a filesystem with the df command.
Focused, hands-on DevOps and server-side problems with hints, feedback, and automated solution checks.
Before you copy a large file or start a backup, you need to know whether the disk has room for it. Practice reading the size and the available space of a filesystem with the df command.
When a data volume fails to mount at boot, the service that keeps its data there may start anyway and write to the root filesystem. Practice making a systemd service depend on its data disk, so a failed mount won't bring down the whole server.
Practice tracking down a tricky storage issue that broke a service after a VM upgrade.
Turn the manual storage provisioning workflow into an automation script: partition, format, mount, and persist a blank drive with a single non-interactive script.
A MariaDB deployment and its PVC were accidentally deleted. The PersistentVolume survived due to its Retain policy. Restore the database by rebinding the existing PV without losing any data.
Observe the Delete and Retain reclaim policies in action, recover a Released PV by patching claimRef, and recover data by creating a new PV pointing to the same storage directory.
Explore how the DefaultStorageClass admission controller injects storage classes, explicitly name a StorageClass, switch the cluster default, and inspect where local-path stores volumes on the node.
Learn the three static PV binding patterns - generic match, label selector, and bidirectional claimRef - then use a no-provisioner StorageClass with WaitForFirstConsumer to pin storage to a specific node.
Use emptyDir volumes to share data between containers, understand the volume lifecycle across container restarts and pod deletion, and explore memory-backed ephemeral storage.
Use Kubernetes image volumes to mount a static HTML artifact into an nginx Pod without an init container or a custom nginx image.