ZFS snapshot restore not quite working; missing steps?

Michael Jung mikej at mikej.com
Tue May 20 12:49:47 UTC 2014


On , Steven Hartland wrote:
> ----- Original Message ----- From: "Jeff Chan" <jeffc at supranet.net>
> 
> 
>> Update: using the most current FreeBSD 9.0 - 9.2 ZFS instructions
>> on the wiki page for the initial configuration caused the booting
>> to ZFS to work:
>> 
>> https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/9.0-RELEASE
>> 
>> including the GNOP trick, since these drives are "advanced format" and
>> greater than 2TB size, and the -a 4k alignment to 4k sectors when
>> creating the ZFS partitions.
> 
> On later versions you can set vfs.zfs.min_auto_ashift=12 to achieve the
> same thing as the GNOP trick, but thats only needed if your drive 
> doesn't
> have a 4k quirk in our codebase.
> 
>    Regards
>    Steve
> _______________________________________________
> freebsd-fs at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"



Steve,

FreeBSD firewall 10.0-STABLE FreeBSD 10.0-STABLE #0 r266313: Sat May 17 
11:52:18 EDT 2014     root at firewall:/usr/obj/usr/src/sys/VT  amd64


Even though /boot/loader.conf contains vfs.zfs.min_auto_ashift=12 the 
value does not get set.

[mikej at firewall ~]$ cat /boot/loader.conf
zfs_load="YES"
kern.maxswzone=16777216
vfs.zfs.min_auto_ashift=12
[mikej at firewall ~]$


[mikej at firewall ~]$ sysctl -a | grep ashift
vfs.zfs.max_auto_ashift: 13
vfs.zfs.min_auto_ashift: 9
[mikej at firewall ~]$


Regards,
--mikej


More information about the freebsd-fs mailing list