Acer Aspire X1470 - FreeBSD - 2014 archive
back to main FreeBSD page for this machine.
2014 archive.
2014-09-20: ada0p4 - changing the hostname didn't help, mails are still hanging:
root@kg-vm2# mailq /var/spool/mqueue (6 requests) -----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient----------- s8K6aniq058745 1773 Sat Sep 20 08:36 MAILER-DAEMON (Deferred: Connection refused by kg-vm2.kg4.no.) <root@kg-vm2.kg4.no> s8K56niq058587 1979 Sat Sep 20 07:06 MAILER-DAEMON (Deferred: Connection refused by kg-vm2.kg4.no.) <root@kg-vm2.kg4.no> s8K56nir058587 3646 Sat Sep 20 07:06 MAILER-DAEMON (Deferred: Connection refused by kg-vm2.kg4.no.) <root@kg-vm2.kg4.no> s8K2F3ip058290 86 Sat Sep 20 04:15 <root@kg-vm2.kg4.no> (Deferred: Connection refused by kg-vm2.kg4.no.) <root@kg-vm2.kg4.no> s8K114et058058 290 Sat Sep 20 03:01 <root@kg-vm2.kg4.no> (Deferred: Connection refused by kg-vm2.kg4.no.) <root@kg-vm2.kg4.no> s8K1140w058091 1960 Sat Sep 20 03:01 <root@kg-vm2.kg4.no> (Deferred: Connection refused by kg-vm2.kg4.no.) <root@kg-vm2.kg4.no> Total requests: 6
and can be fixed with:
root@kg-vm2# sendmail -q -v Running /var/spool/mqueue/s8K6aniq058745 (sequence 1 of 6) <root@kg-vm2.kg4.no>... Connecting to local... 220 kg-vm2.kg4.no LMTP ready >>> LHLO kg-vm2.kg4.no 250-kg-vm2.kg4.no 250-8BITMIME 250-ENHANCEDSTATUSCODES 250 PIPELINING >>> MAIL From:<> 250 2.5.0 Ok >>> RCPT To:<root> >>> DATA 250 2.1.5 Ok 354 Go ahead >>> . 250 2.1.5 root Ok <root@kg-vm2.kg4.no>... Sent Running /var/spool/mqueue/s8K56niq058587 (sequence 2 of 6) >>> RSET 250 2.0.0 Ok <root@kg-vm2.kg4.no>... Using cached LMTP connection for local... >>> MAIL From:<> 250 2.5.0 Ok >>> RCPT To:<root> >>> DATA 250 2.1.5 Ok 354 Go ahead >>> . 250 2.1.5 root Ok <root@kg-vm2.kg4.no>... Sent Running /var/spool/mqueue/s8K56nir058587 (sequence 3 of 6) >>> RSET 250 2.0.0 Ok <root@kg-vm2.kg4.no>... Using cached LMTP connection for local... >>> MAIL From:<> 250 2.5.0 Ok >>> RCPT To:<root> >>> DATA 250 2.1.5 Ok 354 Go ahead >>> . 250 2.1.5 root Ok <root@kg-vm2.kg4.no>... Sent Running /var/spool/mqueue/s8K2F3ip058290 (sequence 4 of 6) >>> RSET 250 2.0.0 Ok <root@kg-vm2.kg4.no>... Using cached LMTP connection for local... >>> MAIL From:<root@kg-vm2.kg4.no> 250 2.5.0 Ok >>> RCPT To:<root> >>> DATA 250 2.1.5 Ok 354 Go ahead >>> . 250 2.1.5 root Ok <root@kg-vm2.kg4.no>... Sent Running /var/spool/mqueue/s8K114et058058 (sequence 5 of 6) >>> RSET 250 2.0.0 Ok <root@kg-vm2.kg4.no>... Using cached LMTP connection for local... >>> MAIL From:<root@kg-vm2.kg4.no> 250 2.5.0 Ok >>> RCPT To:<root> >>> DATA 250 2.1.5 Ok 354 Go ahead >>> . 250 2.1.5 root Ok <root@kg-vm2.kg4.no>... Sent Running /var/spool/mqueue/s8K1140w058091 (sequence 6 of 6) >>> RSET 250 2.0.0 Ok <root@kg-vm2.kg4.no>... Using cached LMTP connection for local... >>> MAIL From:<root@kg-vm2.kg4.no> 250 2.5.0 Ok >>> RCPT To:<root> >>> DATA 250 2.1.5 Ok 354 Go ahead >>> . 250 2.1.5 root Ok <root@kg-vm2.kg4.no>... Sent Closing connection to local >>> QUIT 221 2.0.0 Bye you have mail
I really wonder what the issue is?
2014-09-18: ada0p4 - ok, hanging mails is a constant issue. I've discovered that the hostname doesn't include the domain name, maybe that is the problem?
root@kg-vm2# hostname kg-vm2 root@kg-vm2# grep hostname /etc/rc.conf hostname="kg-vm2"
for other machines hostname in /etc/rc.conf includes the domain name. Let's try to change it:
root@kg-vm2# hostname kg-vm2.kg4.no root@kg-vm2# hostname kg-vm2.kg4.no
tomorrow we will see if that fixed anything.
2014-09-02: ada0p4 - mails hang in the queue again:
root@kg-vm2# mailq /var/spool/mqueue (4 requests) -----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient----------- s8256mI9007929 1951 Tue Sep 2 07:06 MAILER-DAEMON (Deferred: Connection refused by kg-vm2.kg4.no.) <root@kg-vm2.kg4.no> s8256mIA007929 4627 Tue Sep 2 07:06 MAILER-DAEMON (Deferred: Connection refused by kg-vm2.kg4.no.) <root@kg-vm2.kg4.no> s82114GL007501 276 Tue Sep 2 03:01 <root@kg-vm2.kg4.no> (Deferred: Connection refused by kg-vm2.kg4.no.) <root@kg-vm2.kg4.no> s82114I8007503 2955 Tue Sep 2 03:01 <root@kg-vm2.kg4.no> (Deferred: Connection refused by kg-vm2.kg4.no.) <root@kg-vm2.kg4.no> Total requests: 4
try to fix it:
root@kg-vm2# sendmail -q -v Running /var/spool/mqueue/s8256mI9007929 (sequence 1 of 4) <root@kg-vm2.kg4.no>... Connecting to local... 220 kg-vm2 LMTP ready >>> LHLO kg-vm2.kg4.no 250-kg-vm2 250-8BITMIME 250-ENHANCEDSTATUSCODES 250 PIPELINING >>> MAIL From:<> 250 2.5.0 Ok >>> RCPT To:<root> >>> DATA 250 2.1.5 Ok 354 Go ahead >>> . 250 2.1.5 root Ok <root@kg-vm2.kg4.no>... Sent Running /var/spool/mqueue/s8256mIA007929 (sequence 2 of 4) >>> RSET 250 2.0.0 Ok <root@kg-vm2.kg4.no>... Using cached LMTP connection for local... >>> MAIL From:<> 250 2.5.0 Ok >>> RCPT To:<root> >>> DATA 250 2.1.5 Ok 354 Go ahead >>> . 250 2.1.5 root Ok <root@kg-vm2.kg4.no>... Sent Running /var/spool/mqueue/s82114GL007501 (sequence 3 of 4) >>> RSET 250 2.0.0 Ok <root@kg-vm2.kg4.no>... Using cached LMTP connection for local... >>> MAIL From:<root@kg-vm2.kg4.no> 250 2.5.0 Ok >>> RCPT To:<root> >>> DATA 250 2.1.5 Ok 354 Go ahead >>> . 250 2.1.5 root Ok <root@kg-vm2.kg4.no>... Sent Running /var/spool/mqueue/s82114I8007503 (sequence 4 of 4) >>> RSET 250 2.0.0 Ok <root@kg-vm2.kg4.no>... Using cached LMTP connection for local... >>> MAIL From:<root@kg-vm2.kg4.no> 250 2.5.0 Ok >>> RCPT To:<root> >>> DATA 250 2.1.5 Ok 354 Go ahead >>> . 250 2.1.5 root Ok <root@kg-vm2.kg4.no>... Sent Closing connection to local >>> QUIT 221 2.0.0 Bye you have mail
I wonder why it happens?
2014-08-30: ada0p4 - now has latest FreeBSD 8.4-stable. dmesg output: normal, verbose.
root@kg-vm2# uname -a FreeBSD kg-vm2 8.4-STABLE FreeBSD 8.4-STABLE #0 r270837: Sat Aug 30 13:25:23 CEST 2014 root@kg-vm2:/usr/obj/usr/src/sys/GENERIC amd64
That's all.
2014-08-30: ada0p4 - build latest stable via make world.
root@kg-vm2# cd /usr/src root@kg-vm2# make -j5 buildworld [...] -------------------------------------------------------------- >>> World build completed on Sat Aug 30 13:02:25 CEST 2014 -------------------------------------------------------------- root@kg-vm2# make kernel [...] ===> zlib (install) install -o root -g wheel -m 555 zlib.ko /boot/kernel install -o root -g wheel -m 555 zlib.ko.symbols /boot/kernel kldxref /boot/kernel
do the rest in multiuser too.
root@kg-vm2# mergemaster -p [...] *** You installed a new master.passwd file, so make sure that you run '/usr/sbin/pwd_mkdb -p /etc/master.passwd' to rebuild your password files Would you like to run it now? y or n [n] y Running /usr/sbin/pwd_mkdb -p /etc/master.passwd
install world
root@kg-vm2# make installworld [...] WITHOUT_HTML -DNO_CTF -DNO_INCS install install -s -o root -g wheel -m 555 ldd32 /usr/bin
remove old stuff
root@kg-vm2# make delete-old >>> Removing old files (only deletes safe to delete libs) remove /usr/share/man/man9/vfs_mount.9.gz? y >>> Old files removed >>> Removing old directories >>> Old directories removed To remove old libraries run 'make delete-old-libs'. root@kg-vm2# make delete-old-libs >>> Removing old libraries Please be sure no application still uses those libraries, else you can not start such an application. Consult UPDATING for more information regarding how to cope with the removal/revision bump of a specific library. >>> Old libraries removed
run mergemaster
root@kg-vm2# mergemaster -iUP [...] *** You installed a new aliases file, so make sure that you run '/usr/bin/newaliases' to rebuild your aliases database Would you like to run it now? y or n [n] y Running /usr/bin/newaliases /etc/mail/aliases: 29 aliases, longest 10 bytes, 297 bytes total *** You installed a login.conf file, so make sure that you run '/usr/bin/cap_mkdb /etc/login.conf' to rebuild your login.conf database Would you like to run it now? y or n [n] y Running /usr/bin/cap_mkdb /etc/login.conf *** You installed a services file, so make sure that you run '/usr/sbin/services_mkdb -q -o /var/db/services.db /etc/services' to rebuild your services database Would you like to run it now? y or n [n] y Running /usr/sbin/services_mkdb -q -o /var/db/services.db /etc/services *** Reinstalling Europe/Oslo as /etc/localtime
then only a reboot is missing.
2014-08-30: ada0p4 - update source to latest stable via subversion:
root@kg-vm2# rm -rf /usr/src root@kg-vm2# svn checkout svn://svn.FreeBSD.org/base/stable/8 /usr/src [...] A /usr/src/bin/sleep/Makefile U /usr/src Checked out revision 270837.
check that the version looks right:
root@kg-vm2# egrep "^BRANCH|^REVISION" /usr/src/sys/conf/newvers.sh REVISION="8.4" BRANCH="STABLE"
good.
2014-08-30: ada0p4 - ports - try to install subversion port again:
root@kg-vm2# cd /usr/ports/devel/subversion root@kg-vm2# make install clean [...] ===> Installing for subversion-1.8.10_1 ===> Checking if devel/subversion already installed pkg_install EOL is scheduled for 2014-09-01. Please migrate to pkgng http://blogs.freebsdish.org/portmgr/2014/02/03/time-to-bid-farewell-to-the-old-pkg_-tools/ ===> Cleaning for pkgconf-0.9.6_1 ===> Cleaning for apr-1.5.1.1.5.3_4 ===> Cleaning for sqlite3-3.8.6 ===> Cleaning for expat-2.1.0_1 ===> Cleaning for serf-1.3.7_1 ===> Cleaning for gettext-0.18.3.1_1 ===> Cleaning for gdbm-1.11_2 ===> Cleaning for libiconv-1.14_3 ===> Cleaning for db5-5.3.28_1 ===> Cleaning for scons-2.3.0_1 ===> Cleaning for indexinfo-0.2 ===> Cleaning for gmake-3.82_1 ===> Cleaning for py27-setuptools27-5.5.1 ===> Cleaning for python27-2.7.8_4 ===> Cleaning for python2-2_3 ===> Cleaning for m4-1.4.17_1,1 ===> Cleaning for subversion-1.8.10_1
Finally, it's installed. Here is all the other stuff dragged in:
root@kg-vm2# pkg_info apr-1.5.1.1.5.3_4 Apache Portability Library db5-5.3.28_1 The Oracle Berkeley DB, revision 5.3 dialog4ports-0.1.5_2 Console Interface to configure ports expat-2.1.0_1 XML 1.0 parser written in C gdbm-1.11_2 GNU database manager gettext-0.18.3.1_1 GNU gettext package gmake-3.82_1 GNU version of 'make' utility indexinfo-0.2 Utility to regenerate the GNU info page index libiconv-1.14_3 Character set conversion library m4-1.4.17_1,1 GNU m4 pkgconf-0.9.6_1 Utility to help to configure compiler and linker flags py27-setuptools27-5.5.1 Python packages installer python2-2_3 The "meta-port" for version 2 of the Python interpreter python27-2.7.8_4 Interpreted object-oriented programming language scons-2.3.0_1 Build tool alternative to make serf-1.3.7_1 Serf HTTP client library sqlite3-3.8.6 SQL database engine in a C library subversion-1.8.10_1 Version control system root@kg-vm2# pkg_info | wc -l 18
So, 17 other ports.
2014-08-30: ada0p4 - ports - updating the ports tree via portsnap fetch; portsnap update.
2014-08-30: ada0p4 - the machine now runs FreeBSD 8.4-release-p14. dmesg output: normal, verbose.
root@kg-vm2# uname -a FreeBSD kg-vm2 8.4-RELEASE-p14 FreeBSD 8.4-RELEASE-p14 #0: Tue Jul 8 12:41:46 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
nothing more.
2014-08-30: ada0p4 - freebsd-update - let's install the latest update.
root@kg-vm2# freebsd-update install Installing updates... Kernel updates have been installed. Please reboot and run "/usr/sbin/freebsd-update install" again to finish installing updates.
Ok, a reboot then. After the reboot, it does indeed run newer kernel:
tingo@kg-vm2$ uname -a FreeBSD kg-vm2 8.4-RELEASE-p14 FreeBSD 8.4-RELEASE-p14 #0: Tue Jul 8 12:41:46 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
do the rest up the update:
root@kg-vm2# freebsd-update install Installing updates... 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.
Hmm, checking:
root@kg-vm2# pkg_info pkg_info: no packages installed
Ok, no ports installed.
root@kg-vm2# freebsd-update install Installing updates...rmdir: ///usr/src/tools/tools/mfc: No such file or directory rmdir: ///usr/src/tools/tools/backout_commit: No such file or directory rmdir: ///usr/src/tools/diag/ac: No such file or directory rmdir: ///usr/src/sys/dev/xen/evtchn: No such file or directory rmdir: ///usr/src/release/doc/zh_CN.GB2312/share/sgml: No such file or directory rmdir: ///usr/src/release/doc/zh_CN.GB2312/share: No such file or directory rmdir: ///usr/src/release/doc/zh_CN.GB2312/relnotes: No such file or directory rmdir: ///usr/src/release/doc/zh_CN.GB2312/readme: No such file or directory rmdir: ///usr/src/release/doc/zh_CN.GB2312/hardware: No such file or directory rmdir: ///usr/src/release/doc/zh_CN.GB2312/errata: No such file or directory rmdir: ///usr/src/release/doc/zh_CN.GB2312: No such file or directory rmdir: ///usr/src/release/doc/share/sgml: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/share/sgml: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/share/examples: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/share: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/relnotes/sparc64: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/relnotes/pc98: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/relnotes/ia64: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/relnotes/i386: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/relnotes/common: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/relnotes/amd64: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/relnotes/alpha: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/relnotes: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/readme: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/installation/sparc64: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/installation/pc98: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/installation/ia64: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/installation/i386: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/installation/common: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/installation/amd64: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/installation/alpha: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/installation: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/hardware/sparc64: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/hardware/pc98: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/hardware/ia64: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/hardware/i386: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/hardware/common: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/hardware/amd64: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/hardware/alpha: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/hardware: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R/errata: No such file or directory rmdir: ///usr/src/release/doc/ru_RU.KOI8-R: No such file or directory rmdir: ///usr/src/release/doc/ja_JP.eucJP/share/sgml: No such file or directory rmdir: ///usr/src/release/doc/ja_JP.eucJP/share: No such file or directory rmdir: ///usr/src/release/doc/ja_JP.eucJP/relnotes/sparc64: No such file or directory rmdir: ///usr/src/release/doc/ja_JP.eucJP/relnotes/pc98: No such file or directory rmdir: ///usr/src/release/doc/ja_JP.eucJP/relnotes/ia64: No such file or directory rmdir: ///usr/src/release/doc/ja_JP.eucJP/relnotes/i386: No such file or directory rmdir: ///usr/src/release/doc/ja_JP.eucJP/relnotes/common: No such file or directory rmdir: ///usr/src/release/doc/ja_JP.eucJP/relnotes/amd64: No such file or directory rmdir: ///usr/src/release/doc/ja_JP.eucJP/relnotes/alpha: No such file or directory rmdir: ///usr/src/release/doc/ja_JP.eucJP/relnotes: No such file or directory rmdir: ///usr/src/release/doc/ja_JP.eucJP/hardware/sparc64: No such file or directory rmdir: ///usr/src/release/doc/ja_JP.eucJP/hardware/pc98: No such file or directory rmdir: ///usr/src/release/doc/ja_JP.eucJP/hardware/ia64: No such file or directory rmdir: ///usr/src/release/doc/ja_JP.eucJP/hardware/i386: No such file or directory rmdir: ///usr/src/release/doc/ja_JP.eucJP/hardware/common: No such file or directory rmdir: ///usr/src/release/doc/ja_JP.eucJP/hardware/amd64: No such file or directory rmdir: ///usr/src/release/doc/ja_JP.eucJP/hardware/alpha: No such file or directory rmdir: ///usr/src/release/doc/ja_JP.eucJP/hardware: No such file or directory rmdir: ///usr/src/release/doc/ja_JP.eucJP/errata: No such file or directory rmdir: ///usr/src/release/doc/ja_JP.eucJP: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1/share/sgml: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1/share: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1/relnotes/i386: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1/relnotes/common: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1/relnotes/alpha: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1/relnotes: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1/installation/sparc64: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1/installation/pc98: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1/installation/i386: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1/installation/common: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1/installation/alpha: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1/installation: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1/hardware/sparc64: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1/hardware/pc98: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1/hardware/ia64: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1/hardware/i386: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1/hardware/common: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1/hardware/alpha: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1/hardware: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1/errata: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1/early-adopter: No such file or directory rmdir: ///usr/src/release/doc/fr_FR.ISO8859-1: No such file or directory rmdir: ///usr/src/release/doc/en_US.ISO8859-1/share/sgml: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/share/sgml: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/share: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/relnotes/sparc64: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/relnotes/pc98: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/relnotes/ia64: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/relnotes/i386: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/relnotes/common: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/relnotes/alpha: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/relnotes: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/readme: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/installation/sparc64: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/installation/pc98: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/installation/ia64: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/installation/i386: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/installation/common: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/installation/alpha: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/installation: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/hardware/sparc64: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/hardware/pc98: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/hardware/ia64: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/hardware/i386: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/hardware/common: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/hardware/alpha: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/hardware: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/errata: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1/early-adopter: No such file or directory rmdir: ///usr/src/release/doc/de_DE.ISO8859-1: No such file or directory rmdir: ///usr/src/contrib/bind9/bin/rndc/unix: No such file or directory done.
That was freebsd-update.
2014-08-30: ada0p4 - sendmail. For some reason, a few mails hung around in the sendmail queue:
root@kg-vm2# mailq /var/spool/mqueue (6 requests) -----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient----------- s7U6Opkv084349 1765 Sat Aug 30 08:24 MAILER-DAEMON (Deferred: Connection refused by kg-vm2.kg4.no.) <root@kg-vm2.kg4.no> s7U5Opkv084247 1957 Sat Aug 30 07:24 MAILER-DAEMON (Deferred: Connection refused by kg-vm2.kg4.no.) <root@kg-vm2.kg4.no> s7U5Opkw084247 4303 Sat Aug 30 07:24 MAILER-DAEMON (Deferred: Connection refused by kg-vm2.kg4.no.) <root@kg-vm2.kg4.no> s7U2F2ku083918 86 Sat Aug 30 04:15 <root@kg-vm2.kg4.no> (Deferred: Connection refused by kg-vm2.kg4.no.) <root@kg-vm2.kg4.no> s7U112YU083712 276 Sat Aug 30 03:01 <root@kg-vm2.kg4.no> (Deferred: Connection refused by kg-vm2.kg4.no.) <root@kg-vm2.kg4.no> s7U112wS083714 2625 Sat Aug 30 03:01 <root@kg-vm2.kg4.no> (Deferred: Connection refused by kg-vm2.kg4.no.) <root@kg-vm2.kg4.no> Total requests: 6
To get them sent, run a sendmail -q -v:
root@kg-vm2# sendmail -q -v Running /var/spool/mqueue/s7U6Opkv084349 (sequence 1 of 6) <root@kg-vm2.kg4.no>... Connecting to local... 220 kg-vm2 LMTP ready >>> LHLO kg-vm2.kg4.no 250-kg-vm2 250-8BITMIME 250-ENHANCEDSTATUSCODES 250 PIPELINING >>> MAIL From:<> 250 2.5.0 Ok >>> RCPT To:<root> >>> DATA 250 2.1.5 Ok 354 Go ahead >>> . 250 2.1.5 root Ok <root@kg-vm2.kg4.no>... Sent Running /var/spool/mqueue/s7U5Opkv084247 (sequence 2 of 6) >>> RSET 250 2.0.0 Ok <root@kg-vm2.kg4.no>... Using cached LMTP connection for local... >>> MAIL From:<> 250 2.5.0 Ok >>> RCPT To:<root> >>> DATA 250 2.1.5 Ok 354 Go ahead >>> . 250 2.1.5 root Ok <root@kg-vm2.kg4.no>... Sent Running /var/spool/mqueue/s7U5Opkw084247 (sequence 3 of 6) >>> RSET 250 2.0.0 Ok <root@kg-vm2.kg4.no>... Using cached LMTP connection for local... >>> MAIL From:<> 250 2.5.0 Ok >>> RCPT To:<root> >>> DATA 250 2.1.5 Ok 354 Go ahead >>> . 250 2.1.5 root Ok <root@kg-vm2.kg4.no>... Sent Running /var/spool/mqueue/s7U2F2ku083918 (sequence 4 of 6) >>> RSET 250 2.0.0 Ok <root@kg-vm2.kg4.no>... Using cached LMTP connection for local... >>> MAIL From:<root@kg-vm2.kg4.no> 250 2.5.0 Ok >>> RCPT To:<root> >>> DATA 250 2.1.5 Ok 354 Go ahead >>> . 250 2.1.5 root Ok <root@kg-vm2.kg4.no>... Sent Running /var/spool/mqueue/s7U112YU083712 (sequence 5 of 6) >>> RSET 250 2.0.0 Ok <root@kg-vm2.kg4.no>... Using cached LMTP connection for local... >>> MAIL From:<root@kg-vm2.kg4.no> 250 2.5.0 Ok >>> RCPT To:<root> >>> DATA 250 2.1.5 Ok 354 Go ahead >>> . 250 2.1.5 root Ok <root@kg-vm2.kg4.no>... Sent Running /var/spool/mqueue/s7U112wS083714 (sequence 6 of 6) >>> RSET 250 2.0.0 Ok <root@kg-vm2.kg4.no>... Using cached LMTP connection for local... >>> MAIL From:<root@kg-vm2.kg4.no> 250 2.5.0 Ok >>> RCPT To:<root> >>> DATA 250 2.1.5 Ok 354 Go ahead >>> . 250 2.1.5 root Ok <root@kg-vm2.kg4.no>... Sent Closing connection to local >>> QUIT 221 2.0.0 Bye
Nice to get them away.
2014-08-27 ada0p4 - I had completely forgot about freebsd-update. The kind people on the freebsd-ports mailing list reminded me. The easiest way doesn't work:
root@kg-vm2# freebsd-update fetch Looking up update.FreeBSD.org mirrors... 5 mirrors found. Fetching public key from update2.freebsd.org... done. Fetching metadata signature for 8.3-RC2 from update2.freebsd.org... done. Fetching metadata index... done. Fetching 1 metadata files... done. Inspecting system... done. Preparing to download files... done. No updates needed to update system to 8.3-RC2-p0. WARNING: FreeBSD 8.3-RC2 HAS PASSED ITS END-OF-LIFE DATE. Any security issues discovered after Fri May 25 02:00:00 CEST 2012 will not have been corrected.
but perhaps the correct way does?
root@kg-vm2# freebsd-update -r 8.4-RELEASE upgrade Looking up update.FreeBSD.org mirrors... 5 mirrors found. Fetching metadata signature for 8.3-RC2 from update5.freebsd.org... done. Fetching metadata index... done. Fetching 1 metadata files... done. Inspecting system... done. The following components of FreeBSD seem to be installed: kernel/generic src/base src/bin src/cddl src/contrib src/crypto src/etc src/games src/gnu src/include src/krb5 src/lib src/libexec src/release src/rescue src/sbin src/secure src/share src/sys src/tools src/ubin src/usbin world/base world/doc world/games world/lib32 world/manpages The following components of FreeBSD do not seem to be installed: world/catpages world/dict world/info world/proflibs Does this look reasonable (y/n)? y Fetching metadata signature for 8.4-RELEASE from update5.freebsd.org... done. Fetching metadata index... done. Fetching 1 metadata patches. done. Applying metadata patches... done. Fetching 1 metadata files... done. Inspecting system... done. Fetching files from 8.3-RC2 for merging... done. Preparing to download files... done. Fetching 34433 patches.....10....20....30....40....50....60....70....80....90....100....110....120.... 130....140....150....160....170....180....190....200....210....220....230....240....250....260.... 270....280....290....300....310....320....330....340....350....360....370....380....390....400.... 410....420....430....440....450....460....470....480....490....500....510....520....530....540.... 550....560....570....580....590....600....610....620....630....640....650....660....670....680.... 690....700....710....720....730....740....750....760....770....780....790....800....810.... [....] 34230....34240....34250....34260....34270....34280....34290....34300....34310....34320.... 34330....34340....34350....34360....34370....34380....34390....34400....34410....34420....34430. done. Applying patches... done. Fetching 925 files... done. Attempting to automatically merge changes in files... done. The following changes, which occurred between FreeBSD 8.3-RC2 and FreeBSD 8.4-RELEASE have been merged into /etc/dhclient.conf: --- current version +++ new version @@ -1,6 +1,6 @@ -# $FreeBSD: src/etc/dhclient.conf,v 1.3.36.1.8.1 2012/03/03 06:15:13 kensmith Exp $ +# $FreeBSD: release/8.4.0/etc/dhclient.conf 85575 2001-10-27 03:14:37Z rwatson $ # # This file is required by the ISC DHCP client. # See ``man 5 dhclient.conf'' for details. # # In most cases an empty file is sufficient for most people as the Does this look reasonable (y/n)? y [....] /var/db/mergemaster.mtree /var/named/etc/namedb/master/empty.db /var/named/etc/namedb/master/localhost-forward.db /var/named/etc/namedb/master/localhost-reverse.db /var/named/etc/namedb/named.conf /var/named/etc/namedb/named.root /var/yp/Makefile.dist root@kg-vm2#
let's see. I need to do freebsd-update install and test it.
2014-08-26: ada0p4 - and then I find out that the ports tree is broken for FreeBSD 8.3 and earlier, and that without even a warning in /usr/ports/UPDATING. Some people have no respect for POLA.
2014-08-26: ada0p4 - getting a ports tree on the machine via portsnap fetch; portsnap extract. fetch:
root@kg-vm2# portsnap fetch Looking up portsnap.FreeBSD.org mirrors... 7 mirrors found. Fetching public key from ec2-eu-west-1.portsnap.freebsd.org... done. Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done. Fetching snapshot metadata... done. Fetching snapshot generated at Tue Aug 26 02:01:53 CEST 2014: 8c04511aa9c734367b5aa4d0c49a8bd52c7af957c7d719100% of 69 MB 1837 kBps 00m00s Extracting snapshot... done. Verifying snapshot integrity... done. Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done. Fetching snapshot metadata... done. Updating from Tue Aug 26 02:01:53 CEST 2014 to Tue Aug 26 21:03:07 CEST 2014. Fetching 4 metadata patches... done. Applying metadata patches... done. Fetching 0 metadata files... done. Fetching 312 patches.....10....20....30....40....50....60....70....80....90....100....110....120....130....140....150....160....170....180....190....200....210....220....230....240....250....260....270....280....290....300....310. done. Applying patches... done. Fetching 4 new ports or files... done.
extract it:
root@kg-vm2# portsnap extract [...] /usr/ports/x11/yelp/ /usr/ports/x11/zenity/ Building new INDEX files... done.
done.
2014-08-26: ada0p4 - I had to manually set rootdev to ufs:/dev/ad4p4 in order to boot. Booted:
root@kg-vm2# uname -a FreeBSD kg-vm2 8.3-RC2 FreeBSD 8.3-RC2 #0: Sat Mar 24 16:15:47 UTC 2012 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 root@kg-vm2# swapinfo -h Device 1K-blocks Used Avail Capacity root@kg-vm2# df -h Filesystem Size Used Avail Capacity Mounted on /dev/ad4p4 56G 1.3G 50G 3% / devfs 1.0k 1.0k 0B 100% /dev
Hmm, ah ok, I need to load ahci:
root@kg-vm2# more /boot/loader.conf ahci_load="YES"
good.
2014-08-26: ada0p2 - the machine now runs latest FreeBSD 9.3-stable. dmesg output: normal, verbose.
tingo@kg-vm2$ uname -a FreeBSD kg-vm2 9.3-STABLE FreeBSD 9.3-STABLE #1 r270626: Tue Aug 26 00:47:59 CEST 2014 root@kg-vm2:/usr/obj/usr/src/sys/GENERIC amd64
nothing more.
2014-08-26: ada0p2 - build latest FreeBSD 9-stable via make world - install phase: (I am running this multiuser)
root@kg-vm2# pwd /usr/src root@kg-vm2# mergemaster -p merging a few changes in group and passwd files. root@kg-vm2# make installworld [...] install -s -o root -g wheel -m 555 ldd32 /usr/bin/ldd32
next remove old stuff
root@kg-vm2# make delete-old >>> Removing old files (only deletes safe to delete libs) remove /usr/share/man/man9/VOP_GETVOBJECT.9.gz? y remove /usr/share/man/man9/VOP_CREATEVOBJECT.9.gz? y remove /usr/share/man/man9/VOP_DESTROYVOBJECT.9.gz? y remove /usr/bin/sendbug? y remove /usr/share/info/send-pr.info.gz? y remove /usr/share/man/man1/send-pr.1.gz? y remove /usr/share/man/man1/sendbug.1.gz? y remove /etc/gnats/freefall? y remove /usr/lib/libssh.a? y remove /usr/lib/libssh.so? y remove /usr/lib/libssh_p.a? y remove /usr/lib32/libssh.a? y remove /usr/lib32/libssh.so? y remove /usr/lib32/libssh_p.a? y remove /usr/share/man/man2/extattr_delete_list.2.gz? y remove /usr/share/man/man2/extattr_get_list.2.gz? y remove /usr/share/man/man9/vfs_mount.9.gz? y remove /usr/share/man/man4/vinum.4.gz? y remove /usr/share/examples/cvsup/ports-supfile? y remove /usr/share/examples/cvsup/refuse? y remove /usr/share/examples/cvsup/refuse.README? y remove /usr/share/man/en.ISO8859-1/man1aout? y remove /usr/share/man/en.UTF-8/man1aout? y remove /etc/auth.conf? y remove /usr/share/examples/etc/auth.conf? y remove /usr/share/man/man3/auth.3.gz? y remove /usr/share/man/man5/auth.conf.5.gz? y remove /usr/include/clang/3.0/altivec.h? y remove /usr/include/clang/3.0/avxintrin.h? y remove /usr/include/clang/3.0/emmintrin.h? y remove /usr/include/clang/3.0/immintrin.h? y remove /usr/include/clang/3.0/mm3dnow.h? y remove /usr/include/clang/3.0/mm_malloc.h? y remove /usr/include/clang/3.0/mmintrin.h? y remove /usr/include/clang/3.0/nmmintrin.h? y remove /usr/include/clang/3.0/pmmintrin.h? y remove /usr/include/clang/3.0/smmintrin.h? y remove /usr/include/clang/3.0/tmmintrin.h? y remove /usr/include/clang/3.0/wmmintrin.h? y remove /usr/include/clang/3.0/x86intrin.h? y remove /usr/include/clang/3.0/xmmintrin.h? y remove /usr/share/man/man9/net_add_domain.9.gz? y >>> Old files removed >>> Removing old directories /etc/gnats /usr/share/man/man1aout /usr/share/man/cat1aout /usr/share/man/en.ISO8859-1/cat1aout /usr/share/man/en.UTF-8/cat1aout /usr/include/clang/3.0 /usr/include/c++/v1/experimental /usr/include/c++/v1/ext /usr/include/c++/v1 >>> Old directories removed To remove old libraries run 'make delete-old-libs'.
do it
root@kg-vm2# make delete-old-libs >>> Removing old libraries Please be sure no application still uses those libraries, else you can not start such an application. Consult UPDATING for more information regarding how to cope with the removal/revision bump of a specific library. remove /usr/lib/libssh.so.5? y remove /usr/lib32/libssh.so.5? y >>> Old libraries removed
run mergemaster
root@kg-vm2# mergemaster -iUP [...] *** Reinstalling Europe/Oslo as /etc/localtime
ok, only a reboot remains.
2014-08-25: ada0p2 - build latest FreeBSD 9-stable via make world:
root@kg-vm2# cd /usr/src root@kg-vm2# make -j5 buildworld [...] -------------------------------------------------------------- >>> World build completed on Tue Aug 26 00:33:55 CEST 2014 -------------------------------------------------------------- root@kg-vm2#
and
root@kg-vm2# make kernel [...] ===> zlib (install) install -o root -g wheel -m 555 zlib.ko /boot/kernel install -o root -g wheel -m 555 zlib.ko.symbols /boot/kernel kldxref /boot/kernel
next is the install phase.
2014-08-25: ada0p2 - update source to latest FreeBSD 9-stable via subversion. current source is old:
root@kg-vm2# egrep "^BRANCH|^REVISION" /usr/src/sys/conf/newvers.sh REVISION="9.0" BRANCH="STABLE"
get the old one out of the way:
root@kg-vm2# mv /usr/src /usr/src_old_2012
fetch new:
root@kg-vm2# svn checkout svn://svn.FreeBSD.org/base/stable/9 /usr/src [...] A /usr/src/cddl/lib/drti A /usr/src/cddl/lib/drti/Makefile A /usr/src/ObsoleteFiles.inc U /usr/src Checked out revision 270626.
check that we got the right version
root@kg-vm2# egrep "^BRANCH|^REVISION" /usr/src/sys/conf/newvers.sh REVISION="9.3" BRANCH="STABLE"
looks good.
2014-08-25: ada0p2 - ports - install subversion:
root@kg-vm2# portinstall -R subversion ---> Found 2 ports matching 'subversion': devel/subversion16 devel/subversion Install 'devel/subversion16'? [yes] no Install 'devel/subversion'? [yes] yes [...] ===> Compressing manual pages for subversion-1.7.4_1 ===> Registering installation for subversion-1.7.4_1 ===> Cleaning for subversion-1.7.4_1
done.
2014-08-25: ada0p2 - booting still works:
root@kg-vm2# uname -a FreeBSD kg-vm2 9.0-STABLE FreeBSD 9.0-STABLE #0: Sat Mar 24 19:39:15 CET 2012 root@kg-vm2:/usr/obj/usr/src/sys/GENERIC amd64 root@kg-vm2# swapinfo -h Device 1K-blocks Used Avail Capacity /dev/ada0p3 4194304 0B 4.0G 0% root@kg-vm2# df -h Filesystem Size Used Avail Capacity Mounted on /dev/ada0p2 56G 6.7G 44G 13% / devfs 1.0k 1.0k 0B 100% /dev
That is it.