Asus F2A55-M - FreeBSD - 2015 archive
back to main FreeBSD page for this machine.
2015 archive.
2015-11-14: ada0p4: change of firewall duly noted in /var/log/messages:
Nov 14 13:48:26 kg-quiet kernel: arp: 10.1.10.1 moved from 00:10:4b:e3:38:8b to 80:ee:73:60:61:0c on re0
that's all.
2015-10-18: ada0p4 - interesting messages in /var/log/messages:
Oct 18 14:26:36 kg-quiet kernel: swap zone exhausted, increase kern.maxswzone Oct 18 14:26:36 kg-quiet kernel: pid 77513 (sshfs), uid 1001, was killed: out of swap space Oct 18 14:34:58 kg-quiet kernel: swap zone exhausted, increase kern.maxswzone Oct 18 14:34:58 kg-quiet kernel: pid 85137 (amule), uid 1001, was killed: out of swap space Oct 18 14:34:58 kg-quiet kernel: swap zone exhausted, increase kern.maxswzone Oct 18 14:34:58 kg-quiet kernel: pid 93737 (firefox-bin), uid 1001, was killed: out of swap space
when I checked the machine (quite a few hours later than these messages, it had used 1 out of 18 G swap space:
Device 1K-blocks Used Avail Capacity /dev/ada0p1 18874368 1.0G 17G 6%
and kern.maxswzone is:
root@kg-quiet# date;sysctl kern.maxswzone Mon Oct 19 01:09:47 CEST 2015 kern.maxswzone: 33554432 root@kg-quiet# sysctl -d kern.maxswzone kern.maxswzone: Maximum memory for swap metadata
I don't know what it should be, and I don't know which process ate all the swap.
2015-08-03: ada0p4 - aMule crashes:
tingo@kg-quiet$ amule 2015-08-03 22:14:03: Initialising aMule 2.3.1 compiled with wxGTK2 v2.8.12 2015-08-03 22:14:03: Checking if there is an instance already running... 2015-08-03 22:14:03: No other instances are running. aMule Version: aMule 2.3.1 compiled with wxGTK2 v2.8.12 Terminated after throwing an instance of 'CEOFException' what(): SafeIO::EOF: Attempt to read past end of file. --== no BACKTRACE for your platform ==-- backtrace: Abort trap (core dumped)
I guess statistics.dat is zero again:
tingo@kg-quiet$ ll ~/.aMule/stat* -rw-r--r-- 1 tingo users - 223 Jul 14 2014 /home/tingo/.aMule/staticservers.dat -rw-r--r-- 1 tingo users - 0 Jul 23 01:29 /home/tingo/.aMule/statistics.dat
fix by removing it:
tingo@kg-quiet$ rm ~/.aMule/statistics.dat
yes, that fixed it.
2015-08-03: ada0p3 - set bootonce for booting from ada0p4:
root@kg-quiet# gpart set -a bootonce -i 4 ada0 bootonce set on ada0p4
ok.
2015-08-02: ada0p3 - FreeBSD 9.3-stable now running - dmesg output: normal, verbose.
root@kg-quiet# uname -a FreeBSD kg-quiet.kg4.no 9.3-STABLE FreeBSD 9.3-STABLE #0 r286210: Sun Aug 2 23:01:05 CEST 2015 root@kg-quiet.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64 root@kg-quiet# date;swapinfo -h;echo " ";df -h;echo " ";uptime Sun Aug 2 23:35:51 CEST 2015 Device 1K-blocks Used Avail Capacity /dev/ada0p1 18874368 0B 18G 0% Filesystem Size Used Avail Capacity Mounted on /dev/ada0p3 145G 7.9G 125G 6% / devfs 1.0k 1.0k 0B 100% /dev 11:35PM up 3 mins, 2 users, load averages: 0.16, 0.34, 0.17
ok.
2015-08-02: ada0p3 - update to FreeBSD 9.3-stable via make buildworld:
root@kg-quiet# cd /usr/src root@kg-quiet# make -j4 buildworld [...] -------------------------------------------------------------- >>> World build completed on Sun Aug 2 22:34:33 CEST 2015 -------------------------------------------------------------- root@kg-quiet# 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
doing the rest in multiuser too.
root@kg-quiet# 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 *** Reinstalling Europe/Oslo as /etc/localtime *** Comparing make variables *** From /etc/make.conf *** From /usr/src/share/examples/etc/make.conf
install world
root@kg-quiet# make installworld [...] install -s -o root -g wheel -m 555 ldd32 /usr/bin/ldd32
delete old stuff
root@kg-quiet# make delete-old >>> Removing old files (only deletes safe to delete libs) remove /usr/share/man/man9/sleepq_calc_signal_retval.9.gz? y remove /usr/share/man/man9/sleepq_catch_signals.9.gz? y 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 /usr/include/clang/3.1/altivec.h? y remove /usr/include/clang/3.1/avx2intrin.h? y remove /usr/include/clang/3.1/avxintrin.h? y remove /usr/include/clang/3.1/bmi2intrin.h? y remove /usr/include/clang/3.1/bmiintrin.h? y remove /usr/include/clang/3.1/cpuid.h? y remove /usr/include/clang/3.1/emmintrin.h? y remove /usr/include/clang/3.1/fma4intrin.h? y remove /usr/include/clang/3.1/immintrin.h? y remove /usr/include/clang/3.1/lzcntintrin.h? y remove /usr/include/clang/3.1/mm3dnow.h? y remove /usr/include/clang/3.1/mm_malloc.h? y remove /usr/include/clang/3.1/mmintrin.h? y remove /usr/include/clang/3.1/module.map? y remove /usr/include/clang/3.1/nmmintrin.h? y remove /usr/include/clang/3.1/pmmintrin.h? y remove /usr/include/clang/3.1/popcntintrin.h? y remove /usr/include/clang/3.1/smmintrin.h? y remove /usr/include/clang/3.1/tmmintrin.h? y remove /usr/include/clang/3.1/unwind.h? y remove /usr/include/clang/3.1/wmmintrin.h? y remove /usr/include/clang/3.1/x86intrin.h? y remove /usr/include/clang/3.1/xmmintrin.h? 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.1 /usr/include/c++/v1/experimental /usr/include/c++/v1/ext rmdir: /usr/include/c++/v1: Directory not empty >>> Old directories removed To remove old libraries run 'make delete-old-libs'. root@kg-quiet# 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
mergemaster
root@kg-quiet# mergemaster -iUP [...] *** You chose the automatic upgrade option for files that you did not alter on your system. The following were upgraded for you: /.cshrc /COPYRIGHT /boot/device.hints /etc/amd.map /etc/apmd.conf /etc/bluetooth/hcsecd.conf /etc/bluetooth/hosts /etc/bluetooth/protocols /etc/crontab /etc/csh.cshrc /etc/csh.login /etc/csh.logout /etc/ddb.conf /etc/defaults/bluetooth.device.conf /etc/defaults/devfs.rules /etc/defaults/periodic.conf /etc/defaults/rc.conf /etc/devd.conf /etc/devd/asus.conf /etc/devd/uath.conf /etc/devd/usb.conf /etc/devfs.conf /etc/disktab /etc/fbtab /etc/freebsd-update.conf /etc/ftpusers /etc/gettytab /etc/gss/mech /etc/gss/qop /etc/hosts /etc/hosts.allow /etc/hosts.equiv /etc/hosts.lpd /etc/inetd.conf /etc/libalias.conf /etc/locate.rc /etc/login.access /etc/login.conf /etc/mac.conf /etc/mail/Makefile /etc/mail/README /etc/mail/access.sample /etc/mail/aliases /etc/mail/freebsd.mc /etc/mail/freebsd.submit.mc /etc/mail/helpfile /etc/mail/mailer.conf /etc/mail/mailertable.sample /etc/mail/virtusertable.sample /etc/mtree/BIND.chroot.dist /etc/mtree/BSD.include.dist /etc/mtree/BSD.root.dist /etc/mtree/BSD.sendmail.dist /etc/mtree/BSD.usr.dist /etc/mtree/BSD.var.dist /etc/netconfig /etc/netstart /etc/network.subr /etc/networks /etc/newsyslog.conf /etc/nscd.conf /etc/nsmb.conf /etc/nsswitch.conf /etc/ntp.conf /etc/opieaccess /etc/pam.d/README /etc/pam.d/atrun /etc/pam.d/cron /etc/pam.d/ftp /etc/pam.d/ftpd /etc/pam.d/imap /etc/pam.d/kde /etc/pam.d/login /etc/pam.d/other /etc/pam.d/passwd /etc/pam.d/pop3 /etc/pam.d/rsh /etc/pam.d/sshd /etc/pam.d/su /etc/pam.d/system /etc/pam.d/telnetd /etc/pam.d/xdm /etc/pccard_ether /etc/periodic/daily/100.clean-disks /etc/periodic/daily/110.clean-tmps /etc/periodic/daily/120.clean-preserve /etc/periodic/daily/130.clean-msgs /etc/periodic/daily/140.clean-rwho /etc/periodic/daily/150.clean-hoststat /etc/periodic/daily/200.backup-passwd /etc/periodic/daily/210.backup-aliases /etc/periodic/daily/220.backup-pkgdb /etc/periodic/daily/300.calendar /etc/periodic/daily/310.accounting /etc/periodic/daily/330.news /etc/periodic/daily/400.status-disks /etc/periodic/daily/404.status-zfs /etc/periodic/daily/405.status-ata-raid /etc/periodic/daily/406.status-gmirror /etc/periodic/daily/407.status-graid3 /etc/periodic/daily/408.status-gstripe /etc/periodic/daily/409.status-gconcat /etc/periodic/daily/420.status-network /etc/periodic/daily/430.status-rwho /etc/periodic/daily/440.status-mailq /etc/periodic/daily/450.status-security /etc/periodic/daily/460.status-mail-rejects /etc/periodic/daily/470.status-named /etc/periodic/daily/480.status-ntpd /etc/periodic/daily/490.status-pkg-changes /etc/periodic/daily/500.queuerun /etc/periodic/daily/800.scrub-zfs /etc/periodic/daily/999.local /etc/periodic/monthly/200.accounting /etc/periodic/monthly/999.local /etc/periodic/security/100.chksetuid /etc/periodic/security/110.neggrpperm /etc/periodic/security/200.chkmounts /etc/periodic/security/300.chkuid0 /etc/periodic/security/400.passwdless /etc/periodic/security/410.logincheck /etc/periodic/security/460.chkportsum /etc/periodic/security/500.ipfwdenied /etc/periodic/security/510.ipfdenied /etc/periodic/security/520.pfdenied /etc/periodic/security/550.ipfwlimit /etc/periodic/security/610.ipf6denied /etc/periodic/security/700.kernelmsg /etc/periodic/security/800.loginfail /etc/periodic/security/900.tcpwrap /etc/periodic/security/security.functions /etc/periodic/weekly/310.locate /etc/periodic/weekly/320.whatis /etc/periodic/weekly/330.catman /etc/periodic/weekly/340.noid /etc/periodic/weekly/400.status-pkg /etc/periodic/weekly/999.local /etc/pf.os /etc/phones /etc/portsnap.conf /etc/ppp/ppp.conf /etc/printcap /etc/profile /etc/protocols /etc/rc /etc/rc.bsdextended /etc/rc.d/DAEMON /etc/rc.d/FILESYSTEMS /etc/rc.d/LOGIN /etc/rc.d/NETWORKING /etc/rc.d/SERVERS /etc/rc.d/abi /etc/rc.d/accounting /etc/rc.d/addswap /etc/rc.d/adjkerntz /etc/rc.d/amd /etc/rc.d/apm /etc/rc.d/apmd /etc/rc.d/archdep /etc/rc.d/atm1 /etc/rc.d/atm2 /etc/rc.d/atm3 /etc/rc.d/auditd /etc/rc.d/bgfsck /etc/rc.d/bluetooth /etc/rc.d/bootparams /etc/rc.d/bridge /etc/rc.d/bsnmpd /etc/rc.d/bthidd /etc/rc.d/ccd /etc/rc.d/cleanvar /etc/rc.d/cleartmp /etc/rc.d/cron /etc/rc.d/ddb /etc/rc.d/defaultroute /etc/rc.d/devd /etc/rc.d/devfs /etc/rc.d/dhclient /etc/rc.d/dmesg /etc/rc.d/dumpon /etc/rc.d/encswap /etc/rc.d/faith /etc/rc.d/fsck /etc/rc.d/ftp-proxy /etc/rc.d/ftpd /etc/rc.d/gbde /etc/rc.d/geli /etc/rc.d/geli2 /etc/rc.d/gptboot /etc/rc.d/gssd /etc/rc.d/hastd /etc/rc.d/hcsecd /etc/rc.d/hostapd /etc/rc.d/hostid /etc/rc.d/hostid_save /etc/rc.d/hostname /etc/rc.d/inetd /etc/rc.d/initrandom /etc/rc.d/ip6addrctl /etc/rc.d/ipfilter /etc/rc.d/ipfs /etc/rc.d/ipfw /etc/rc.d/ipmon /etc/rc.d/ipnat /etc/rc.d/ipsec /etc/rc.d/ipxrouted /etc/rc.d/jail /etc/rc.d/kadmind /etc/rc.d/kerberos /etc/rc.d/keyserv /etc/rc.d/kld /etc/rc.d/kldxref /etc/rc.d/kpasswdd /etc/rc.d/ldconfig /etc/rc.d/local /etc/rc.d/localpkg /etc/rc.d/lockd /etc/rc.d/lpd /etc/rc.d/mdconfig /etc/rc.d/mdconfig2 /etc/rc.d/mixer /etc/rc.d/motd /etc/rc.d/mountcritlocal /etc/rc.d/mountcritremote /etc/rc.d/mountd /etc/rc.d/mountlate /etc/rc.d/moused /etc/rc.d/mroute6d /etc/rc.d/mrouted /etc/rc.d/msgs /etc/rc.d/named /etc/rc.d/natd /etc/rc.d/netif /etc/rc.d/netoptions /etc/rc.d/netwait /etc/rc.d/newsyslog /etc/rc.d/nfscbd /etc/rc.d/nfsclient /etc/rc.d/nfsd /etc/rc.d/nfsuserd /etc/rc.d/nisdomain /etc/rc.d/nscd /etc/rc.d/nsswitch /etc/rc.d/ntpd /etc/rc.d/ntpdate /etc/rc.d/othermta /etc/rc.d/pf /etc/rc.d/pflog /etc/rc.d/pfsync /etc/rc.d/power_profile /etc/rc.d/powerd /etc/rc.d/ppp /etc/rc.d/pppoed /etc/rc.d/pwcheck /etc/rc.d/quota /etc/rc.d/random /etc/rc.d/rarpd /etc/rc.d/rctl /etc/rc.d/resolv /etc/rc.d/rfcomm_pppd_server /etc/rc.d/root /etc/rc.d/route6d /etc/rc.d/routed /etc/rc.d/routing /etc/rc.d/rpcbind /etc/rc.d/rtadvd /etc/rc.d/rtsold /etc/rc.d/rwho /etc/rc.d/savecore /etc/rc.d/sdpd /etc/rc.d/securelevel /etc/rc.d/sendmail /etc/rc.d/serial /etc/rc.d/sppp /etc/rc.d/sshd /etc/rc.d/statd /etc/rc.d/static_arp /etc/rc.d/static_ndp /etc/rc.d/stf /etc/rc.d/swap1 /etc/rc.d/syscons /etc/rc.d/sysctl /etc/rc.d/syslogd /etc/rc.d/timed /etc/rc.d/tmp /etc/rc.d/ubthidhci /etc/rc.d/ugidfw /etc/rc.d/var /etc/rc.d/virecover /etc/rc.d/watchdogd /etc/rc.d/wpa_supplicant /etc/rc.d/ypbind /etc/rc.d/yppasswdd /etc/rc.d/ypserv /etc/rc.d/ypset /etc/rc.d/ypupdated /etc/rc.d/ypxfrd /etc/rc.d/zfs /etc/rc.d/zvol /etc/rc.firewall /etc/rc.initdiskless /etc/rc.resume /etc/rc.sendmail /etc/rc.shutdown /etc/rc.subr /etc/rc.suspend /etc/regdomain.xml /etc/remote /etc/rpc /etc/security/audit_class /etc/security/audit_control /etc/security/audit_event /etc/security/audit_user /etc/security/audit_warn /etc/services /etc/shells /etc/snmpd.config /etc/ssh/moduli /etc/ssh/ssh_config /etc/ssh/sshd_config /etc/ssl/openssl.cnf /etc/sysctl.conf /etc/syslog.conf /etc/termcap.small /etc/ttys /root/.k5login /root/.login /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 *** 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] *** Cancelled Make sure to run /usr/bin/newaliases yourself *** 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 root@kg-quiet# /usr/bin/newaliases /etc/mail/aliases: 29 aliases, longest 10 bytes, 297 bytes total
ready for reboot.
2015-08-02: ada0p3 - checkout source via subversion:
root@kg-quiet# svn co https://svn.FreeBSD.org/base/stable/9 /usr/src Error validating server certificate for 'https://svn.freebsd.org:443': - The certificate is not issued by a trusted authority. Use the fingerprint to validate the certificate manually! Certificate information: - Hostname: svn.freebsd.org - Valid: from Jun 22 00:00:00 2015 GMT until Jun 22 23:59:59 2016 GMT - Issuer: Gandi, Paris, Paris, FR - Fingerprint: E9:37:73:80:B5:32:1B:93:92:94:98:17:59:F0:FA:A2:5F:1E:DE:B9 (R)eject, accept (t)emporarily or accept (p)ermanently? p A /usr/src/include A /usr/src/include/protocols A /usr/src/include/rpc A /usr/src/include/assert.h A /usr/src/include/nsswitch.h [...] svn: E000054: Error retrieving REPORT: Connection reset by peer root@kg-quiet# svn co https://svn.FreeBSD.org/base/stable/9 /usr/src svn: E155004: Run 'svn cleanup' to remove locks (type 'svn help cleanup' for details) svn: E155004: Working copy '/usr/src' locked. svn: E155004: '/usr/src' is already locked. root@kg-quiet# svn cleanup /usr/src
then repeat the checkout. Many, many tries later, I see:
A /usr/src/kerberos5/libexec/Makefile A /usr/src/kerberos5/libexec/ipropd-slave/Makefile U /usr/src Checked out revision 286210.
Finally! Did we get the correct version?
root@kg-quiet# egrep "^BRANCH|^REVISION" /usr/src/sys/conf/newvers.sh REVISION="9.3" BRANCH="STABLE"
Yep.
2015-08-02: ada0p3 - update source via svnup:
root@kg-quiet# svnup stable svnup: No mirror specified. Please uncomment the preferred SVN mirror in /usr/local/etc/svnup.conf.
retry after fixing that:
root@kg-quiet# svnup stable # Revision: 286192 [...] + /usr/src/sys/dev/usb/serial/uftdi_reg.h + /usr/src/sys/dev/usb/serial/uvscom.c svnup: Error in http stream:
rerun it. After many reruns, it looks like it will never complete successfully. Time to install the real subversion.
2015-08-02: ada0p3 - ports - install svnup to update source.
root@kg-quiet# cd /usr/ports/net/svnup root@kg-quiet# make install clean
ok.
2015-08-02: ada0p3 - updating ports tree via portsnap fetch, portsnap update
.
root@kg-quiet# 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 Sun Aug 2 02:07:37 CEST 2015: 2075b00fbc46603746c0125a430ca9d29ea4fea82e39ab100% of 76 MB 2008 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 Sun Aug 2 02:07:37 CEST 2015 to Sun Aug 2 10:39:29 CEST 2015. Fetching 4 metadata patches... done. Applying metadata patches... done. Fetching 0 metadata files... done. Fetching 15 patches.....10.. done. Applying patches... done. Fetching 0 new ports or files... done. root@kg-quiet# portsnap update /usr/ports was not created by portsnap. You must run 'portsnap extract' before running 'portsnap update'.
ok, do that then.
2015-08-02: ada0p4 - I had to run fsck manually on the data drives (ada1, ada2 and ada3) from single user to get rid of a panic.
2015-08-02: ada0p4 - after the reboot, fsck checks and corrects the disks, /var/log/messages indicates that the psu failed sometime on July 23rd 2015:
Jul 22 21:18:00 kg-quiet sshd[30439]: error: PAM: authentication error for root from 123.30.171.144 Jul 22 21:18:04 kg-quiet sshd[30442]: error: PAM: authentication error for root from 123.30.171.144 Jul 22 21:52:20 kg-quiet sshd[30507]: fatal: Read from socket failed: Connection reset by peer [preauth] Jul 23 01:06:35 kg-quiet sshd[30886]: fatal: Read from socket failed: Connection reset by peer [preauth] Aug 2 00:23:07 kg-quiet syslogd: kernel boot file is /boot/kernel/kernel
last says:
root@kg-quiet# last tingo pts/0 kg-core1.kg4.no Sun Aug 2 00:23 still logged in root ttyv0 Sun Aug 2 00:23 still logged in reboot ~ Sun Aug 2 00:23 tingo pts/5 kg-core1.kg4.no Sat Jul 4 22:50 - crash (28+01:33) tingo pts/4 :0.0 Sat Jul 4 22:41 - crash (28+01:41) tingo pts/4 :0.0 Sat Jul 4 22:41 - 22:41 (00:00) tingo pts/3 :0.0 Sat Jul 4 22:41 - crash (28+01:41) tingo pts/3 :0.0 Sat Jul 4 22:41 - 22:41 (00:00) tingo pts/2 :0.0 Sat Jul 4 22:41 - crash (28+01:41) tingo pts/2 :0.0 Sat Jul 4 22:41 - 22:41 (00:00) tingo pts/1 :0.0 Sat Jul 4 22:41 - crash (28+01:41) tingo pts/1 :0.0 Sat Jul 4 22:41 - 22:41 (00:00) tingo pts/0 :0.0 Sat Jul 4 22:41 - crash (28+01:41) tingo pts/0 :0.0 Sat Jul 4 22:41 - 22:41 (00:00) tingo ttyv1 Sat Jul 4 22:41 - crash (28+01:41) root ttyv0 Sat Jul 4 22:41 - crash (28+01:41) reboot ~ Sat Jul 4 22:41 shutdown ~ Sat Jul 4 22:36 wtmp begins Sat Jul 4 22:36:54 CEST 2015
not that useful. mail says:
root@kg-quiet# mail Mail version 8.1 6/6/93. Type ? for help. "/var/mail/root": 23 messages 23 new >N 1 root@kg-quiet.kg4.no Sun Jul 12 03:02 2662/313984 "kg-quiet.kg4.no security run output" N 2 root@kg-quiet.kg4.no Sun Jul 12 03:02 80/3084 "kg-quiet.kg4.no daily run output" N 3 root@kg-quiet.kg4.no Mon Jul 13 03:01 4232/422616 "kg-quiet.kg4.no security run output" N 4 root@kg-quiet.kg4.no Mon Jul 13 03:01 80/3084 "kg-quiet.kg4.no daily run output" N 5 root@kg-quiet.kg4.no Tue Jul 14 03:01 183/15093 "kg-quiet.kg4.no security run output" N 6 root@kg-quiet.kg4.no Tue Jul 14 03:01 80/3084 "kg-quiet.kg4.no daily run output" N 7 root@kg-quiet.kg4.no Wed Jul 15 03:01 668/60306 "kg-quiet.kg4.no security run output" N 8 root@kg-quiet.kg4.no Wed Jul 15 03:01 80/3085 "kg-quiet.kg4.no daily run output" N 9 root@kg-quiet.kg4.no Thu Jul 16 03:01 498/43893 "kg-quiet.kg4.no security run output" N 10 root@kg-quiet.kg4.no Thu Jul 16 03:01 80/3085 "kg-quiet.kg4.no daily run output" N 11 root@kg-quiet.kg4.no Fri Jul 17 03:01 325/31845 "kg-quiet.kg4.no security run output" N 12 root@kg-quiet.kg4.no Fri Jul 17 03:01 80/3085 "kg-quiet.kg4.no daily run output" N 13 root@kg-quiet.kg4.no Sat Jul 18 03:01 454/43939 "kg-quiet.kg4.no security run output" N 14 root@kg-quiet.kg4.no Sat Jul 18 03:01 80/3085 "kg-quiet.kg4.no daily run output" N 15 root@kg-quiet.kg4.no Sat Jul 18 04:15 23/779 "kg-quiet.kg4.no weekly run output" N 16 root@kg-quiet.kg4.no Sun Jul 19 03:01 1956/229525 "kg-quiet.kg4.no security run output" N 17 root@kg-quiet.kg4.no Sun Jul 19 03:01 80/3085 "kg-quiet.kg4.no daily run output" N 18 root@kg-quiet.kg4.no Mon Jul 20 03:01 468/60485 "kg-quiet.kg4.no security run output" N 19 root@kg-quiet.kg4.no Mon Jul 20 03:01 80/3085 "kg-quiet.kg4.no daily run output" N 20 root@kg-quiet.kg4.no Tue Jul 21 03:01 1507/207364 "kg-quiet.kg4.no security run output" N 21 root@kg-quiet.kg4.no Tue Jul 21 03:01 80/3085 "kg-quiet.kg4.no daily run output" N 22 root@kg-quiet.kg4.no Wed Jul 22 03:01 3158/332407 "kg-quiet.kg4.no security run output" N 23 root@kg-quiet.kg4.no Wed Jul 22 03:01 80/3085 "kg-quiet.kg4.no daily run output" &
confirming my initial analysis.
2015-08-02: ada0p3 - set bootonce for or ada0p4 boot:
root@kg-quiet# gpart set -a bootonce -i 4 ada0 bootonce set on ada0p4
then reboot.
2015-07-04: ada0p4 - collecting info before a reboot, some processes are stuck, probably due to sshfs hangs, due to network error.
root@kg-quiet# uname -a FreeBSD kg-quiet.kg4.no 8.4-STABLE FreeBSD 8.4-STABLE #4: Fri Jun 21 20:57:59 CEST 2013 root@kg-quiet.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64 root@kg-quiet# date;swapinfo -h;echo " ";df -h;echo " ";uptime Sat Jul 4 22:29:59 CEST 2015 Device 1K-blocks Used Avail Capacity /dev/ada0p1 18874368 0B 18G 0% Filesystem Size Used Avail Capacity Mounted on /dev/ada0p4 145G 22G 110G 17% / devfs 1.0k 1.0k 0B 100% /dev procfs 4.0k 4.0k 0B 100% /proc /dev/ada1p1 2.7T 1.2T 1.2T 49% /d1 /dev/ada2p1 2.7T 1.6T 867G 65% /d2 /dev/ada3p1 2.7T 2.4T 32G 99% /d3 10:29PM up 139 days, 3:27, 8 users, load averages: 0.03, 0.08, 0.26
that's it. Wait - how about boot partition?
root@kg-quiet# gpart show -p ada0 => 34 1953525101 ada0 GPT (931G) 34 6 - free - (3.0k) 40 37748736 ada0p1 freebsd-swap (18G) 37748776 128 ada0p2 freebsd-boot (64k) 37748904 314572664 ada0p3 freebsd-ufs (150G) 352321568 314572800 ada0p4 freebsd-ufs (150G) 666894368 314572800 ada0p5 freebsd-ufs (150G) 981467168 125829120 ada0p6 freebsd-ufs (60G) 1107296288 846228847 - free - (403G)
set it:
root@kg-quiet# gpart set -a bootonce -i 4 ada0 bootonce set on ada0p4
check:
root@kg-quiet# gpart show -p ada0 => 34 1953525101 ada0 GPT (931G) 34 6 - free - (3.0k) 40 37748736 ada0p1 freebsd-swap (18G) 37748776 128 ada0p2 freebsd-boot (64k) 37748904 314572664 ada0p3 freebsd-ufs (150G) 352321568 314572800 ada0p4 freebsd-ufs [bootonce,bootme] (150G) 666894368 314572800 ada0p5 freebsd-ufs (150G) 981467168 125829120 ada0p6 freebsd-ufs (60G) 1107296288 846228847 - free - (403G)
that's better.