diff options
author | mr <mr@FreeBSD.org> | 2011-03-20 13:01:57 +0000 |
---|---|---|
committer | mr <mr@FreeBSD.org> | 2011-03-20 13:01:57 +0000 |
commit | 98f46dcc77f7c59d57bc8f12e4cffae457ab412f (patch) | |
tree | 5ce6f688da27b9afc58800631595a0de16561420 | |
parent | 44066768550a660729a4a0eb48c30ddd6246069e (diff) | |
download | FreeBSD-src-98f46dcc77f7c59d57bc8f12e4cffae457ab412f.zip FreeBSD-src-98f46dcc77f7c59d57bc8f12e4cffae457ab412f.tar.gz |
Add a file with some remarks for setting up a zfs boot environment
-rw-r--r-- | tools/tools/nanobsd/rescue/Files/root/ZFS_Create.txt | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tools/tools/nanobsd/rescue/Files/root/ZFS_Create.txt b/tools/tools/nanobsd/rescue/Files/root/ZFS_Create.txt new file mode 100644 index 0000000..2a33b25 --- /dev/null +++ b/tools/tools/nanobsd/rescue/Files/root/ZFS_Create.txt @@ -0,0 +1,35 @@ +# $FreeBSD$ + +Some remarks for setting up a zfs boot environment + +ZFS Boot sctructure: +boot ++-ROOT + +-root +[+-root2] +[+-root3] + +zpool create -o mountpoint=none boot ... +zpool set listsnapshots=on boot + +zfs create -o mountpoint=/mnt boot/ROOT +zfs create boot/ROOT/root + +Fill -> /mnt/root + +cp /boot/zfs/zpool.cache /mnt/root/boot/zfs/zpool.cache +zpool set bootfs=boot/ROOT/root boot + +set in /mnt/root/boot/loader.conf +#ZFS mandatory +zfs_load="YES" +vfs.root.mountfrom="zfs:boot/ROOT/root" +#ZFS optional +vm.kmem_size="8G" +vfs.zfs.arc_min="1G" +vfs.zfs.arc_max="2G" +vfs.zfs.prefetch_disable="1" +vfs.zfs.zil_disable=1 +vfs.zfs.zio.use_uma=0 +#Power savings +hw.pci.do_power_nodriver=3 |