I never figured it out, but it went away after reinstalling and being picky about what I installed from gnome and gnome-extra, instead of just installing everything. From my logs, it seemed like it kept looking for sqlite db files that weren't there, gnome-games among others. Sorry man, that's all I got.
Also consider segmenting off directories you don’t want in your root snapshots on their own subvolumes. Stuff like /var/cache, that will just clog up your snapshots.
Also, maybe /var/log so you don’t roll back your logs. That can make it a lot easier to figure out what went wrong in the first place.
I ended up doing a complete wipe and reinstall. On reinstall I was very conservative with installing gnome packages, only what I really needed, and the problem seems to have gone away.
It looked like the gnome indexer kept looking for SQLite db files that weren’t there and then choking when it couldn’t find them. It was often gnome-games that seemed to start the cascade. I don’t need solitaire or anything, I was just lazy and installed everything from gnome and gnome-tweaks on the first install.
Ok, I think you've given me the push I need to learn ZFS. I have a 500GB SATA SSD and a 1TB spinning rust drive just laying around, so I think I'll try it out on bare metal.
Sweet. Maybe I'll give it a try in a VM or on an older SSD. Everything I've heard about ZFS makes it sound like an amazing filesystem. Allan Jude and Jim Salter, from the 2.5 Admins podcast, are ZFS evangelists, and I definitely respect their opinions on just about anything tech related.
Native on-the-fly compression is pretty damn neat. Phoronix benchmarks show better performance with the lighter compression algorithms, than with no compression at all, just because modern CPUs can decompress more quickly than nvme drives can read/write. I use zstd:1 on btrfs. Saves a bit of space with no performance penalties whatsoever.
Gotcha. So, /boot holds your kernel/initramfs images, EFI entries and Grub, on it's own vfat partition.
Was there any need to add Modules or Binaries to mkinitcpio.conf? I'm guessing there needs to be some sort of early loading of drivers?
I reinstalled Arch a couple days ago, due to issues with Gnome, and I thought about trying ZFS on root. It was all a bit confusing though, so I just went with btrfs, since it's on a single drive.
Thanks for the info! I'm glad you're enjoying Arch. For me, it's the right mix of DIY and not being too obtuse and convoluted. And the wiki is amazing.
Make sure you read the install wiki page thoroughly. Follow the links to other pages that go into more detail about individual topics. Take your time. Have a second device on hand so you read the wiki easily and google any questions you might have. A tablet works well for this.
If you are dual-booting with Windows, you will need to set Windows to use UTC time, versus local time. You can also set Linux to use local time, but sticking to UTC is preferred. I would do this before you install Arch, that way you aren't confused when your clocks are 5 hours off.
You might want to save your shell history, in case you need to reinstall at some point. That way you know exactly what you did on the first install. You'll need to do this twice, once in the install environment, and once in the arch-chroot environment. This isn't necessary, but I like to keep copies of all of my past shell histories.
There’s always Gnome with the Forge Tiling Extension. It’s a pretty full-featured tiling manager, so it should give you a good idea of what the experience is like. And you can toggle it on and off with a quick key press, so if it starts annoying you, you can just use regular Gnome for a while.
Yeah, the installation wiki's default example is to make /boot it's own fat32 partition and throw all the efi stuff on there as well as the kernel and init images. This is convenient for bootloader compatibility, but is definitely problematic for snapshotting.
Do you just remove the subvolid=256 part and keep the subvol=/@rootsubvol part? Do you use UUID to point to the partition in fstab or some other pointer?
I just made the same switch from NixOS to Arch. The lack of documentation and searchable forum posts was pretty frustrating. I don't want to have to go and bug the developers and maintainers on their Matrix channel every time I run into some small hiccup.
I went with btrfs to make use of snapshots for easy recovery in case something breaks. I haven't actually tested this out yet, though.
And I went with Grub, just because I'm more familiar with it, and it's a bit more flexible than systemd-boot. I've only heard good things about systemd-boot, though.
This sub is so helpful as a reference. I always follow the wiki entries on whatever I’m trying to do, but I also pull up a bunch of r/archlinux posts to preemptively see where things went wrong for others. Seems we stumbled upon this old post within a day of each other.
I think it's more likely we're seeing a correction, rather than a crash. Time will tell.
I never figured it out, but it went away after reinstalling and being picky about what I installed from gnome and gnome-extra, instead of just installing everything. From my logs, it seemed like it kept looking for sqlite db files that weren't there, gnome-games among others. Sorry man, that's all I got.
https://btrfs.readthedocs.io/en/latest/Deduplication.html
It has the underlying mechanics that can be leveraged by some well-supported and lightweight utilities.
This question isn’t worth my time to answer. RTFM
😉
Also consider segmenting off directories you don’t want in your root snapshots on their own subvolumes. Stuff like /var/cache, that will just clog up your snapshots.
Also, maybe /var/log so you don’t roll back your logs. That can make it a lot easier to figure out what went wrong in the first place.
I ended up doing a complete wipe and reinstall. On reinstall I was very conservative with installing gnome packages, only what I really needed, and the problem seems to have gone away.
It looked like the gnome indexer kept looking for SQLite db files that weren’t there and then choking when it couldn’t find them. It was often gnome-games that seemed to start the cascade. I don’t need solitaire or anything, I was just lazy and installed everything from gnome and gnome-tweaks on the first install.
Gotcha. I would rather prioritize performance over storage, so lz4 sounds like a good fit.
Ah, good to know.
Ok, I think you've given me the push I need to learn ZFS. I have a 500GB SATA SSD and a 1TB spinning rust drive just laying around, so I think I'll try it out on bare metal.
Sweet. Maybe I'll give it a try in a VM or on an older SSD. Everything I've heard about ZFS makes it sound like an amazing filesystem. Allan Jude and Jim Salter, from the 2.5 Admins podcast, are ZFS evangelists, and I definitely respect their opinions on just about anything tech related.
Native on-the-fly compression is pretty damn neat. Phoronix benchmarks show better performance with the lighter compression algorithms, than with no compression at all, just because modern CPUs can decompress more quickly than nvme drives can read/write. I use
zstd:1on btrfs. Saves a bit of space with no performance penalties whatsoever.Thanks for sharing what you've learned!
Gotcha. So,
/bootholds your kernel/initramfs images, EFI entries and Grub, on it's own vfat partition.Was there any need to add Modules or Binaries to
mkinitcpio.conf? I'm guessing there needs to be some sort of early loading of drivers?I reinstalled Arch a couple days ago, due to issues with Gnome, and I thought about trying ZFS on root. It was all a bit confusing though, so I just went with btrfs, since it's on a single drive.
Thanks for the info! I'm glad you're enjoying Arch. For me, it's the right mix of DIY and not being too obtuse and convoluted. And the wiki is amazing.
Nice!
How are you doing ZFS on root? Are you using ZFS Boot Menu?
This sounds like a great idea. Once you’re in the Ubuntu live environment, do you open a terminal, mount the Arch iso, and then
chrootinto it?Which bootloader did you go with? Did you try one of the other options?
Grub has always worked for me with the
--removableflag. Without that flag, my UEFI doesn't recognize the loader./efion a fat32 ESP partition, and/booton the main root partition.Make sure you read the install wiki page thoroughly. Follow the links to other pages that go into more detail about individual topics. Take your time. Have a second device on hand so you read the wiki easily and google any questions you might have. A tablet works well for this.
If you are dual-booting with Windows, you will need to set Windows to use UTC time, versus local time. You can also set Linux to use local time, but sticking to UTC is preferred. I would do this before you install Arch, that way you aren't confused when your clocks are 5 hours off.
You might want to save your shell history, in case you need to reinstall at some point. That way you know exactly what you did on the first install. You'll need to do this twice, once in the install environment, and once in the
arch-chrootenvironment. This isn't necessary, but I like to keep copies of all of my past shell histories.There’s always Gnome with the Forge Tiling Extension. It’s a pretty full-featured tiling manager, so it should give you a good idea of what the experience is like. And you can toggle it on and off with a quick key press, so if it starts annoying you, you can just use regular Gnome for a while.
The documentation is a big one for me. I ran NixOS for a month and got really frustrated with the lack of available info.
Fortunately, the Arch Wiki is generally applicable to other distros as well. Just less so with Nix.
^ Username checks out.
Cool beans. I just set up snapper and was thinking about using
grub-btrfs,snap-pacandsnap-pac-grub.Does
grub-btrfswork seamlessly? Aren't fresh snapshots read-only by default?Yeah, the installation wiki's default example is to make
/bootit's own fat32 partition and throw all the efi stuff on there as well as the kernel and init images. This is convenient for bootloader compatibility, but is definitely problematic for snapshotting.Do you just remove the
subvolid=256part and keep thesubvol=/@rootsubvolpart? Do you use UUID to point to the partition infstabor some other pointer?I just keep
/booton my root subvolume. That way the kernel is included in the snapshots.How are you populating GRUB with snapshot entries? Are you using
grub-btrfs?I just made the same switch from NixOS to Arch. The lack of documentation and searchable forum posts was pretty frustrating. I don't want to have to go and bug the developers and maintainers on their Matrix channel every time I run into some small hiccup.
I went with btrfs to make use of snapshots for easy recovery in case something breaks. I haven't actually tested this out yet, though.
And I went with Grub, just because I'm more familiar with it, and it's a bit more flexible than systemd-boot. I've only heard good things about systemd-boot, though.
It's a laptop, Michael, how much could it be? $100?
This sub is so helpful as a reference. I always follow the wiki entries on whatever I’m trying to do, but I also pull up a bunch of r/archlinux posts to preemptively see where things went wrong for others. Seems we stumbled upon this old post within a day of each other.
Ridicule! Scorn! Derision!
Kidding of course. I found this useful. Thanks.