Page 1 of 1

ZFS Upgrade to latest V5000

Posted: 30 Mar 2014 17:52
by raulfg3
only to show. upgrade process:

Code: Select all

login as: root
root@192.168.1.250's password:
Last login: Sun Mar 30 13:02:16 2014 from 192.168.1.10
Welcome to NAS4Free!
nas4free: ~ # zpool status
  pool: NAS-A
 state: ONLINE
status: The pool is formatted using a legacy on-disk format.  The pool can
        still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
        pool will no longer be accessible on software that does not support feature
        flags.
  scan: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        NAS-A       ONLINE       0     0     0
          ada1      ONLINE       0     0     0

errors: No known data errors
nas4free: ~ # zpool upgrade
This system supports ZFS pool feature flags.

The following pools are formatted with legacy version numbers and can
be upgraded to use feature flags.  After being upgraded, these pools
will no longer be accessible by software that does not support feature
flags.

VER  POOL
---  ------------
28   NAS-A

Use 'zpool upgrade -v' for a list of available legacy versions.
Every feature flags pool has all supported features enabled.
nas4free: ~ # zpool upgrade -v
This system supports ZFS pool feature flags.

The following features are supported:

FEAT DESCRIPTION
-------------------------------------------------------------
async_destroy                         (read-only compatible)
     Destroy filesystems asynchronously.
empty_bpobj                           (read-only compatible)
     Snapshots use less space.
lz4_compress
     LZ4 compression algorithm support.

The following legacy versions are also 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
 24  System attributes
 25  Improved scrub stats
 26  Improved snapshot deletion performance
 27  Improved snapshot creation performance
 28  Multiple vdev replacements

For more information on a particular version, including supported releases,
see the ZFS Administration Guide.

nas4free: ~ # zpool status
  pool: NAS-A
 state: ONLINE
status: The pool is formatted using a legacy on-disk format.  The pool can
        still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
        pool will no longer be accessible on software that does not support feature
        flags.
  scan: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        NAS-A       ONLINE       0     0     0
          ada1      ONLINE       0     0     0

errors: No known data errors
nas4free: ~ # zpool upgrade NAS-A
This system supports ZFS pool feature flags.

Successfully upgraded 'NAS-A' from version 28 to feature flags.
Enabled the following features on 'NAS-A':
  async_destroy
  empty_bpobj
  lz4_compress

nas4free: ~ # zpool status
  pool: NAS-A
 state: ONLINE
  scan: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        NAS-A       ONLINE       0     0     0
          ada1      ONLINE       0     0     0

errors: No known data errors
nas4free: ~ #
if you do a fresh install of Nas4Free 9.2.0.1.943 and create a ZFS pool, your pool was v5000 otherwise, version can by different, upgrade process is safe, but is one way only, so once upgraded, you can't revert to old N4F

Re: ZFS Upgrade to latest V5000

Posted: 02 Apr 2014 18:26
by mamisano
Any benefits of v5000? Here is what my zpool and zfs versions are:

Code: Select all

NAME   PROPERTY  VALUE    SOURCE
pool0   version       13          local

NAME   PROPERTY  VALUE    SOURCE
pool0   version       3            -

Re: ZFS Upgrade to latest V5000

Posted: 02 Apr 2014 19:06
by raulfg3
look at Detailed release history to see advantages & features added:

http://en.wikipedia.org/wiki/ZFS

Re: ZFS Upgrade to latest V5000

Posted: 02 Apr 2014 21:47
by substr
You are on version 13, so there are a lot more changes in your case. But for most other people who are on v28, going to v5000 gives the items below.
async_destroy (read-only compatible)
Destroy filesystems asynchronously.
empty_bpobj (read-only compatible)
Snapshots use less space.
lz4_compress
LZ4 compression algorithm support.
async_destroy allows a lengthy destroy process to happen in the background. The zfs destroy command will return before it is finished. If you have a reboot/panic during a destroy, it doesn't stop the boot process while it finishes the destroy. In years past, people would get their pool into a destroy that would take hours, a reboot would happen, and the pool would be offline until the destroy finished. Generally a problem with very large datasets, more fragmented pools, or low memory.

empty_bpobj reduces overhead of snapshots. Good for cases where there are lots of snapshots being created.

lz4_compress is a new compression option that is CPU friendly. If you didn't use compression before because of the performance impact, you can probably use it now. It doesn't turn on automatically. zfs set compression=lz4 tank/data1
http://code.google.com/p/lz4/
http://fastcompression.blogspot.fr/p/lz4.html Has a Windows command-line version you can try on individual files.

Downside of upgrading (or enabling these 3 or any future feature-flag options) is that you can't use the pool with any OS that doesn't also support those same options. (Excepting the read-only compatible scenario)