Quick ZFS note on NetBSD 7.0

I was thinking of building a ZFS NAS with NetBSD 7.0.

I installed it as a VM and had a quick look at what was available.

First thing: it’s not possible to install a ZFS root filesystem using the installer. NetBSD 7.0 although has a nice disk wizard. RAIDframe and LVM are available so that you can install NetBSD on a RAID FFSv2 root array.

Second thing: ZFS version is 23. AFAIK, FreeBSD 9.0 had 28.

netbsd# zpool upgrade -v
This system is currently running ZFS pool version 23.

The following versions are supported:

VER  DESCRIPTION
---  --------------------------------------------------------
 1   Initial ZFS version
 2   Ditto blocks (replicated metadata)
 3   Hot spares and double parity RAID-Z
 4   zpool history
 5   Compression using the gzip algorithm
 6   bootfs pool property
 7   Separate intent log devices
 8   Delegated administration
 9   refquota and refreservation properties
 10  Cache devices
 11  Improved scrub performance
 12  Snapshot properties
 13  snapused property
 14  passthrough-x aclinherit
 15  user/group space accounting
 16  stmf property support
 17  Triple-parity RAID-Z
 18  Snapshot user holds
 19  Log device removal
 20  Compression using zle (zero-length encoding)
 21  Deduplication
 22  Received properties
 23  Slim ZIL

For more information on a particular version, including supported releases, see:

http://www.opensolaris.org/os/community/zfs/version/N

Where 'N' is the version number.

# zpool upgrade
This system is currently running ZFS pool version 23.

All pools are formatted using this version.

# zfs upgrade
This system is currently running ZFS filesystem version 4.

All filesystems are formatted with the current version.

Last thing: compression and reduplication doesn’t seem to work.

netbsd# zpool list 
NAME   SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
tank  59.5G   215K  59.5G     0%  1.00x  ONLINE  -

netbsd# zfs list
NAME        USED  AVAIL  REFER  MOUNTPOINT
tank        133K  39.0G  29.3K  /tank
tank/home  28.0K  39.0G  28.0K  /tank/home

netbsd# zfs set compression=on tank/home
cannot set property for 'tank/home': pool and or dataset must be upgraded to set this property or value

netbsd# zfs set compression=gzip tank/home
cannot set property for 'tank/home': pool and or dataset must be upgraded to set this property or value

netbsd# zfs set dedup=on tank/home         
cannot set property for 'tank/home': pool and or dataset must be upgraded to set this property or value


Well, I think I’d rather go for FreeNAS…

No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

*

%d bloggers like this: