zpool & zfs version表示とupgrade

最新バージョンか古いバージョンか

upgradeを引数で実行します。何も表示されなければ最新です。


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

All pools are formatted using this version.
# zfs upgrade
This system is currently running ZFS filesystem version 5.

All filesystems are formatted with the current version.


何か表示された場合は、古いバージョンとなります。
以下は、全体的に低い状態です。


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

The following filesystems are out of date, and can be upgraded. After being
upgraded, these filesystems (and any 'zfs send' streams generated from
subsequent snapshots) will no longer be accessible by older software versions.


VER FILESYSTEM
--- ------------
4 rpool
4 rpool/ROOT
4 rpool/ROOT/opensolaris-snv_134b
4 rpool/ROOT/solaris11-snv_151a
4 rpool/cloudforecast
...


最新にします。マウントした状態でも問題ありませんでした。
個別で指定しても、 -r で再帰指定してもよい。


# zfs upgrade -r rpool
10 filesystems upgraded
33 filesystems already at this version


古いBEで対応していないバージョンに上げると、当然そのBEでは動作しないと予想されますので
ご注意を。