Interview Prep/Linux/Storage, disks and filesystems

A server needs a large shared scratch space across two disks for speed, and data loss is acceptable. What do you build?

AdvancedScenarioStorage, disks and filesystems
Answer

Situation read → Striping for throughput, no redundancy.

What I'd do →

sudo pvcreate /dev/sdb /dev/sdc
sudo vgcreate scratch /dev/sdb /dev/sdc
sudo lvcreate -i 2 -I 256k -l 100%FREE -n fast scratch
sudo mkfs.xfs /dev/scratch/fast

Mount with noatime and label it clearly as non-persistent.

Why → A striped LV (-i 2) spreads I/O over both disks; losing either disk loses everything, which is acceptable for scratch.

Interview tip → Compare with mdadm --level=0; both work, LVM is easier to resize.

All Linux questions Roadmap: Linux

More on Storage, disks and filesystems