Linux+ 5.2.2: Storage problems
An fstab entry that mounts nothing, a filesystem that's out of inodes, and a deleted file that still takes up space.
Before you start
The lab adds three spare disks, image files under
/var/lib/le-lab/disks/ that are attached again at every boot, each with
an ext4 filesystem and a line in /etc/fstab:
/dev/loop40, meant to be mounted on/mnt/lab;/dev/loop41, mounted on/mnt/inodes, where an application keeps a cache (/mnt/inodes/cache/, safe to delete) and its data (/mnt/inodes/data/, keep it);/dev/loop42, mounted on/mnt/scratch, used by the servicereport-cache.
Write answers to the files in /root/lab-answers/.
Tasks
/mnt/labisn't mounted, though/etc/fstabhas a line for it. Find the error, and fix the line so thatmount -amounts/dev/loop40there, now and at boot.- The application can't create files in
/mnt/inodes/data, yetdf -hshows free space. Find out why, write the resource that ran out to/root/lab-answers/2, and make room without touchingdata/. /mnt/scratchis nearly full, butdufinds almost nothing there. Find the process that holds the space, write its name to/root/lab-answers/3, and free the space.
Hints
findmnt --verify,blkid,lsblk -f;systemctl daemon-reloadafter editing fstab.df -hversusdf -i.lsof +L1(installlsofif it's missing), orls -l /proc/*/fdlooking for(deleted);ps,systemctl status.