Just received 2 SSD for OS+Apps and 2 HDD (2x the size of the SSDs) for backups.

I will use Debian 12 to serve a few VMs and i’m thinking on using btrfs with RAID1 and encryption for the set of SSDs and for the set of HDDs.

I’m thinking on using a non-encrypted boot partition and md for swap and the rest of the drives for encrypted raid1 with btrfs.

Any hints or suggestion for the storage layout ?

  • pdscomp@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    11 months ago

    If it was me I would do:

    • /dev/md0 (/boot on SSD RAID1) mounted to /boot

    • /dev/md1 (LVM PV on SSD RAID1)

    • /dev/md2 (LVM PV on HDD RAID1)

    • vgssd mapped to md1

    • swap lv on vgssd mapped as swap

    • root lv on vgssd mounted to / *var lv on vgssd

    • varaudit lv on vgssd mounted to /var/audit

    • home lv on vgssd mounted to /home

    For these you can make the volumes smaller than the SSD and grow them on the fly pretty easily later on as you need more space in home root or var.

    • vghdd mapped to md2
    • storage lv on vghdd mounted to /storage

    You could format all the data logical volumes btrfs2 if you’d like and encrypt with LUKS! That’s the Synology recommended config, I’ve also used xfs with my important volumes with no issues.