Need to expand local storage for local media streaming. Running a regular desktop on linux.

I am willing to spend money on “the best” for streaming purpose while and hopefully something I can keep reusing down the road if it lasts.

  • alwayssitting@infosec.pub
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    9 days ago

    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.