There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Best BTRFS setup for Debian 12 server

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 ,

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.

PriorProject ,

Why would you use LVM to configure the RAID-1 devices? Btrfs supports raid1 natively.

pdscomp ,

Because familiarity and stability? Sounds like the butter RAID1 wouldn’t be a bad option either though:

unix.stackexchange.com/…/btrfs-raid-1-vs-mdadm-ra….

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines