this post was submitted on 14 Aug 2023
21 points (100.0% liked)

Linux

48039 readers
779 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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 ?

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 1 year ago* (last edited 1 year ago) (1 children)

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.

[–] [email protected] 4 points 1 year ago (1 children)

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