Lesson 10 | Linux filesystem Configuration - Conclusion |
Objective | Summarize practical, modern steps to configure, monitor, secure, and troubleshoot local filesystems on RHEL. |
The "right" configuration depends on your priorities, performance, security, and operational simplicity. On modern Red Hat systems the default filesystem is typically XFS, with ext4 still common. Below is a concise wrap-up focused on tools and patterns you will actually use.
mkfs.xfs
, mkfs.ext4
(via mke2fs
backend).xfs_admin -L DATA /dev/<dev>
, e2label /dev/<dev> DATA
; prefer mounting by LABEL=
or UUID=
in /etc/fstab
.tune2fs
, inspect with dumpe2fs -h
, low-level tasks with debugfs
.xfs_info
, grow online with xfs_growfs
; repair with xfs_repair
(offline)./etc/fstab
; verify with findmnt
and mount -a
.systemd.automount
.UUID=... /data xfs defaults,noatime 0 0 server:/export/projects /mnt/projects nfs noauto,x-systemd.automount,x-systemd.idle-timeout=120 0 0
df -hT
, lsblk -f
, findmnt -t xfs,ext4
.du -sh /path
.usrquota,grpquota
for ext4; uquota,gquota
for XFS). Manage with xfs_quota
(XFS) or edquota
/repquota
(ext*).rsync -aHAX --info=progress2 /src/ host:/dst/
sha256sum
) when migrating critical data.nodev
, nosuid
, noexec
on untrusted paths (e.g., /tmp
, removable media, autofs keys).ls -Z
and restorecon -R
after moves.journalctl -xe
, journalctl -u autofs
.findmnt
, cat /proc/mounts
.fsck.ext4
/e2fsck
(unmounted), XFS with xfs_repair
(requires unmount).du -xhd1 /
), rotate/purge logs, and consider LVM + xfs_growfs
for online growth.tune2fs
, dumpe2fs
, debugfs
) and manage XFS (xfs_*
tools)./etc/fstab
) and on-demand mounts (autofs
/ systemd.automount
).rsync
.autofs
or systemd.automount
).autofs
, associates keys with mount targets (e.g., /etc/auto.master
→ /etc/auto.nfs
)./etc/fstab
to avoid device-name drift.