[How-To] Data on ZFS (HDD/SSD Installs)
Posted: 08 Sep 2015 11:52
Hello, this how-to is oriented for experienced users who are using HDD/SSD as installation media with data partition, and want to take advantages of ZFS such as snapshots, ideal for users running jails/chroot on the default install data partition.
All you have to do is install NAS4Free with the option #2 to perform a GPT installation instead of the default MBR method, then run 3 simple commands to format the data partition(p4) with ZFS.
First step, install NAS4Free with the option #2

Second step, run the 3 commands shown below, where ada0 is my installation disk on this example.
Sample output from vm test environment.
After reboot import the disks, and go to Disks|ZFS|Configuration and synchronize the pools, that's it.
Note: Under Disks|Management the installation disk will be displayed as a ZFS storage pool device, regardless of the 800M UFS partition.
Disclaimer: This instructions/guide is provided AS-IS and I'm not responsible for any data loss or damage caused by the instructions provided in this thread, proceed at your own risk.
All you have to do is install NAS4Free with the option #2 to perform a GPT installation instead of the default MBR method, then run 3 simple commands to format the data partition(p4) with ZFS.
First step, install NAS4Free with the option #2
Second step, run the 3 commands shown below, where ada0 is my installation disk on this example.
Code: Select all
Delete disk partition 4
# gpart delete -i 4 ada0
Re-create partition 4 as ZFS
# gpart add -t freebsd-zfs ada0
Format partition 4 as ZFS with default mountpoint /mnt
# zpool create -m /mnt/data data ada0p4Code: Select all
nas4free: ~# gpart show
=> 34 16777149 ada0 GPT (8.0G)
34 6 - free - (3.0K)
40 1024 1 freebsd-boot (512K)
1064 7128 - free - (3.5M)
8192 1638400 2 freebsd-ufs (800M)
1646592 4194304 3 freebsd-swap (2.0G)
5840896 10936287 4 freebsd-zfs (5.2G)Note: Under Disks|Management the installation disk will be displayed as a ZFS storage pool device, regardless of the 800M UFS partition.
Disclaimer: This instructions/guide is provided AS-IS and I'm not responsible for any data loss or damage caused by the instructions provided in this thread, proceed at your own risk.