FreeBSD Security Infomationを見ても、FreeBSD7.2の事が記載されていない…。
というより、mbuf もあるしってことで、アップデートを行った。
Lost mbuf flag resulting in data corruptionを見ても、7.2のことが記載がない。
まあ、
2010/6/30がEOLなんだが、Type が Normal だったってことで、EOLが早いらしい...
で、 FreeBSD 7.2 RELEASE Announcementに記載の通り、freebsd-update を行ったのだが、いくつかハマリドコロがあった。
The freebsd-update(8) utility supports binary upgrades of i386 and amd64 systems running earlier FreeBSD releases. Systems running 7.0-RELEASE, 7.1-RELEASE, 7.2-BETA, 7.2-RC1, or 7.2-RC2 can upgrade as follows:
# freebsd-update upgrade -r 7.2-RELEASE
During this process, FreeBSD Update may ask the user to help by merging some configuration files or by confirming that the automatically performed merging was done correctly.
# freebsd-update install
The system must be rebooted with the newly installed kernel before continuing.
# shutdown -r now
After rebooting, freebsd-update needs to be run again to install the new userland components, and the system needs to be rebooted again:
# freebsd-update install
# shutdown -r now
Users of earlier FreeBSD releases (FreeBSD 6.x) can also use freebsd-update to upgrade to FreeBSD 7.2, but will be prompted to rebuild all third-party applications (e.g., anything installed from the ports tree) after the second invocation of "freebsd-update install", in order to handle differences in the system libraries between FreeBSD 6.x and FreeBSD 7.x.
アップデート対象のシステムは、/home 以下全てzfsにしているが、いくつか問題が出た。
というのも、freebsd-update install のあと、再起動を行うが、sshログインが出来なくなった。
シリアルコンソールでrootログインを行ってみると、/home 以下がmount出来ていないという状態。
そこで、zpool list とすると、out of memory を表示され、coredumpではなかったが、動作しないので、バージョンの問題だと直ぐに把握。ドキュメント通りに、もう一度、freebsd-update install を行うと、ユーザランドがupgradeされるのだろうか、正しくzpool/zfsコマンドが使用出来るようになった。
そもそも、sshは鍵認証しか許しておらず、/home が無いと言うことは鍵認証が出来ないと言うこと。また、/var や /usr がzfsではなかったため、大きな問題が出なかったが、もし、/usr 全体をzfsにしていた場合、freebsd-update を使用した場合、大きな問題が出るだろう。同様に、7.x -> 8.x でも同じことが言えるかも知れないので、注意した方がよいだろう。
ということは、次の課題はFreeBSD8.xにupgrade するときに発生ですね。。