CONTENTS #contents ---- Lastmodified &lastmod; ---- *freebsd-update -r 9.1-RELEASE upgrade from 7.1R-p16 [#p330ff04] [[handbook/updating-upgrading:http://www.freebsd.org/doc/ja/books/handbook/updating-upgrading-freebsdupdate.html]] Theseus FreeBSD 7.1-RELEASE-p16 (GENERIC) ns.kuji-clinic.net を9.1Rへアップする。~ DNS専用機だし、もうこのくらい古い機体になると、FreeBSD-updateでUPするより、インストールDVDなんかでスクラッチインストールの方がよっぽどお手軽なんだけど、まぁ、やってみる事に・・・。 **現状をフルバックアップ [#e108615a] /root/bin/backup_to_G7_all.sh #!/bin/sh /usr/local/bin/rsync -av --exclude="/usr/Backups/*" --inplace / g7.kuji-clinic.net:/usr/home/Backups/Theseus_all : : var/yp/Makefile -> Makefile.dist var/yp/Makefile.dist sent 9741215021 bytes received 7170845 bytes 3513564.92 bytes/sec total size is 9723293349 speedup is 1.00 theseus : 2013 03 29 15:14 /root/bin # ** CVSUPを停める [#jf466ada] # Update ports tree 20090122 0 3 * * * root portsnap cron && portsnap update >/dev/null && /usr/local/sbin/portversion -vL= #30 3 * * * root /root/CVSUP/7_1/cvsup-releng_7_1.sh ** freebsd-update で取って来るファイルは、 [#dc6ccaa1] root@g7:/var # du -h 34k ./db/freebsd-update/install.Q2jp1m 4.5k ./db/freebsd-update/install.HYif8i 13M ./db/freebsd-update/files 13M ./db/freebsd-update こんくらい。(^^)/ theseus : 2013 03 29 15:31 /root/bin # df -h Filesystem Size Used Avail Capacity Mounted on /dev/ad0s1a 496M 97M 360M 21% / devfs 1.0K 1.0K 0B 100% /dev /dev/ad0s1e 496M 16K 456M 0% /tmp /dev/ad0s1f 70G 35G 29G 55% /usr /dev/ad0s1d 1.2G 223M 902M 20% /var devfs 1.0K 1.0K 0B 100% /var/named/dev devfs 1.0K 1.0K 0B 100% /var/named/dev theseus : 2013 03 29 15:31 /root/bin # なんか、このままでもダイジョビそうだ。 # sed -i '' -e 's/=_/=%@_/' /usr/sbin/freebsd-update # freebsd-update -r 9.1-RELEASE upgrade ** ns.kuji-clinic.net のバックアップ [#z8054cb6] 一応、DNSサービス停止に備えて 同一セグメント上のk222.kuji-clinic.net:/etc/rc.conf に ##################### for ns.kuji-clinic.net ########## #ifconfig_em0_alias0="inet 210.255.122.210 netmask 255.255.255.255" としておいて、/var/named/etc/namedb_20130330.tar.gz をコピーしておく。 ** vi de file edit [#j43f3ad2] **# freebsd-update install [#tbefc832] # freebsd-update install Installing updates...rmdir: ///boot/kernel: Directory not empty Kernel updates have been installed. Please reboot and run "/usr/sbin/freebsd-update install" again to finish installing updates. # reboot FreeBSD 9.1-RELEASE (GENERIC) #0 r243826: Tue Dec 4 06:55:39 UTC 2012 # freebsd-update install Installing updates...rmdir: ///usr/src/etc/rc.d: Directory not empty rmdir: ///usr/src/etc: Directory not empty Completing this upgrade requires removing old shared object files. Please rebuild all installed 3rd party software (e.g., programs installed from the ports tree) and then run "/usr/sbin/freebsd-update install" again to finish installing updates. ''メジャーバージョンアップグレードを行った後では、 すべてのサードパーティ製のソフトウェアを再構築し、 再インストールする必要があります。 この作業が必要なのは、インストールされているソフトウェアが、 アップグレードの際に削除されたライブラリに依存している可能性があるためです。 ports-mgmt/portupgrade コマンドは、このプロセスを自動化します。 以下のコマンドで、このプロセスを開始します。'' # portupgrade -f ruby # rm /var/db/pkg/pkgdb.db # portupgrade -f ruby18-bdb # rm /var/db/pkg/pkgdb.db /usr/ports/INDEX-*.db # portupgrade -af ''この作業の終了後、最後にもう一度 freebsd-update を実行すると、アップグレードのプロセスが完了します。 以下のコマンドですべてのアップグレードプロセスのやり残し作業が行われます。'' # portupgrade -af _ btree> in /var/db/pkg ... - 343 packages found (-0 +343) .............................. ..................................................... .................100.................................................................... ................................200..................................................... ...............................................300...................................... ..... done] ** Port directory not found: devel/automake110 ** Port directory not found: devel/automake19 ** Port marked as IGNORE: sysutils/libutempter: is now contained in the base system ** Port directory not found: lang/python25 ** Port marked as IGNORE: x11-drivers/xf86-video-via: requires pciVideoPtr typedef ** Port marked as IGNORE: archivers/xz: is already in the base system [Updating the portsdb <format:bdb_btree> in /usr/ports ... - 24332 port entries .2000.........3000.........4000.........5000.........6000.........7000.........8000...... ...9000.........10000.........11000.........12000.........13000.........14000.........150 00.........16000.........17000.........18000.........19000.........20000.........21000... ......22000.........23000.........24000... ..... done] ---> Upgrading 'xf86driproto-2.0.4' to 'xf86driproto-2.1.1' (x11/xf86driproto) ---> Building '/usr/ports/x11/xf86driproto' ===> Cleaning for xf86driproto-2.1.1 ===> License MIT accepted by the user => xf86driproto-2.1.1.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/xorg/proto. : : ---> Cleaning out obsolete shared libraries [Updating the pkgdb <format:dbm_hash> in /var/db/pkg ... Inappropriate file type or format - /var/db/pkg/pkgdb; rebuild needed] [Rebuilding the pkgdb <format:dbm_hash> in /var/db/pkg ... - 352 packages found (-0 +352) .............................................................................................. ......100..................................................................................... ...............200............................................................................ ........................300.................................................... done] /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:215:in `origin': /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument (PkgDB::DBError) from /usr/local/lib/ruby/site_ruby/1.8/pkginfo.rb:205:in `origin' from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:245:in `config_include?' from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:215:in `config_ignore_moved?' from /usr/local/sbin/portupgrade:942:in `do_upgrade' from /usr/local/sbin/portupgrade:816:in `main' from /usr/local/sbin/portupgrade:812:in `each' from /usr/local/sbin/portupgrade:812:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:791:in `initialize' from /usr/local/sbin/portupgrade:229:in `new' from /usr/local/sbin/portupgrade:229:in `main' from /usr/local/sbin/portupgrade:2213 theseus : 2013 03 31 7:54 /root # ここまでの間、ブルーバックのオプションの選択画面でCRを何十回か押す必要があるため、気が抜けない。~ 結局、24時間ほどかかった。 最期のエラーについては、 http://unitail.blog118.fc2.com/blog-entry-25.html theseus : 2013 03 31 8:09 /root # rm /var/db/pkg/pkg.db rm: /var/db/pkg/pkg.db: No such file or directory theseus : 2013 03 31 8:15 /root # rm /usr/ports/INDEX-*.db theseus : 2013 03 31 8:15 /root # した。 theseus : 2013 03 31 7:54 /root # freebsd-update install Installing updates... done. theseus : 2013 03 31 8:02 /root # theseus : 2013 03 31 8:02 /root # named-checkconf /etc/namedb/named.conf:95: unknown option 'directory' /etc/namedb/named.conf:96: unknown option 'pid-file' /etc/namedb/named.conf:97: unknown option 'dump-file' /etc/namedb/named.conf:98: unknown option 'statistics-file' theseus : 2013 03 31 8:07 /root # rndc reload WARNING: key file (/etc/namedb/rndc.key) exists, but using default configuration file (/etc/namedb/rndc.conf) rndc: 'reload' failed: failure theseus : 2013 03 31 8:08 /root # Mar 31 08:25:05 theseus kernel: Entropy harvesting: interrupts ethernet point_to_point kickstart. Mar 31 08:25:05 theseus kernel: Starting file system checks Mar 31 08:25:05 theseus kernel: /dev/ad0s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS Mar 31 08:25:05 theseus kernel: /dev/ad0s1a: clean, 120544 free (800 frags, 14968 blocks, 0.3% fragmentation) Mar 31 08:25:05 theseus kernel: /dev/ad0s1e: FILE SYSTEM CLEAN; SKIPPING CHECKS Mar 31 08:25:05 theseus kernel: /dev/ad0s1e: clean, 253770 free (26 frags, 31718 blocks, 0.0% fragmentation) Mar 31 08:25:05 theseus kernel: /dev/ad0s1f: FILE SYSTEM CLEAN; SKIPPING CHECKS Mar 31 08:25:05 theseus kernel: /dev/ad0s1f: clean, 18194700 free (82356 frags, 2264043 blocks, 0.2% fragmentation) Mar 31 08:25:05 theseus kernel: /dev/ad0s1d: FILE SYSTEM CLEAN; SKIPPING CHECKS Mar 31 08:25:05 theseus kernel: /dev/ad0s1d: clean, 222575 free (20343 frags, 25279 blocks, 3.3% fragmentation) Mar 31 08:25:05 theseus kernel: Mounting local file systems:. Mar 31 08:25:05 theseus kernel: Setting hostname: theseus.kuji-clinic.net. Mar 31 08:25:05 theseus kernel: Starting Network: lo0 fxp0 plip0. Mar 31 08:25:05 theseus kernel: lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 Mar 31 08:25:05 theseus kernel: options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6> Mar 31 08:25:05 theseus kernel: inet6 ::1 prefixlen 128 Mar 31 08:25:05 theseus kernel: inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 Mar 31 08:25:05 theseus kernel: inet 127.0.0.1 netmask 0xff000000 Mar 31 08:25:05 theseus kernel: nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> Mar 31 08:25:05 theseus kernel: fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 Mar 31 08:25:05 theseus kernel: options=2009<RXCSUM,VLAN_MTU,WOL_MAGIC> Mar 31 08:25:05 theseus kernel: ether 00:20:e0:60:22:f4 Mar 31 08:25:05 theseus kernel: inet 210.255.122.221 netmask 0xfffffff0 broadcast 210.255.122.223 Mar 31 08:25:05 theseus kernel: inet6 fe80::220:e0ff:fe60:22f4%fxp0 prefixlen 64 tentative scopeid 0x1 Mar 31 08:25:05 theseus kernel: inet 210.255.122.210 netmask 0xffffffff broadcast 210.255.122.210 Mar 31 08:25:05 theseus kernel: nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> Mar 31 08:25:05 theseus kernel: media: Ethernet autoselect (none) Mar 31 08:25:05 theseus kernel: status: no carrier Mar 31 08:25:05 theseus kernel: plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500 Mar 31 08:25:05 theseus kernel: nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> Mar 31 08:25:05 theseus kernel: Starting devd. Mar 31 08:25:05 theseus kernel: Starting Network: usbus0. Mar 31 08:25:05 theseus kernel: Starting Network: usbus1. Mar 31 08:25:05 theseus kernel: Starting Network: plip0. Mar 31 08:25:05 theseus kernel: plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500 Mar 31 08:25:05 theseus kernel: nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> Mar 31 08:25:05 theseus kernel: add net default: gateway 210.255.122.209 Mar 31 08:25:05 theseus kernel: add net ::ffff:0.0.0.0: gateway ::1 Mar 31 08:25:05 theseus kernel: add net ::0.0.0.0: gateway ::1 Mar 31 08:25:05 theseus kernel: add net fe80::: gateway ::1 Mar 31 08:25:05 theseus kernel: add net ff02::: gateway ::1 Mar 31 08:25:05 theseus kernel: Generating host.conf. Mar 31 08:25:05 theseus kernel: ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg /usr/local/lib/dovecot /usr/local/lib/dovecot/imap /usr/local/lib/dovecot/lda /usr/local/lib/dovecot/pop3 /usr/local/lib/mysql Mar 31 08:25:05 theseus kernel: a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout Mar 31 08:25:05 theseus kernel: Clearing /tmp (X related). Mar 31 08:25:05 theseus kernel: Creating and/or trimming log files. Mar 31 08:25:05 theseus kernel: Starting syslogd. Mar 31 08:25:05 theseus kernel: Additional ABI support: linux Mar 31 08:25:06 theseus kernel: Starting named. Mar 31 08:25:06 theseus kernel: Mar 31 08:25:06 theseus named[932]: the working directory is not writable Mar 31 08:25:07 theseus kernel: Starting named. Mar 31 08:25:07 theseus kernel: Mar 31 08:25:07 theseus named[1015]: could not listen on UDP socket: address in use Mar 31 08:25:07 theseus kernel: Mar 31 08:25:07 theseus named[1015]: creating IPv4 interface fxp0 failed; interface ignored Mar 31 08:25:07 theseus kernel: Mar 31 08:25:07 theseus named[1015]: could not listen on UDP socket: address in use Mar 31 08:25:07 theseus kernel: Mar 31 08:25:07 theseus named[1015]: creating IPv4 interface fxp0 failed; interface ignored Mar 31 08:25:07 theseus kernel: Mar 31 08:25:07 theseus named[1015]: could not listen on UDP socket: address in use Mar 31 08:25:07 theseus kernel: Mar 31 08:25:07 theseus named[1015]: creating IPv4 interface lo0 failed; interface ignored Mar 31 08:25:07 theseus kernel: Mar 31 08:25:07 theseus named[1015]: the working directory is not writable Mar 31 08:25:07 theseus kernel: Mar 31 08:25:07 theseus named[1015]: could not listen on UDP socket: permission denied Mar 31 08:25:07 theseus kernel: Mar 31 08:25:07 theseus named[1015]: creating IPv4 interface fxp0 failed; interface ignored Mar 31 08:25:07 theseus kernel: Mar 31 08:25:07 theseus named[1015]: could not listen on UDP socket: permission denied Mar 31 08:25:07 theseus kernel: Mar 31 08:25:07 theseus named[1015]: creating IPv4 interface fxp0 failed; interface ignored Mar 31 08:25:07 theseus kernel: Mar 31 08:25:07 theseus named[1015]: could not listen on UDP socket: permission denied Mar 31 08:25:07 theseus kernel: Mar 31 08:25:07 theseus named[1015]: creating IPv4 interface lo0 failed; interface ignored Mar 31 08:25:07 theseus kernel: ln: pid-file: No such file or directory Mar 31 08:25:07 theseus kernel: Setting date via ntp. Mar 31 08:25:15 theseus kernel: 31 Mar 08:25:14 ntpdate[1019]: adjust time server 182.48.61.190 offset -0.249294 sec Mar 31 08:25:15 theseus kernel: Starting snmptrapd. Mar 31 08:25:16 theseus kernel: Starting snmpd. Mar 31 08:25:17 theseus kernel: Updating motd:. Mar 31 08:25:17 theseus kernel: Starting ntpd. Mar 31 08:25:17 theseus kernel: /etc/rc: WARNING: $scponlyc_enable is not set properly - see rc.conf(5). Mar 31 08:25:17 theseus kernel: Shared object "libpcre.so.0" not found, required by "postfix" Mar 31 08:25:17 theseus kernel: Starting mysql. Mar 31 08:25:19 theseus kernel: Starting default mousedmoused: unable to open /dev/psm0: No such file or directory Mar 31 08:25:19 theseus kernel: . Mar 31 08:25:20 theseus kernel: Performing sanity check on apache22 configuration: Mar 31 08:25:20 theseus kernel: Shared object "libcrypt.so.4" not found, required by "httpd" Mar 31 08:25:20 theseus kernel: Starting apache22. Mar 31 08:25:20 theseus kernel: Shared object "libcrypt.so.4" not found, required by "httpd" Mar 31 08:25:20 theseus kernel: /etc/rc: WARNING: failed to start apache22 Mar 31 08:25:20 theseus kernel: Configuring syscons: keymap blanktime. Mar 31 08:25:20 theseus kernel: You already have an RSA host key in /etc/ssh/ssh_host_key Mar 31 08:25:20 theseus kernel: Skipping protocol version 1 RSA Key Generation Mar 31 08:25:20 theseus kernel: You already have a DSA host key in /etc/ssh/ssh_host_dsa_key Mar 31 08:25:20 theseus kernel: Skipping protocol version 2 DSA Key Generation Mar 31 08:25:20 theseus kernel: You already have an RSA host key in /etc/ssh/ssh_host_rsa_key Mar 31 08:25:20 theseus kernel: Skipping protocol version 2 RSA Key Generation Mar 31 08:25:21 theseus kernel: Generating public/private ecdsa key pair. Mar 31 08:25:21 theseus kernel: Your identification has been saved in /etc/ssh/ssh_host_ecdsa_key. Mar 31 08:25:21 theseus kernel: Your public key has been saved in /etc/ssh/ssh_host_ecdsa_key.pub. Mar 31 08:25:21 theseus kernel: The key fingerprint is: Mar 31 08:25:21 theseus kernel: ea:10:bf:6d:c1:04:f1:86:64:5e:a0:30:ab:58:21:e3 root@theseus.kuji-clinic.net Mar 31 08:25:21 theseus kernel: The key's randomart image is: Mar 31 08:25:21 theseus kernel: +--[ECDSA 256]---+ Mar 31 08:25:21 theseus kernel: |o + =o. | Mar 31 08:25:21 theseus kernel: |.o = =.+ | Mar 31 08:25:21 theseus kernel: | Eo . o.o | Mar 31 08:25:21 theseus kernel: |.o .. | Mar 31 08:25:21 theseus kernel: |o . oS | Mar 31 08:25:21 theseus kernel: | o .o | Mar 31 08:25:21 theseus kernel: | . o . | Mar 31 08:25:21 theseus kernel: | o o. | Mar 31 08:25:21 theseus kernel: | o.. | Mar 31 08:25:21 theseus kernel: +-----------------+ Mar 31 08:25:21 theseus kernel: Starting sshd. Mar 31 08:25:21 theseus kernel: Starting cron. Mar 31 08:25:21 theseus kernel: Starting background file system checks in 60 seconds. Mar 31 08:25:21 theseus kernel: Mar 31 08:25:21 theseus kernel: Sun Mar 31 08:25:21 JST 2013 theseus : 2013 03 31 8:41 /root # theseus : 2013 03 31 11:35 /root # locate libutil.so.7 /lib/libutil.so.7 /usr/Backups/Piano/all/lib/libutil.so.7 /usr/obj/usr/src/lib/libutil/libutil.so.7 /usr/obj/usr/src/tmp/lib/libutil.so.7 theseus : 2013 03 31 11:35 /root # cp /usr/obj/usr/src/lib/libutil/libutil.so.7 /usr/local/lib ---- Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday); #counter([total|today|yesterday]);