1. Prepare the RAID Mount
mkdir -p /mnt/raid1/home
2. Copy Existing Data
rsync -aAXv /home/ /mnt/raid1/home/
3. Backup and Replace /home
mv /home /home.bak
mkdir /home
4. Edit /etc/fstab
Add:
UUID=<your-raid-uuid> /mnt/raid1 btrfs defaults,compress=zstd,subvol=@ 0 0
/mnt/raid1/home /home none bind 0 0
5. Remount Root if Read-Only
If /etc/fstab
can’t be edited:
mount -o remount,rw /
6. Apply Changes
systemctl daemon-reload
mount -a
7. Verify
findmnt /home
ls -lha /home
Expected:
/home
comes from/mnt/raid1/home
.- User directories (e.g.
oib
,ollama
) are visible. - Inode check shows
/home
==/mnt/raid1/home
.
8. Cleanup
If everything works:
rm -rf /home.bak