3 ms·
About four years ago I moved all of my personal computers away from proprietary operating systems, with most of my laptops running Linux, and one running PC-BSD
by tombert 10y ago
About four years ago I moved all of my personal computers away from proprietary operating systems, with most of my laptops running Linux, and one running PC-BSD.
PC-BSD is very good, but there are some weird quirks compared to Linux. For example, I have still never really figured out how to get my screen-brightness to adjust properly, and none of my laptops' integrated WiFi seem to work out of the box with any BSD. The latter problem I have been able to solve by cheap USB wifi dongle, and the the former I just haven't solved since this laptop doesn't need a particularly good battery anyway.
However, there are some nice perks to having a system that runs on ZFS. Due to its frequently-snapshotting nature, it's much easier to do risky stuff without having to worry about nuking the whole system, since you can always revert to the previous snapshot (kind of like Git).
I also have come to really appreciate the ports system, especially after I started doing a lot of stuff with video processing (specifically FFMpeg). Being able to have freshly compiled packages, whilst still having them managed by a package manage (which happily resolves compile-time dependencies), is incredibly useful, and makes it kind of hard to go back to Linux (though I hear Gentoo might be up my alley).
Overall, the transition isn't terribly hard, but I wouldn't recommend it if you don't want to get down in the weeds of the system. I enjoy that stuff, and I suspect most of the HN audience does too, so I recommend trying it out.
- gh02t 10y ago> However, there are some nice perks to having a system that runs on ZFS. Due to its frequently-snapshotting nature, it's much easier to do risky stuff without having to worry about nuking the whole system, since you can always revert to the previous snapshot (kind of like Git). Agreed, this is an amazing feature, as are jails to keep things compartmentalized. I hate having to clutter my FreeBSD home server root install with a billion dependencies for the various services it hosts, so I use jails as lightweight VMs to partition it into different service groups. It also makes it easy to back up and move jails whenever I upgrade because things are contained on ZFS subvols. For people who don't know, snapshots are also well supported on Linux, and not just in ZFS. I use it with BTRFS on my main workstation and it's saved me a few times. There is a great tool called Snapper (by the SUSE people, but it works on other distros - I use it on Arch) that automates managing snapshots and can even e.g. hook into your package manager to automatically snapshot before an upgrade. It's like Windows System Restore Points done right. https://wiki.archlinux.org/index.php/Snapper https://wiki.archlinux.org/index.php/Snapper
- tombert 10y agoWhile I do love Btrfs and use it on my Linux laptops, there's more to ZFS than just snapshotting. Raid-Z is a great soft-raid that allows you to lose up to 3 disks (depending on your configuration level), and `zfs send` is really useful for keeping disks synchronized on different machines.
- gh02t 10y agoYep, I use both on my FreeBSD server. RAIDZ is great, though like most non-enterprise users I wish ZFS was a bit more flexible when it came to growing volumes. I also use `zfs send`, that's what I was referring to with moving jails around and it's very handy. Btrfs has similar features with `btrfs send` and RAID, though the parity RAID modes most similar to RAIDZ have kind of a troubled history (https://btrfs.wiki.kernel.org/index.php/RAID56 https://btrfs.wiki.kernel.org/index.php/RAID56) and I wouldn't recommend using Btrfs RAID5/6 for valuable data. ZFS RAIDZ is also superior in terms of reliability because it does a full-stripe write and ZFS has some other features for server use (e.g. zvols). Btrfs is more flexible with regards to growing or shrinking a RAID volume, but again the code is not considered production ready and has some pretty severe drawbacks. That said, I used Btrfs RAID5 on a small compute cluster and it's never had any issues, but if I was going to do it again I'd use ZFS there.
- tombert 10y agoYeah, wasn't trying to question your setup, I was just doing the HN thing where I have to reply and go into greater detail for ego-related reasons. I actually did not know that Btrfs had a send function, I'll have to play with that on one of my laptops.
- tracker1 10y agoJust want to point out two caveats wrt Raid-Z2/3, and that is have a LOT of ECC Ram (wouldn't suggest less than 16GB, and more than 32 is better). Second is if you have a hot spare, test your configuration to make sure it loads the hot spare. Aside: I ran a homebrew FreeNAS (forget the version, was several years ago now) with 12x3TB drives, without ECC, and the version of freenas had a bug that didn't pickup the drive designated as a hot spare when the first drive died... They were horrible Seagate 3tb 7200.xx drives, and they all died way too close together... in the end, lost most of the system... when I finally got around to testing the drives (didn't have the heart/energy after for a while) all but 2 had significant errors. That's more a knock against Seagate (will NEVER buy from them again) than ZFS though. Will also not likely do a homebrew nas server ever again, didn't save enough over Synololgy that made the cost savings vs. time worthwhile, but ymmv.
- thomastjeffery 10y agoIf you like snapshots and source-based packages, you might be interested in nixos.org