Storage & Filesystems

0%
Storagelvmraidext4xfsmountfstabdfdulsblk

Storage & Filesystems

6 interactive questions

StorageQuestion
lvmraidext4xfsmountfstabdfdulsblk

What is LVM? Why use it?

Click to reveal answer
StorageAnswer

Logical Volume Manager abstracts physical disks into PVs → VGs → LVs. Benefits: resize volumes online, snapshots, span multiple disks, move data between disks. pvcreate → vgcreate → lvcreate.

StorageQuestion
lvmraidext4xfsmountfstabdfdulsblk

How do you grow a filesystem?

Click to reveal answer
StorageAnswer
  1. Extend LV: lvextend -L +5G /dev/vg/lv. 2. Resize FS: resize2fs /dev/vg/lv (ext4) or xfs_growfs /mountpoint (XFS). ⚠️ XFS can only grow, not shrink.
StorageQuestion
lvmraidext4xfsmountfstabdfdulsblk

What are the common filesystem types and when to use each?

Click to reveal answer
StorageAnswer

ext4 — default, stable, good all-rounder. XFS — high performance, large files/parallel I/O, default on RHEL. btrfs — snapshots, compression, RAID built-in. tmpfs — RAM-backed, fast, data lost on reboot.

StorageQuestion
lvmraidext4xfsmountfstabdfdulsblk

What is `/etc/fstab` and its fields?

Click to reveal answer
StorageAnswer

Static filesystem mount config. Fields: <device> <mountpoint> <fstype> <options> <dump> <pass>. Use UUID/LABEL for device. noatime reduces writes. nofail allows boot to continue if missing.

StorageQuestion
lvmraidext4xfsmountfstabdfdulsblk

How do you check disk usage and find large files?

Click to reveal answer
StorageAnswer

df -h — filesystem usage. du -sh /path/* — directory sizes. find / -type f -size +100M — files >100MB. ncdu — interactive TUI.

StorageQuestion
lvmraidext4xfsmountfstabdfdulsblk

What is RAID? Common levels?

Click to reveal answer
StorageAnswer

RAID 0 — striping (speed, no redundancy). RAID 1 — mirroring (redundancy, 2 disks min). RAID 5 — striping + distributed parity (3+ disks, survives 1 failure). RAID 6 — dual parity (survives 2). RAID 10 — mirror + stripe (speed + redundancy).