Skip to content

15 comments

This. is. really. fantastic.

Seriously, bravo, wish I could buy you a beer or a few.

7 points

I wrote a short post on using LXC containers on Arch. I recommend giving them a try if you haven't.

6 points
unknown author

Deleted before we saved it.

7 points

I prefer nspawn

4 points

I like them both, but if it's just for personal use and you're doing something simple, I agree, nspawn if the way to go. Check out my article on using nspawn with graphical applications I posted last month if you're interested, I have a follow up to it on the way as well.

The nice thing about LXC is It's extremely customizable, it also has better support for downloading premade containers, especially when you work with LXD. I especially like that it lets you use different backing stores such as ZFS or btrfs which is nice. Having used them both I'd say I probably prefer nspawn for personal use on the desktop, especially given that it integrates so nicely with systemd, but I enjoy using them both and they both have strong points.

13 points

Took the words out of my mouth. I was hoping my comment would spark a debate, but looks like there is no need.

2 points

Nice article. I'll check it out later.

Just wanted to stop by and say I'm a full arch user now thanks to your ZFS articles. They really helped me a lot!

I installed Antergos and it has a lovely problem of not properly baking the ZFS modules into the latest kernel for some reason I have not figured out. I Arch-chrooted into the install and added the arch-zfs repo and also disabled any future ZFS or kernel updates to avoid having my system become unbootable. Then I updated the initramfs and installed refind(Which is a way cool bootloader everyone should check out). Bootable Antergos!

I plan on doing a full arch install on another laptop as this is my gaming laptop and I was hoping it would be a simple installation experience I've had in the past. I ended up learning a lot in the process about hooks and such.

Question for you, how do you handle kernel updates OR ZFS module updates without ending up with an unbootable system with root on ZFS?

2 points

I'm stoked to hear that! It's always great to hear I've converted another to ZFS :)

What do you mean by not baking the modules into the kernel? I've actually seen others say that they have had trouble too on Antergos but I always use straight Arch so I'm not sure what exactly is causing the problems. I guess one of the benefits you get from setting it all up yourself from scratch as you know exactly where everything goes and exactly how everything set up which means it's easy (well not easy, but easier) to fix problems when they occur.

I've only had one occurrence of unbootable system due to ZFS and it was when they changed bunch of systemd modules causing my pool to no longer mount. One of the steps I've taken is using demizer's repo as it makes things simpler with binary updates and I know he's actually tested the packages. Unfortunately I think I might have to start compiling the packages myself as I want to use a custom kernel so that I can get access to user namespaces for containers, but it all depends how much free time I have and I have to think about whether or not that's a good idea... The other thing I do is I always keep a small secondary Arch install with ZFS on it around as a backup that I can boot into and fix any problems I might have in case my system doesn't boot, but an archiso and ssh would probably work fine as well.

2 points

Oh, believe me, I've been using ZFS for years. I just waited until Ubuntu 16.04 to come with it baked in to have some sort of LTS solution because I don't like updating all the time on my main machine. But if you count Freenas, a secondary SSD formated in my work laptop, Now my gaming ASUS ROG, Proxmox root on ZFS then I am full on ZFS on most everything now.

What do you mean by not baking the modules into the kernel? I've actually seen others say that they have had trouble too on Antergos but I always use straight Arch so I'm not sure what exactly is causing the problems. I guess one of the benefits you get from sending it all up yourself from scratch as you know exactly where everything goes and exactly how everything set up which means it's easy (well not easy, but easier) to fix problems when they occur.

You read my mind here and this is my plan going forward on that other laptop. I made a custom archiso with your instructions so I shall give that a go and see how it turns out. It's a great live iso I can use from now on too as I plan on using it at work for other ZFS cloning techniques :)

As a side note, I am using Sanoid with hourly snapshots for most of the basic root and home datasets. It makes for a great way to rollback from that Live ISO. :)

I do use that ZFS repo now, btw. Antergos has it's own zfs-linux and spl-linux but they seem to break too easily when kernels update. It was a headache trying to fix and so using your method with this repo made it so much simpler.

1 points

Great article. Looked through some of your other articles too and noticed your in depth guides to ZFS. I'm a ZFS user too and have been looking at trying to set up Boot Environments on Arch.

Have you looked into this at all?

1 points

Oh man I would love to have boot environments working on linux. I've tried using FreeBSD's beadm on Arch Linux and I got it working but it was buggy and ended up causing problems so I decided it wasn't worth it and it needed a rewrite for linux. I was hoping to eventually write one myself if I can find the time.

1 points

Yeah, it's pretty sweet.

OpenSUSE have btrfs boot environments - though the boot into the read-only snapshots and well... it's btrfs.

I was hoping to eventually write one myself if I can find the time.

I'm thinking of writing a very very very simple one (as in i only have a little programming experience and zero in shell).

Do you know how it actually works? In my head I have.

create $name:
1. snapshot root dataset
2. replicate snapshot into file system /ROOT/$name
3. Create grub entry

destroy $name:
1. zfs destroy tank/ROOT/$name

list:
1. zpool list -H -o bootfs  ---gets current root dataset
2. zfs list -r tank/ROOT    --- lists all boot environments.

activate $name
1. change GRUB boot priority to reflect correct dataset ----unsure if it needs to have it's mountpoint set manually beforehand.
1 points

This is super, many thanks.

I skimmed through a few of your other articles, very well laid out.

How is ZFS treating you on Arch? I have a FreeNAS Mini and have been thinking about moving my Arch rig to ZFS (from ext4), but I'm cautious to do so.

1 points

It's awesome! ZFS is completely worth it. As long as you realize that you might be faced with some extra troubleshooting since ZFS isn't really a first-class citizen on Linux yet.

Fortunately there are some really great people working on ZFS in the ZFS on Linux project, as well as people like demizer who hosts the archzfs repo and creates binary packages for the community.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.