3 comments

  • toyg13 minutes ago
    Is zfs really worth the hassle, for someone who does not have time to play &quot;home sysadmin&quot; more than once or twice a year?<p>I&#x27;ve just rebuilt my little home server (mostly for samba, plus a little bit of docker for kids to play with). It has a hardware raid1 enclosure, with 2TB formatted as ext4, and the really important stuff is sent to the cloud every night. Should I honestly bother learning zfs...? I see it popping up more and more but I just can&#x27;t see the benefits for occasional use.
    • olavgg0 minutes ago
      The biggest advantage of ZFS from a operational experience, is that when you have problems, ZFS tells you why. Checksum errors? Something wrong with the hard drive or SATA&#x2F;SAS cables. Is the disk slow, zfs events will tell you that it spent more than 5 seconds to read sector x from disk &#x2F;dev&#x2F;sdf. The zfs cli commands are super-intuitive, and makes fully sense. Compared to ie. virsh, which is just weird to manage vm&#x27;s.<p>It definitely worth the hassle. But if everything works fine for you now, don&#x27;t bother. ZFS is not going away and you can learn it later.
  • throw0101a3 hours ago
    When setting up root-on-ZFS on FreeBSD, it&#x27;s worth knowing about boot environments (a concept originally from Solaris):<p>* <a href="https:&#x2F;&#x2F;klarasystems.com&#x2F;articles&#x2F;managing-boot-environments&#x2F;" rel="nofollow">https:&#x2F;&#x2F;klarasystems.com&#x2F;articles&#x2F;managing-boot-environments...</a><p>* <a href="https:&#x2F;&#x2F;wiki.freebsd.org&#x2F;BootEnvironments" rel="nofollow">https:&#x2F;&#x2F;wiki.freebsd.org&#x2F;BootEnvironments</a><p>* <a href="https:&#x2F;&#x2F;man.freebsd.org&#x2F;cgi&#x2F;man.cgi?query=bectl" rel="nofollow">https:&#x2F;&#x2F;man.freebsd.org&#x2F;cgi&#x2F;man.cgi?query=bectl</a><p>* <a href="https:&#x2F;&#x2F;dan.langille.org&#x2F;category&#x2F;open-source&#x2F;freebsd&#x2F;bectl&#x2F;" rel="nofollow">https:&#x2F;&#x2F;dan.langille.org&#x2F;category&#x2F;open-source&#x2F;freebsd&#x2F;bectl&#x2F;</a><p>* <a href="https:&#x2F;&#x2F;vermaden.wordpress.com&#x2F;2022&#x2F;03&#x2F;14&#x2F;zfs-boot-environments-revolutions&#x2F;" rel="nofollow">https:&#x2F;&#x2F;vermaden.wordpress.com&#x2F;2022&#x2F;03&#x2F;14&#x2F;zfs-boot-environme...</a><p>It lets you patch&#x2F;upgrade an isolated environment without touching the running bits, reboot into that environment, and if things aren&#x27;t working well boot back into the last known-good one.
    • goku1235 minutes ago
      Sounds a lot like the A&#x2F;B update method used widely in Android and to a lesser extend for embedded GNU&#x2F;Linux OTA updates. But it uses two distinct boot partitions. Since ZFS is involved here, I assume that boot environments take advantage of its copy-on-write mechanism to avoid duplicating the entire boot dataset.<p>NixOS and Guix use a concept called &#x27;system generations&#x27; to do the same without the support of the filesystem. LibOSTree can do the same and is called &#x27;atomic rollback&#x27;.<p>Talking about NixOS, does anybody know of a similar concept in the BSD world (preferably FreeBSD)?
    • fsmv25 minutes ago
      Best feature of freebsd. I have really messed up the system and successfully restored a boot environment snapshot and everything is fine after.<p>It happens by default with freebsd-update (I hope the new pkg replacement still does it too)
    • polyduekes3 hours ago
      oh, i didnt knew the concept is taken from Solaris, which version of Solaris? and is there any official source that indicates it is from Solaris?
      • throw0101a2 hours ago
        &gt; <i>bectl and this manual page were derived from beadm(8).</i><p>* <a href="https:&#x2F;&#x2F;man.freebsd.org&#x2F;cgi&#x2F;man.cgi?query=bectl#end" rel="nofollow">https:&#x2F;&#x2F;man.freebsd.org&#x2F;cgi&#x2F;man.cgi?query=bectl#end</a><p>&gt; <i>beadm(1M) originally appeared in Solaris.</i><p>* <a href="https:&#x2F;&#x2F;man.freebsd.org&#x2F;cgi&#x2F;man.cgi?query=beadm#end" rel="nofollow">https:&#x2F;&#x2F;man.freebsd.org&#x2F;cgi&#x2F;man.cgi?query=beadm#end</a><p>Solaris Live Upgrade BEs worked with (mirrored) UFS root:<p>* <a href="https:&#x2F;&#x2F;docs.oracle.com&#x2F;cd&#x2F;E18752_01&#x2F;html&#x2F;821-1910&#x2F;chapter-5.html" rel="nofollow">https:&#x2F;&#x2F;docs.oracle.com&#x2F;cd&#x2F;E18752_01&#x2F;html&#x2F;821-1910&#x2F;chapter-5...</a><p>* <a href="https:&#x2F;&#x2F;www.filibeto.org&#x2F;sun&#x2F;lib&#x2F;solaris8-docs&#x2F;_solaris8_2_02_update_collection&#x2F;806-7933.pdf" rel="nofollow">https:&#x2F;&#x2F;www.filibeto.org&#x2F;sun&#x2F;lib&#x2F;solaris8-docs&#x2F;_solaris8_2_0...</a><p>It allowed&#x2F;s for migration from UFS to ZFS root:<p>* <a href="https:&#x2F;&#x2F;docs.oracle.com&#x2F;cd&#x2F;E23823_01&#x2F;html&#x2F;E23801&#x2F;ggavn.html" rel="nofollow">https:&#x2F;&#x2F;docs.oracle.com&#x2F;cd&#x2F;E23823_01&#x2F;html&#x2F;E23801&#x2F;ggavn.html</a>
  • TacticalCoder4 hours ago
    This is getting lots of upvotes and rightfully so. I think people would love more posts about FreeBSD: especially about ZFS and <i>bhyve</i> (the FreeBSD hypervisor).<p>It&#x27;s a bit sad that this Lenovo ThinkCentre ain&#x27;t using ECC. I use and know ZFS is good but I&#x27;d prefer to run it on a machine supporting ECC.<p>I never tried FreeBSD but I&#x27;m reading more and more about it and it looks like although FreeBSD has always had its regular users, there are now quite some people curious about trying it out. For a variety of reasons. The possibility of having ZFS by default <i>and</i> an hypervisor <i>without</i> systemd is a big one for me (I run Proxmox so I&#x27;m halfway there but <i>bhyve</i> looks like it&#x27;d allow me to be completely systemd free).<p>I&#x27;m running systemd-free VMs and systemd-free containers (long live non-systemd PID ones) so <i>bhyve</i> looks like it could the final piece of the puzzle to be free of Microsoft&#x2F;Poettering&#x27;s systemd.
    • feisty06301 hour ago
      You express a desire for more FreeBSD posts and then immediately wade into all the typical flame-warring that surrounds most BSD&#x2F;ZFS posts (systemd, ECC RAM), and it&#x27;s been that way for over a decade at this point.
    • jccx702 hours ago
      &quot;I think people would love more posts about FreeBSD&quot; Translate to: &quot;I would love more post...&quot;
    • grayxu3 hours ago
      other filesystems are just as susceptible to data corruption from memory errors. this is not a weakness unique to ZFS.