• 0 Posts
  • 11 Comments
Joined 15 days ago
cake
Cake day: November 8th, 2024

help-circle






  • It’s extremely simple. Although I prefer ZFS I will give you an example with BTRFS since it’s easier to get going. RAID1 in BTRFS is considered stable (RAID5/6 is not).

    sudo mkfs.btrfs -m raid1 -d raid1 /dev/sdx /dev/sdy # Create raid array with BTRFS
    sudo mkdir /mnt/storage # Create your mount directory
    echo "/dev/sdx /mnt/storage btrfs noatime,compress=zstd 0 0" | sudo tee -a /etc/fstab # Set raid array to mount at boot
    sudo mount -t btrfs -o noatime,compress=zstd /dev/sdx /mnt/storage # Manually mount the first time
    

    You would also probably wanna set up a btrfs scrub once per month, either with systemd-timers or cron, whatever you prefer.