rootonzfs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rootonzfs [2012/06/09 13:43] – add link for sysutils/beadm BryanDreweryrootonzfs [2021/11/12 20:40] (current) – Upgrade to use the new handbook paths SergioCarlavilla
Line 1: Line 1:
 +<callout type="warning">
 +**Warning**
 +This document is largely outdated, and is preserved to serve as documentation for existing installations.
 +
 +Start with the %%FreeBSD%% Handbook's [[https://docs.freebsd.org/en/books/handbook/zfs/|ZFS Chapter]] if you have not read it yet. For instructions on how to install root on ZFS, please see the %%FreeBSD%% Handbook's [[https://docs.freebsd.org/en/books/handbook/bsdinstall/|Installation chapter]].
 +</callout>
 +
 ====== Root On ZFS ====== ====== Root On ZFS ======
  
Line 59: Line 66:
  
 [[RootOnZFS/GPTZFSBoot/9.0-RELEASE|Installing FreeBSD 9.0-RELEASE Root on ZFS (Mirror) using GPT]] [[RootOnZFS/GPTZFSBoot/9.0-RELEASE|Installing FreeBSD 9.0-RELEASE Root on ZFS (Mirror) using GPT]]
 +
 +==== Using VTOC8 Disk (sparc64) ====
 +
 +For booting a sparc64 arch, the installation procedure of the boot-loader needs to be customized:
 +
 +[[RootOnZFS/VTOC8ZFSBoot/9.x-RELEASE|Installing FreeBSD 9.x-RELEASE Root on ZFS (Mirror) using VTOC8]]
  
 ===== ZFS Tips ===== ===== ZFS Tips =====
Line 72: Line 85:
  
 <code> <code>
-Fixit# zfs create -V 2G zroot/swap +Fixit# zfs create -V 2G -o org.freebsd:swap=on -o checksum=off -o compression=off -o dedup=off -o sync=disabled -o primarycache=none zroot/swap
-Fixit# zfs set org.freebsd:swap=on zroot/swap +
-Fixit# zfs set checksum=off zroot/swap+
 </code> </code>
 +
 +<callout type="info">
 +**Note:**
 +
 +If there is no real memory available, the system might become unresponsive. To help mitigate this, consider raising the value of vm.v_free_severe (as well as vm.v_free_min and vm.v_free_target such that v_free_severe < v_free_min < v_free_target). For instance, on a system with 3GB of RAM, JohnNielsen was able to prevent a reproducible out-of-memory hang by setting vm.v_free_severe=7168.
 +</callout>
  
 ==== Alternate /etc/fstab ==== ==== Alternate /etc/fstab ====
Line 109: Line 126:
   * [[ZFSOnRoot|Root on ZFS configuration with UFS /boot]] by AndrewThompson   * [[ZFSOnRoot|Root on ZFS configuration with UFS /boot]] by AndrewThompson
   * [[http://blogs.freebsdish.org/lulf/2008/12/16/setting-up-a-zfs-only-system/|Root on ZFS configuration (gptzfsboot)]] by UlfLilleengen   * [[http://blogs.freebsdish.org/lulf/2008/12/16/setting-up-a-zfs-only-system/|Root on ZFS configuration (gptzfsboot)]] by UlfLilleengen
-  * [[http://www.keltia.net/howtos/zfsboot|GPT Mirror and RAIDZ1 ZFS-only boot]] by OllivierRobert+  * [[http://www.keltia.net/howtos/zfsroot-freebsd8/|GPT Mirror and RAIDZ1 ZFS-only boot]] by OllivierRobert 
 +  * [[http://www.keltia.net/howtos/mfsbsd-zfs91/|9.1 GPT/GELI/Mirror/RAIDZ1 ZFS-only boot]] by OllivierRobert
   * [[http://www.leidinger.net/blog/2011/05/03/another-root-on-zfs-howto-optimized-for-4k-sector-drives/|Another root-on-zfs HOWTO (opti­mized for 4k-sector drives)]] by AlexanderLeidinger   * [[http://www.leidinger.net/blog/2011/05/03/another-root-on-zfs-howto-optimized-for-4k-sector-drives/|Another root-on-zfs HOWTO (opti­mized for 4k-sector drives)]] by AlexanderLeidinger
   * [[http://anonsvn.h3q.com/projects/freebsd-patches/wiki/manageBE|manageBE]] by Philipp Wuensche   * [[http://anonsvn.h3q.com/projects/freebsd-patches/wiki/manageBE|manageBE]] by Philipp Wuensche
Line 115: Line 133:
   * [[http://web.mr-happy.com/hackstuff/FreeBSD-ZFS.php|ZFS-Only FreeBSD]] by Jeff Blank   * [[http://web.mr-happy.com/hackstuff/FreeBSD-ZFS.php|ZFS-Only FreeBSD]] by Jeff Blank
   * [[ZFSOnRootWithZFSboot|Root on ZFS configuration (zfsboot)]] by ScotHetzel (depreciated)   * [[ZFSOnRootWithZFSboot|Root on ZFS configuration (zfsboot)]] by ScotHetzel (depreciated)
 +  * [[http://julipedia.meroh.net/2013/07/installing-freebsd-with-zfs-root-on.html|Installing FreeBSD with a ZFS root on a PowerMac G5]] by JulioMerino
  
 If you know of any other Root on ZFS guides, either add them here if you have access or let me know about them. If you know of any other Root on ZFS guides, either add them here if you have access or let me know about them.
  
  • rootonzfs.1339249420.txt.gz
  • Last modified: 2012/06/09 13:43
  • by BryanDrewery