zfsバージョンアップ&合わせてkernelパッチ適用

久しぶりにサーバ付近にいけたので、思い切ってkernelパッチあてました。
(リモートからだとシングルでの作業ができない&古いサーバなので、リブートに失敗しそうなのだよ)
本当は客先に納品したものとkernelを合わせていたのですが、最近は問い合わせも少なくなったし。


$ cat /etc/release
Solaris 10 6/06 s10s_u2wos_09a SPARC
Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 09 June 2006
$ /usr/sbin/zpool upgrade -v
This system is currently running ZFS version 4.

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

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.
$

することは単純で、シングルモードにしてひたすらカーネルパッチを適用するだけ

(なんかいろいろあてた)=> 127127-11 => 137137-09
# patchadd 127755-01
# patchadd 127127-11
# patchadd 137137-09

ちなみに、137137-09.zip は200Mぐらいあります。(デカすぎ)
この時点で カーネル自体は 10/08 と同じになるので、zfsのパッチあてるのかな?と思ってたら、すでにカーネルパッチに含まれていました。(ので、これで完了)


$ /usr/sbin/zpool upgrade -v
This system is currently running ZFS pool version 10.

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
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.
$
$ /usr/sbin/zpool status
pool: rzpool
state: ONLINE
status: The pool is formatted using an older 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 older software versions.
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
rzpool ONLINE 0 0 0
raidz1 ONLINE 0 0 0
c0t0d0s6 ONLINE 0 0 0
c2t0d0s4 ONLINE 0 0 0
c2t2d0s6 ONLINE 0 0 0

errors: No known data errors
$

で、poolのバージョンアップ。


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

Successfully upgraded 'rzpool' from version 4 to version 10

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

All pools are formatted using this version.
#

upgrade自体は時間にして、わずか1秒。
マウントしたままでよいです。

ということで、パッチ単体で実施してみました。
LiveUpdate とかしたことがないんですよね、、、今日ドキュメント読んだら機能自体はSolaris8からあるというのを初めて知りました。