this post was submitted on 30 Jan 2024
27 points (93.5% liked)

Linux

8118 readers
68 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 1 year ago
MODERATORS
27
submitted 9 months ago* (last edited 9 months ago) by [email protected] to c/linux
 

Hey,

I am planning to implement authenticated boot inspired from Pid Eins' blog. I'll be using pam mount for /home/user. I need to check integrity of all partitions.

I have been using luks+ext4 till now. I am ~~hesistant~~ hesitant to switch to zfs/btrfs, afraid I might fuck up. A while back I accidently purged '/' trying out timeshift which was my fault.

Should I use zfs/btrfs for /home/user? As for root, I'm considering luks+(zfs/btrfs) to be restorable to blank state.

all 12 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 9 months ago

hesitant to switch to zfs/btrfs, afraid I might fuck up.

is your backup strategy not good for you or is it so much work to repeat the setup?

[–] gmhh 5 points 9 months ago (2 children)

I've been using luks on btrfs for a couple years now with little issue. I'm not using the RAID features of BTRFS though. I'm using it for subvolumes and snapshots.

I personally like Timeshift as my snapshot utility simply because I kinda grok both its GUI and CLI interfaces. It's saved my bacon a few times over. I like rolling release-type distros, so it handles the occasional bad update gracefully. I've heard folks say good things about Snapper, though.

[–] [email protected] 1 points 9 months ago (1 children)

I won't be using RAID features as of now, and timeshift isn't an issue for me. just an example of my fuckup 😅

I’ve been using luks on btrfs for a couple years now with little issue

What was the issue?

[–] gmhh 2 points 9 months ago

The only issues I've had are a) learning curve using BTRFS and its associated utilities and b) difficulty differentiating snapshots. I learned REAL DAMN QUICK to give those guys descriptive comments like 'snapshot before 2023-12-16 update'.

[–] [email protected] 1 points 9 months ago (1 children)

Do you use timeshift to back up data, or only system configuration?

[–] gmhh 2 points 9 months ago

system config and system data are in my root subvolume, home directory, dotfiles, and some data that I want to be accessed at SSD speed are in my home subvolume. This all gets timeshift backup/snapshots. The rest of my data is located on spinning platter sata drives, which is backed up regularly using a different method (weekly rsync job that copies to a cold backup drive.)

[–] [email protected] 4 points 9 months ago

I have been using btrfs for years, and love it. I chose it over zfs mainly because I found the tooling easier and more straightforward, and concepts less complex. It's been a long time, but I also believe btrfs was in mainline and zfs wasn't, and having reliable access to rescue tools was important - any complexity like having to build my own rescue disks was highly undesireable. I also vaguely remember zfs needing regular maintenance back in the day, which would have influenced my decision. I've also liked that btrfs tools have smart defaults, such as detecting SSDs and auto-setting healthy defaults. I'm not a sysadmin, and have no interest in being one, so I value features like these.

Anyway, I've had ext3 and ext4 corruption issues several times over the years, but have had no issues with any btrfs filesystems. I've used it on platters, SSDs, SD cards, USB sticks -- except for vfat and iso9660 for specialty devices, I can't say I've chosen anything other than btrfs for over a decade, and I've a few ext4 partitions to btrfs in fury after corruptions, repairs, and restores.

I'm sorry I can't compare btrfs to zfs; zfs has probably fixed the tooling warts and licensing issues that I remember from years ago, by now. Lots of people like it, so both are good choices.

[–] [email protected] 1 points 9 months ago

I have had no hiccups at all with an OpenSuse MicroOS server where I host game servers and a couple other self hosted applications. Btrfs is nice for snapshots and is the default for that distribution. I get daily updates and have not even once had to think about my server. I use it for sharing some of my files, reverse proxy for some web hosting, run everything on container, and use watchtower to update each container. It's been working like a treat for years.

[–] [email protected] 1 points 9 months ago

Not quite what you're asking for, but I've been using Bcachefs in production for nearly 18 months now on a ~120 tb pool. The tooling is great and incredibly simple to use.