Asus M5A78L-M / USB3 - FreeBSD

Hardware info on main page.

The machine runs the 64 bit (amd64) version of FreeBSD.

The first sata drive (ad4, 500 GB) is sliced up like this:

 slice 1 (ad4s1) - 120 GB - a FreeBSD install (RELENG_7)
 slice 2 (ad4s2) - 120 GB - a NetBSD install
 slice 3 (ad4s3) - 111 GB - a FreeBSD install, currently FreeBSD 10.3-stable (was: RELENG_6)
 slice 4 (ad4s4) - 111 GB - a FreeBSD install (RELENG_8)
root@kg-vm# gpart show -p ad4
=>       63  976773105    ad4  MBR  (465G)
         63  253746612  ad4s1  freebsd  (121G)
  253746675  253746675  ad4s2  !169  (121G)
  507493350  234870300  ad4s3  freebsd  (112G)
  742363650  234409518  ad4s4  freebsd  [active]  (111G)

Linux is installed on the second sata drive (ad8, 320 GB)

 partition 1 - sdb1 - 72 GB (yaVDR)
 partition 2 - sdb2 - extended
                   sdb5 - swap - 9 GB
 partition 3 - sdb3 - 72 GB (Xubuntu 10.10  - i386)
 partition 4 -
root@kg-vm# gpart show -p ad8
=>       63  625142385    ad8  MBR  (298G)
         63       1985         - free -  (992k)
       2048  150992887  ad8s1  linux-data  (72G)
  150994935  150994935  ad8s3  linux-data  (72G)
  301989870  302745555  ad8s4  freebsd  [active]  (144G)
  604735425         61         - free -  (30k)
  604735486   20406274  ad8s2  ebr  (9.7G)
  625141760        688         - free -  (344k)

The new storage drive is ad10 - 2 TB

root@kg-vm# gpart show -p ad10
=>        34  3907029101    ad10  GPT  (1.8T)
          34  3907029101  ad10p1  freebsd-ufs  (1.8T)

currently no more drives

hints: bios key - DEL, boot key - F8,

local links

virtual machines,

Work log

2017-11-30: ada0s3a - final status of the machine before I shut it down:

root@kg-vm# date;temp;fans;swapinfo -h;echo " ";tvlm;echo " ";tvls;echo " ";df -h;echo " ";uptime;echo " ";ps ax | grep -v grep | grep ddc;ps ax | grep -v grep | grep smartd;ps ax | grep -v grep | grep natd
Thu Nov 30 09:18:19 CET 2017
CPU: 44.0C
MB:  38.0C
CPU fan: 2393
cassis fan: 2393
Device          1K-blocks     Used    Avail Capacity
/dev/ada0s1b      4194304       0B     4.0G     0%
/dev/md99       104857600       0B     100G     0%
Total           109051904       0B     104G     0%

Oct 16 16:21:21 kg-vm smartd[662]: http://knowledge.seagate.com/articles/en_US/FAQ/223571en
Oct 16 16:21:21 kg-vm smartd[662]: http://www.smartmontools.org/wiki/SamsungF4EGBadBlocks
Oct 16 16:23:49 kg-vm fsck: /dev/ada1s4d: 10 files, 52507102 used, 20796439 free (15 frags, 2599553 blocks, 0.0% fragmentation)
Oct 16 16:35:57 kg-vm fsck: /dev/ada2p1: 129 files, 39864613 used, 906155900 free (68 frags, 113269479 blocks, 0.0% fragmentation)
Oct 16 18:10:10 kg-vm su: tingo to root on /dev/pts/0
Oct 16 18:39:05 kg-vm kernel: vboxdrv: ffffffff81c2d020 VMMR0.r0
Oct 16 18:39:05 kg-vm kernel: vboxdrv: ffffffff81d2a020 VBoxDDR0.r0
Oct 16 18:39:05 kg-vm kernel: re0: promiscuous mode enabled
Oct 16 18:58:36 kg-vm su: tingo to root on /dev/pts/1
Nov 30 09:12:16 kg-vm kernel: re0: promiscuous mode disabled

Jan  8 18:22:00 kg-vm newsyslog[447]: logfile first created

Filesystem      Size    Used   Avail Capacity  Mounted on
/dev/ada0s3a    108G    9.1G     91G     9%    /
devfs           1.0K    1.0K      0B   100%    /dev
procfs          4.0K    4.0K      0B   100%    /proc
/dev/ada1s4d    140G    100G     28G    78%    /storage
/dev/ada2p1     1.8T     76G    1.5T     5%    /zs

 9:18AM  up 44 days, 17:57, 1 user, load averages: 0.10, 0.28, 0.39

  664  -  I         0:01.00 /usr/local/sbin/smartd -c /usr/local/etc/smartd.con

ok.

2017-03-24: ada0s3a - I shut down and powered down the machine, then powered it on again. Now it is online again:

root@kg-vm# ifconfig re0
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
    ether f0:79:59:5b:bb:81
    inet 10.1.150.15 netmask 0xffff0000 broadcast 10.1.255.255
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
    media: Ethernet autoselect (1000baseT <full-duplex>)
    status: active

I better watch it, perhaps it goes offline again.

2017-03-23: ada0s3a - the machine went offline, and I found this in /var/log/messages:

Mar 23 07:04:35 kg-vm kernel: re0: link state changed to DOWN
Mar 23 07:04:35 kg-vm kernel: re0: link state changed to UP
Mar 23 07:04:35 kg-vm kernel: re0: link state changed to DOWN
Mar 23 07:04:35 kg-vm kernel: re0: link state changed to UP
Mar 23 07:04:35 kg-vm devd: Executing '/etc/rc.d/dhclient quietstart re0'
Mar 23 07:04:35 kg-vm devd: Executing '/etc/rc.d/dhclient quietstart re0'
Mar 23 07:04:37 kg-vm kernel: re0: link state changed to DOWN
Mar 23 07:05:55 kg-vm dhclient: New IP Address (re0): 10.1.150.15
Mar 23 07:05:55 kg-vm dhclient: New Subnet Mask (re0): 255.255.0.0
Mar 23 07:05:55 kg-vm dhclient: New Broadcast Address (re0): 10.1.255.255
Mar 23 07:05:55 kg-vm dhclient: New Routers (re0): 10.1.10.1
Mar 23 07:05:56 kg-vm dhclient: New Routers (re0): 10.1.10.1
Mar 23 07:10:41 kg-vm kernel: re0: link state changed to UP
Mar 23 07:10:41 kg-vm kernel: re0: link state changed to DOWN
Mar 23 07:10:41 kg-vm kernel: re0: link state changed to UP
Mar 23 07:10:41 kg-vm devd: Executing '/etc/rc.d/dhclient quietstart re0'
Mar 23 07:10:41 kg-vm devd: Executing '/etc/rc.d/dhclient quietstart re0'
Mar 23 07:10:42 kg-vm kernel: re0: link state changed to DOWN
Mar 23 07:10:43 kg-vm kernel: re0: link state changed to UP
Mar 23 07:10:43 kg-vm kernel: re0: link state changed to DOWN
Mar 23 07:10:43 kg-vm kernel: re0: link state changed to UP
Mar 23 07:10:43 kg-vm devd: Executing '/etc/rc.d/dhclient quietstart re0'
Mar 23 07:10:43 kg-vm devd: Executing '/etc/rc.d/dhclient quietstart re0'
Mar 23 07:10:44 kg-vm kernel: re0: link state changed to DOWN
Mar 23 07:10:45 kg-vm kernel: re0: link state changed to UP
Mar 23 07:10:45 kg-vm kernel: re0: link state changed to DOWN
Mar 23 07:10:45 kg-vm kernel: re0: link state changed to UP
Mar 23 07:10:45 kg-vm kernel: re0: link state changed to DOWN
Mar 23 07:10:45 kg-vm kernel: re0: link state changed to UP
Mar 23 07:10:45 kg-vm devd: Executing '/etc/rc.d/dhclient quietstart re0'
Mar 23 07:10:45 kg-vm kernel: re0: link state changed to DOWN
Mar 23 07:10:45 kg-vm devd: Executing '/etc/rc.d/dhclient quietstart re0'
Mar 23 07:10:45 kg-vm kernel: re0: link state changed to UP
Mar 23 07:10:45 kg-vm kernel: re0: link state changed to DOWN

going on forever. checking with 'ifconfig re0' sometime later, I could see this

root@kg-vm# cat /tmp/20170324_ifconfig.txt
re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
    ether f0:79:59:5b:bb:81
    inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
    media: Ethernet autoselect (100baseTX <half-duplex>)
    status: no carrier
re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
    ether f0:79:59:5b:bb:81
    inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
    media: Ethernet autoselect (none <hw-loopback>)
    status: active

and more, but the machine wasn't on the network. Messing about with ifconfig up / down, changing media etc didn't help.

2017-02-07: ada0s3a - boinc - things you can do. Easiest done from the boinc directory /var/db/boinc query host

root@kg-vm# cd /var/db/boinc
root@kg-vm# boinccmd --get_host_info
  timezone: 3600
  domain name: kg-vm.kg4.no
  IP addr: 10.1.150.15
  #CPUS: 6
  CPU vendor: amd64
  CPU model: AMD FX(tm)-6300 Six-Core Processor             AMD FX(tm)-6300 Six-Core Processor              [] [sse sse2 pni mmx]
  CPU FP OPS: 1000000000.000000
  CPU int OPS: 1000000000.000000
  CPU mem BW: 1000000000.000000
  OS name: FreeBSD
  OS version: 10.3-STABLE
  mem size: 34046238720.000000
  cache size: 1000000.000000
  swap size: 0.000000
  disk size: 116461051904.000000
  disk free: 97446400000.000000

get account key for a project

root@kg-vm# boinccmd --lookup_account http://milkyway.cs.rpi.edu/milkyway/ example@example.org password
status: Success
poll status: operation in progress
poll status: operation in progress
account key: 63<long hex string>fa

(yes, I changed the details to protect the innocents) attach to a project

root@kg-vm# boinccmd --project_attach  http://milkyway.cs.rpi.edu/milkyway/ <auth key - long hex string>

ok.

2017-02-07: ada0s3a - ports - install boinc_curses

Feb  7 20:58:25 kg-vm pkg-static: boinc_curses-0.2.2_1 installed

ok.

2017-02-07: ada0s3a - ports - install boinc-client. Default options

root@kg-vm# make showconfig
===> The following configuration options are available for boinc-client-7.2.33_7:
     CLIENT=on: Build BOINC client
     LINUX=off: Accept Linux science applications
     MANAGER=on: Build BOINC manager GUI
     NLS=on: Native Language Support
     SKINS=off: Install more skins for BOINC manager
     USER=on: Create/check BOINC client user and directory
     X11=on: Build graphics API
====> Command line options in script
     NO_GUI_RPC=off: Disable GUI RPC and socket (breaks boinc_curses)
     NO_NET_INFO=off: Do not send host address and name to servers
===> Use 'make config' to modify these settings

changed to

root@kg-vm# make showconfig
===> The following configuration options are available for boinc-client-7.2.33_7:
     CLIENT=on: Build BOINC client
     LINUX=off: Accept Linux science applications
     MANAGER=off: Build BOINC manager GUI
     NLS=on: Native Language Support
     SKINS=off: Install more skins for BOINC manager
     USER=on: Create/check BOINC client user and directory
     X11=off: Build graphics API
====> Command line options in script
     NO_GUI_RPC=off: Disable GUI RPC and socket (breaks boinc_curses)
     NO_NET_INFO=off: Do not send host address and name to servers
===> Use 'make config' to modify these settings

install it:

===>   Registering installation for boinc-client-7.2.33_7
Installing boinc-client-7.2.33_7...
===> Creating groups.
Creating group 'boinc' with gid '973'.
===> Creating users
Creating user 'boinc' with uid '973'.
Adjusting file ownership in "/var/db/boinc" to boinc:boinc
-------------------------------------------------------------------
The BOINC client is now installed.

For instructions, refer to the BOINC user manual at:
    http://boinc.berkeley.edu/wiki/User_manual
For complete information, refer to the BOINC web site at:
    http://boinc.berkeley.edu/
-------------------------------------------------------------------

===> SECURITY REPORT:
      This port has installed the following files which may act as network
      servers and may therefore pose a remote security risk to the system.
/usr/local/bin/boinc_client
/usr/local/bin/boinc

      This port has installed the following startup scripts which may cause
      these network services to be started at boot time.
/usr/local/etc/rc.d/boinc-client

      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type 'make deinstall'
      to deinstall the port if this is a concern.

      For more information, and contact details about the security
      status of this software, see the following webpage:
http://boinc.berkeley.edu/
===>  Cleaning for boinc-client-7.2.33_7

from /var/log/messages

Feb  7 19:41:19 kg-vm pkg-static: boinc-client-7.2.33_7 installed

ok.

2017-02-07: ada0s3a - ports - upgraded ports

Feb  7 19:20:33 kg-vm pkg: pkgconf-1.2.1 deinstalled
Feb  7 19:20:34 kg-vm pkg-static: pkgconf-1.2.2 installed
Feb  7 19:27:22 kg-vm pkg: pcre-8.39_1 deinstalled
Feb  7 19:27:23 kg-vm pkg-static: pcre-8.40 installed
Feb  7 19:28:22 kg-vm pkg: smartmontools-6.5_1 deinstalled
Feb  7 19:28:23 kg-vm pkg-static: smartmontools-6.5_2 installed
Feb  7 19:29:57 kg-vm pkg: mpfr-3.1.5 deinstalled
Feb  7 19:29:58 kg-vm pkg-static: mpfr-3.1.5_1 installed

ok.

2017-02-07: ada0s3a - ports - update ports tree on the machine via portsnap fetch; portsnap update.

2017-02-01: ada0s3a - from dmesg output:

root@kg-vm# dmesg | grep SVM
  AMD Features2=0x1ebbfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,XOP,SKINIT,WDT,LWP,FMA4,TCE,NodeId,TBM,Topology,PCXC,PNXC>
  SVM: (disabled in BIOS) NP,NRIP,VClean,AFlush,DAssist,NAsids=65536

SVM is AMD-V and I want that. So, shut down all vms, reboot and change it.

root@kg-vm# dmesg | grep SVM
  AMD Features2=0x1ebbfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,XOP,SKINIT,WDT,LWP,FMA4,TCE,NodeId,TBM,Topology,PCXC,PNXC>
  SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=65536

looks much better after a change and a reboot.

2017-01-27: ada0s3a - the ahci controller is detected thusly in dmesg output:

ahci0: <AMD SB7x0/SB8x0/SB9x0 AHCI SATA controller> port 0xc000-0xc007,0xb000-0xb003,0xa000-0xa007,0x9000-0x9003,0x8000-0x800f mem 0xfe8ffc00-0xfe8fffff irq 22 at device 17.0 on pci0
ahci0: AHCI v1.10 with 4 3Gbps ports, Port Multiplier supported
ahci0: quirks=0x22000<ATI_PMP_BUG,1MSI>
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich2: <AHCI channel> at channel 2 on ahci0
ahcich3: <AHCI channel> at channel 3 on ahci0

and drives

ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <SAMSUNG HD501LJ CR100-12> ATA8-ACS SATA 2.x device
ada0: Serial Number S0MUJ1EPC00591
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 476940MB (976773168 512 byte sectors)
ada0: Previously was known as ad4
ada1 at ahcich2 bus 0 scbus2 target 0 lun 0
ada1: <SAMSUNG HD322HJ 1AG01113> ATA-7 SATA 2.x device
ada1: Serial Number S17AJ90S313824
ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada1: Command Queueing enabled
ada1: 305245MB (625142448 512 byte sectors)
ada1: Previously was known as ad8
ada2 at ahcich3 bus 0 scbus3 target 0 lun 0
ada2: <SAMSUNG HD204UI 1AQ10001> ATA8-ACS SATA 2.x device
ada2: Serial Number S2H7J90BB06308
ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada2: Command Queueing enabled
ada2: 1907729MB (3907029168 512 byte sectors)
ada2: quirks=0x1<4K>
ada2: Previously was known as ad10
cd0 at ahcich1 bus 0 scbus1 target 0 lun 0
cd0: <TSSTcorp CDDVDW SH-224BB SB00> Removable CD-ROM SCSI device
cd0: Serial Number R8WS6GAD1053LA
cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed

ok.

2017-01-27: ada0s3a - FWIW, I still see this message from time to time (/var/log/messages):

Jan 27 14:49:50 kg-vm kernel: ahcich0: Timeout on slot 7 port 0
Jan 27 14:49:50 kg-vm kernel: ahcich0: is 00000000 cs fffffc7f ss ffffffff rs ffffffff tfd 40 serr 00000000 cmd 0000e917
Jan 27 14:49:50 kg-vm kernel: (ada0:ahcich0:0:0:0): WRITE_FPDMA_QUEUED. ACB: 61 40 d9 bf 40 40 1e 00 00 00 00 00
Jan 27 14:49:50 kg-vm kernel: (ada0:ahcich0:0:0:0): CAM status: Command timeout
Jan 27 14:49:50 kg-vm kernel: (ada0:ahcich0:0:0:0): Retrying command

and smartctl says

root@kg-vm# smartctl -a /dev/ada0
smartctl 6.5 2016-05-07 r4318 [FreeBSD 10.3-STABLE amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     SAMSUNG SpinPoint T166
Device Model:     SAMSUNG HD501LJ
Serial Number:    S0MUJ1EPC00591
LU WWN Device Id: 5 0000f0 01bc00591
Firmware Version: CR100-12
User Capacity:    500,107,862,016 bytes [500 GB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 3b
SATA Version is:  SATA 2.5, 3.0 Gb/s
Local Time is:    Fri Jan 27 15:19:42 2017 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x02)    Offline data collection activity
                    was completed without error.
                    Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)    The previous self-test routine completed
                    without error or no self-test has ever
                    been run.
Total time to complete Offline
data collection:         ( 8669) seconds.
Offline data collection
capabilities:              (0x5b) SMART execute Offline immediate.
                    Auto Offline data collection on/off support.
                    Suspend Offline collection upon new
                    command.
                    Offline surface scan supported.
                    Self-test supported.
                    No Conveyance Self-test supported.
                    Selective Self-test supported.
SMART capabilities:            (0x0003)    Saves SMART data before entering
                    power-saving mode.
                    Supports SMART auto save timer.
Error logging capability:        (0x01)    Error logging supported.
                    General Purpose Logging supported.
Short self-test routine
recommended polling time:      (   2) minutes.
Extended self-test routine
recommended polling time:      ( 148) minutes.
SCT capabilities:            (0x003f)    SCT Status supported.
                    SCT Error Recovery Control supported.
                    SCT Feature Control supported.
                    SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   100   100   051    Pre-fail  Always       -       14
  3 Spin_Up_Time            0x0007   100   100   015    Pre-fail  Always       -       7424
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       82
  5 Reallocated_Sector_Ct   0x0033   253   253   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   253   253   051    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0025   253   253   015    Pre-fail  Offline      -       11694
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       79103
 10 Spin_Retry_Count        0x0033   253   253   051    Pre-fail  Always       -       0
 11 Calibration_Retry_Count 0x0012   253   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       72
 13 Read_Soft_Error_Rate    0x000e   100   100   000    Old_age   Always       -       157688086
187 Reported_Uncorrect      0x0032   253   253   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       3
190 Airflow_Temperature_Cel 0x0022   075   048   000    Old_age   Always       -       25
194 Temperature_Celsius     0x0022   163   082   000    Old_age   Always       -       25
195 Hardware_ECC_Recovered  0x001a   100   100   000    Old_age   Always       -       157688086
196 Reallocated_Event_Count 0x0032   253   253   000    Old_age   Always       -       0
197 Total_Pending_Sectors   0x0012   253   253   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   253   253   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x000a   100   100   000    Old_age   Always       -       0
201 Soft_Read_Error_Rate    0x000a   100   100   000    Old_age   Always       -       0
202 Data_Address_Mark_Errs  0x0032   253   253   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     26365         -

SMART Selective self-test log data structure revision number 0
Note: revision number not 1 implies that no selective self-test has ever been run
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

ok.

2017-01-27: ada0s3a - ports - upgraded a few ports

Jan 27 14:49:53 kg-vm pkg: pkgconf-1.1.1 deinstalled
Jan 27 14:49:55 kg-vm pkg-static: pkgconf-1.2.1 installed
Jan 27 14:53:05 kg-vm pkg: perl5-5.24.1.r5_1 deinstalled
Jan 27 14:53:08 kg-vm pkg-static: perl5-5.24.1 installed
Jan 27 14:56:22 kg-vm pkg: libgcrypt-1.7.5 deinstalled
Jan 27 14:56:23 kg-vm pkg-static: libgcrypt-1.7.6 installed
Jan 27 14:57:16 kg-vm pkg: virtualbox-ose-kmod-5.1.12 deinstalled
Jan 27 14:57:17 kg-vm pkg-static: virtualbox-ose-kmod-5.1.14 installed
Jan 27 14:57:38 kg-vm pkg: m4-1.4.17_1,1 deinstalled
Jan 27 14:57:39 kg-vm pkg-static: m4-1.4.18,1 installed
Jan 27 14:58:38 kg-vm pkg: bison-2.7.1_1,1 deinstalled
Jan 27 14:58:40 kg-vm pkg-static: bison-3.0.4,1 installed
Jan 27 14:59:04 kg-vm pkg: libnghttp2-1.18.1 deinstalled
Jan 27 14:59:05 kg-vm pkg-static: libnghttp2-1.19.0 installed
Jan 27 14:59:31 kg-vm pkg: libvncserver-0.9.10_1 deinstalled
Jan 27 14:59:32 kg-vm pkg-static: libvncserver-0.9.11 installed
Jan 27 15:07:29 kg-vm pkg: virtualbox-ose-nox11-5.1.12 deinstalled
Jan 27 15:07:33 kg-vm pkg-static: virtualbox-ose-nox11-5.1.14_2 installed

ok.

2017-01-27: ada0s3a - ports - upgraded ports tree via portsnap fetch; portsnap update.

2017-01-08: ada0s3a - ports - installed virtualbox

Jan  8 23:00:21 kg-vm pkg-static: bison-2.7.1_1,1 installed
Jan  8 23:00:26 kg-vm pkg-static: flex-2.6.1 installed
Jan  8 23:25:16 kg-vm pkg-static: gmp-5.1.3_3 installed
Jan  8 23:25:27 kg-vm pkg-static: mpfr-3.1.5 installed
Jan  8 23:28:37 kg-vm pkg-static: binutils-2.27_5,1 installed
Jan  8 23:28:39 kg-vm pkg-static: gcc-ecj-4.5 installed
Jan  8 23:28:45 kg-vm pkg-static: zip-3.0_1 installed
Jan  8 23:28:52 kg-vm pkg-static: mpc-1.0.3 installed
Jan  8 23:39:12 kg-vm pkg-static: gcc-4.9.4 installed
Jan  8 23:40:30 kg-vm pkg-static: kBuild-0.1.9998_6 installed
Jan  8 23:45:56 kg-vm pkg-static: yasm-1.3.0 installed
Jan  8 23:50:59 kg-vm pkg-static: libgpg-error-1.26 installed
Jan  8 23:51:11 kg-vm pkg-static: libgcrypt-1.7.5 installed
Jan  8 23:52:37 kg-vm pkg-static: pkgconf-1.1.1 installed
Jan  8 23:52:53 kg-vm pkg-static: libxml2-2.9.4 installed
Jan  8 23:52:59 kg-vm pkg-static: libxslt-1.1.29_1 installed
Jan  8 23:53:22 kg-vm pkg-static: gtar-1.29 installed
Jan  8 23:54:56 kg-vm pkg-static: cdrtools-3.01 installed
Jan  8 23:56:06 kg-vm pkg-static: gsoap-2.8.33 installed
Jan  8 23:57:48 kg-vm pkg-static: python27-2.7.13_1 installed
Jan  8 23:58:42 kg-vm pkg-static: png-1.6.27 installed
Jan  8 23:58:55 kg-vm pkg-static: libtool-2.4.6 installed
Jan  8 23:59:13 kg-vm pkg-static: libnghttp2-1.18.1 installed
Jan  9 00:00:18 kg-vm pkg-static: ca_root_nss-3.28.1 installed
Jan  9 00:00:20 kg-vm pkg-static: curl-7.52.1_1 installed
Jan  9 00:01:02 kg-vm pkg-static: nasm-2.11.08_1,1 installed
Jan  9 00:01:10 kg-vm pkg-static: jpeg-turbo-1.5.1 installed
Jan  9 00:01:29 kg-vm pkg-static: libvncserver-0.9.10_1 installed
Jan  9 00:02:34 kg-vm pkg-static: pcre-8.39_1 installed
Jan  9 00:03:22 kg-vm pkg-static: libiconv-1.14_10 installed
Jan  9 00:03:58 kg-vm pkg-static: glib-2.46.2_4 installed
Jan  9 00:04:04 kg-vm pkg-static: libIDL-0.8.14_3 installed
Jan  9 00:13:15 kg-vm pkg-static: virtualbox-ose-kmod-5.1.12 installed
Jan  9 00:13:22 kg-vm pkg-static: virtualbox-ose-nox11-5.1.12 installed

messages from the port

=============================================================================

VirtualBox was installed.

You need to load the vboxdrv kernel module via /boot/loader.conf:

vboxdrv_load="YES"

You also have to add all users to your vboxusers group in order to use vbox.

% pw groupmod vboxusers -m jerry

Reboot the machine to load the needed kernel modules.


Bridging Support:
=================

For bridged networking please add the following line to your /etc/rc.conf:

vboxnet_enable="YES"


USB Support:
============

For USB support your user needs to be in the operator group and needs read
and write permissions to the USB device.

% pw groupmod operator -m jerry

Add the following to /etc/devfs.rules (create if it doesn't exist):

[system=10]
add path 'usb/*' mode 0660 group operator

To load these new rule add the following to /etc/rc.conf:

devfs_system_ruleset="system"

Then restart devfs to load the new rules:

% /etc/rc.d/devfs restart


Troubleshooting:
================

Running VirtualBox as non-root user may fail with a fatal error
NS_ERROR_FACTORY_NOT_REGISTERED. In this case delete /tmp/.vbox-*-ipc file.

If you experience "Network: write Failed: Cannot allocate memory" errors
try to increase net.graph.maxdata in /boot/loader.conf

Check wiki page for known issues and troubleshooting:
http://wiki.freebsd.org/VirtualBox

Please report any problems to emulation@. Thanks!

=============================================================================

===> SECURITY REPORT: 
      This port has installed the following files which may act as network
      servers and may therefore pose a remote security risk to the system.
/usr/local/lib/virtualbox/VBoxNetNAT.so
/usr/local/lib/virtualbox/vboxwebsrv
/usr/local/lib/virtualbox/VBoxXPCOM.so
/usr/local/lib/virtualbox/VBoxRT.so
/usr/local/lib/virtualbox/VBoxDD.so
/usr/local/lib/virtualbox/webtest

      This port has installed the following startup scripts which may cause
      these network services to be started at boot time.
/usr/local/etc/rc.d/vboxheadless
/usr/local/etc/rc.d/vboxwatchdog
/usr/local/etc/rc.d/vboxwebsrv

      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type 'make deinstall'
      to deinstall the port if this is a concern.

      For more information, and contact details about the security
      status of this software, see the following webpage: 
http://www.virtualbox.org/

ok

2017-01-08: ada0s3a - ports - install pkg and portupgrade

Jan  8 22:01:03 kg-vm pkg-static: pkg-1.9.4_1 installed
Jan  8 22:04:00 kg-vm pkg-static: dialog4ports-0.1.6 installed
Jan  8 22:04:27 kg-vm pkg-static: indexinfo-0.2.6 installed
Jan  8 22:04:27 kg-vm pkg-static: libffi-3.2.1 installed
Jan  8 22:04:57 kg-vm pkg-static: m4-1.4.17_1,1 installed
Jan  8 22:07:30 kg-vm pkg-static: gettext-runtime-0.19.8.1_1 installed
Jan  8 22:09:34 kg-vm pkg-static: gettext-tools-0.19.8.1 installed
Jan  8 22:13:57 kg-vm pkg-static: perl5-5.24.1.r5_1 installed
Jan  8 22:14:32 kg-vm pkg-static: p5-Locale-gettext-1.06 installed
Jan  8 22:14:49 kg-vm pkg-static: gmake-4.2.1_1 installed
Jan  8 22:14:50 kg-vm pkg-static: help2man-1.47.4 installed
Jan  8 22:14:54 kg-vm pkg-static: autoconf-wrapper-20131203 installed
Jan  8 22:14:54 kg-vm pkg-static: autoconf-2.69_1 installed
Jan  8 22:14:57 kg-vm pkg-static: automake-wrapper-20131203 installed
Jan  8 22:14:57 kg-vm pkg-static: automake-1.15_1 installed
Jan  8 22:15:02 kg-vm pkg-static: libyaml-0.1.6_2 installed
Jan  8 22:15:06 kg-vm pkg-static: libedit-3.1.20150325_2,1 installed
Jan  8 22:20:45 kg-vm pkg-static: ruby-2.2.6_1,1 installed
Jan  8 22:21:46 kg-vm pkg-static: db5-5.3.28_6 installed
Jan  8 22:22:13 kg-vm pkg-static: ruby22-bdb-0.6.6_5 installed
Jan  8 22:22:15 kg-vm pkg-static: portupgrade-2.4.14,2 installed

ok. install smartmontools

Jan  8 22:30:42 kg-vm pkg-static: smartmontools-6.5_1 installed

ok.

2017-01-08: ada0s3a - get a ports tree on the machine via portsnap fetch; portsnap extract.

2017-01-08: ada0s3a - after a reboot, the machine runs FreeBSD 10.3-stable. dmesg output: normal, verbose.

root@kg-vm# freebsd-version -ku
10.3-STABLE
10.3-STABLE
root@kg-vm# uname -a
FreeBSD kg-vm.kg4.no 10.3-STABLE FreeBSD 10.3-STABLE #0 r311695: Sun Jan  8 20:58:02 CET 2017     root@kg-vm.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

ok.

2017-01-08: ada0s3a - build latest FreeBSD 10.3-stable via "make world" procedure":

root@kg-vm# cd /usr/src

buildworld

root@kg-vm# make -j7 buildworld
[...]
--- buildworld_epilogue ---
--------------------------------------------------------------
>>> World build completed on Sun Jan  8 20:47:52 CET 2017
--------------------------------------------------------------

kernel

root@kg-vm# make kernel
[...]
===> iscsi_initiator (install)
install -o root -g wheel -m 555   iscsi_initiator.ko /boot/kernel
install -o root -g wheel -m 555   iscsi_initiator.ko.symbols /boot/kernel
kldxref /boot/kernel

mergemaster PRE

root@kg-vm# mergemaster -p

*** Creating the temporary root environment in /var/tmp/temproot
 *** /var/tmp/temproot ready for use
 *** Creating and populating directory structure in /var/tmp/temproot



*** Beginning comparison
[...]
*** Comparison complete

*** /var/tmp/temproot is empty, deleting

installworld

root@kg-vm# make installworld
[...]
install -s -o root -g wheel -m 555   ldd32 /usr/bin/ldd32

delete old stuff

root@kg-vm# make delete-old
>>> Removing old files (only deletes safe to delete libs)
remove /usr/share/man/man4/hv_ata_pci_disengage.4.gz? y
remove /usr/share/man/man9/rman_await_resource.9.gz? y
>>> Old files removed
>>> Removing old directories
/usr/share/doc/atf
/usr/share/atf
/usr/include/atf-c++
/usr/include/atf-c
>>> Old directories removed
To remove old libraries run 'make delete-old-libs'.
root@kg-vm# 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

mergemaster

root@kg-vm# mergemaster -iUP
[...]
*** Comparison complete
*** Saving mtree database for future upgrades

*** /var/tmp/temproot is empty, deleting

*** You chose the automatic install option for files that did not
    exist on your system.  The following were installed for you:
      /etc/rc.d/zfsbe
*** 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/auto_master
      /etc/autofs/include_ldap
      /etc/autofs/special_hosts
      /etc/autofs/special_media
      /etc/autofs/special_noauto
      /etc/autofs/special_null
      /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/hyperv.conf
      /etc/devd/uath.conf
      /etc/devd/usb.conf
      /etc/devd/zfs.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/libmap.conf
      /etc/libmap32.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/mailer.conf
      /etc/mail/mailertable.sample
      /etc/mail/virtusertable.sample
      /etc/mtree/BSD.debug.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/leap-seconds
      /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/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/300.calendar
      /etc/periodic/daily/310.accounting
      /etc/periodic/daily/330.news
      /etc/periodic/daily/400.status-disks
      /etc/periodic/daily/401.status-graid
      /etc/periodic/daily/404.status-zfs
      /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/480.leapfile-ntpd
      /etc/periodic/daily/480.status-ntpd
      /etc/periodic/daily/500.queuerun
      /etc/periodic/daily/510.status-world-kernel
      /etc/periodic/daily/800.scrub-zfs
      /etc/periodic/daily/999.local
      /etc/periodic/monthly/200.accounting
      /etc/periodic/monthly/450.status-security
      /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/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/450.status-security
      /etc/periodic/weekly/999.local
      /etc/pf.os
      /etc/phones
      /etc/pkg/FreeBSD.conf
      /etc/portsnap.conf
      /etc/ppp/ppp.conf
      /etc/printcap
      /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/auditdistd
      /etc/rc.d/automount
      /etc/rc.d/automountd
      /etc/rc.d/autounmountd
      /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/ctld
      /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/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/growfs
      /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/ipropd_master
      /etc/rc.d/ipropd_slave
      /etc/rc.d/ipsec
      /etc/rc.d/ipxrouted
      /etc/rc.d/iscsictl
      /etc/rc.d/iscsid
      /etc/rc.d/jail
      /etc/rc.d/kadmind
      /etc/rc.d/kdc
      /etc/rc.d/keyserv
      /etc/rc.d/kfd
      /etc/rc.d/kld
      /etc/rc.d/kldxref
      /etc/rc.d/kpasswdd
      /etc/rc.d/ldconfig
      /etc/rc.d/local
      /etc/rc.d/local_unbound
      /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/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/postrandom
      /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/swap
      /etc/rc.d/swaplate
      /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/utx
      /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/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
*** 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

only a reboot remains.

2017-01-08: ada0s3a - get stable/10 source on the machine:

root@kg-vm# svnlite co https://svn.freebsd.org/base/stable/10 /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 15 00:00:00 2016 GMT until Jun 29 23:59:59 2017 GMT
 - Issuer: Gandi, Paris, Paris, FR
 - Fingerprint: 86:5C:C5:84:F5:2D:40:FA:C6:F9:F0:D9:F5:40:D0:D5:6B:90:CB:CE
(R)eject, accept (t)emporarily or accept (p)ermanently? p
[...]
A    /usr/src/MAINTAINERS
 U   /usr/src
Checked out revision 311694.

verify

root@kg-vm# svnlite co https://svn.freebsd.org/base/stable/10 /usr/src
Checked out revision 311695.

ok?

root@kg-vm# egrep "^BRANCH|^REVISION" /usr/src/sys/conf/newvers.sh
REVISION="10.3"
BRANCH="STABLE"

looks ok.

2017-01-08: ada0s3a - from /var/log/messages

Jan  8 19:39:05 kg-vm kernel: ahcich0: Timeout on slot 25 port 0
Jan  8 19:39:05 kg-vm kernel: ahcich0: is 00000000 cs 81ffffff ss ffffffff rs ffffffff tfd c0 serr 00000000 cmd 0000ff17
Jan  8 19:39:05 kg-vm kernel: ahcich0: (ada0:ahcich0:0:0:0): WRITE_FPDMA_QUEUED. ACB: 61 10 a6 99 80 40 29 00 00 00 00 00
Jan  8 19:39:05 kg-vm kernel: AHCI reset...
Jan  8 19:39:05 kg-vm kernel: (ada0:ahcich0:0:0:0): CAM status: Command timeout
Jan  8 19:39:05 kg-vm kernel: (ada0:ahcich0:0:0:0): Retrying command
Jan  8 19:39:05 kg-vm kernel: ahcich0: SATA connect time=100us status=00000123
Jan  8 19:39:05 kg-vm kernel: ahcich0: AHCI reset: device found
Jan  8 19:39:05 kg-vm kernel: ahcich0: AHCI reset: device ready after 100ms
Jan  8 19:39:55 kg-vm kernel: ahcich0: Timeout on slot 29 port 0
Jan  8 19:39:55 kg-vm kernel: ahcich0: is 00000000 cs 1ffffff8 ss ffffffff rs ffffffff tfd c0 serr 00000000 cmd 0000e317
Jan  8 19:39:55 kg-vm kernel: ahcich0: (ada0:ahcich0:0:0:0): WRITE_FPDMA_QUEUED. ACB: 61 c0 26 03 85 40 29 00 00 00 00 00
Jan  8 19:39:55 kg-vm kernel: AHCI reset...
Jan  8 19:39:55 kg-vm kernel: (ada0:ahcich0:0:0:0): CAM status: Command timeout
Jan  8 19:39:55 kg-vm kernel: (ada0:ahcich0:0:0:0): Retrying command
Jan  8 19:39:55 kg-vm kernel: ahcich0: SATA connect time=100us status=00000123
Jan  8 19:39:55 kg-vm kernel: ahcich0: AHCI reset: device found
Jan  8 19:39:57 kg-vm kernel: ahcich0: AHCI reset: device ready after 100ms
Jan  8 19:40:28 kg-vm kernel: ahcich0: Timeout on slot 28 port 0
Jan  8 19:40:28 kg-vm kernel: ahcich0: is 00000000 cs 0ffffffc ss ffffffff rs ffffffff tfd c0 serr 00000000 cmd 0000e217
Jan  8 19:40:28 kg-vm kernel: ahcich0: (ada0:ahcich0:0:0:0): WRITE_FPDMA_QUEUED. ACB: 61 40 e6 48 87 40 29 00 00 00 00 00
Jan  8 19:40:28 kg-vm kernel: AHCI reset...
Jan  8 19:40:28 kg-vm kernel: (ada0:ahcich0:0:0:0): CAM status: Command timeout
Jan  8 19:40:28 kg-vm kernel: (ada0:ahcich0:0:0:0): Retrying command
Jan  8 19:40:28 kg-vm kernel: ahcich0: SATA connect time=100us status=00000123
Jan  8 19:40:28 kg-vm kernel: ahcich0: AHCI reset: device found
Jan  8 19:40:31 kg-vm kernel: ahcich0: AHCI reset: device ready after 100ms
Jan  8 19:41:10 kg-vm kernel: ahcich0: Timeout on slot 19 port 0
Jan  8 19:41:10 kg-vm kernel: ahcich0: is 00000000 cs 02000000 ss 03f80000 rs 03f80000 tfd 40 serr 00000000 cmd 0000f817
Jan  8 19:41:10 kg-vm kernel: ahcich0: (ada0:ahcich0:0:0:0): WRITE_FPDMA_QUEUED. ACB: 61 08 2e 0f 90 40 29 00 00 00 00 00
Jan  8 19:41:10 kg-vm kernel: AHCI reset...
Jan  8 19:41:10 kg-vm kernel: (ada0:ahcich0:0:0:0): CAM status: Command timeout
Jan  8 19:41:10 kg-vm kernel: (ada0:ahcich0:0:0:0): Retrying command
Jan  8 19:41:10 kg-vm kernel: ahcich0: SATA connect time=100us status=00000123
Jan  8 19:41:10 kg-vm kernel: ahcich0: AHCI reset: device found
Jan  8 19:41:10 kg-vm kernel: ahcich0: AHCI reset: device ready after 100ms
Jan  8 19:41:53 kg-vm kernel: ahcich0: Timeout on slot 18 port 0
Jan  8 19:41:53 kg-vm kernel: ahcich0: is 00000000 cs ff03ffff ss ffffffff rs ffffffff tfd c0 serr 00000000 cmd 0000f817
Jan  8 19:41:53 kg-vm kernel: ahcich0: (ada0:ahcich0:0:0:0): WRITE_FPDMA_QUEUED. ACB: 61 30 a6 0b 8a 40 29 00 00 00 00 00
Jan  8 19:41:53 kg-vm kernel: AHCI reset...
Jan  8 19:41:53 kg-vm kernel: (ada0:ahcich0:0:0:0): CAM status: Command timeout
Jan  8 19:41:53 kg-vm kernel: (ada0:ahcich0:0:0:0): Retrying command
Jan  8 19:41:53 kg-vm kernel: ahcich0: SATA connect time=100us status=00000123
Jan  8 19:41:53 kg-vm kernel: ahcich0: AHCI reset: device found
Jan  8 19:41:53 kg-vm kernel: ahcich0: AHCI reset: device ready after 100ms
Jan  8 19:42:28 kg-vm kernel: ahcich0: Timeout on slot 21 port 0
Jan  8 19:42:28 kg-vm kernel: ahcich0: is 00000000 cs f81fffff ss ffffffff rs ffffffff tfd c0 serr 00000000 cmd 0000fb17
Jan  8 19:42:28 kg-vm kernel: ahcich0: (ada0:ahcich0:0:0:0): WRITE_FPDMA_QUEUED. ACB: 61 34 e5 70 40 40 1e 00 00 00 00 00
Jan  8 19:42:28 kg-vm kernel: AHCI reset...
Jan  8 19:42:28 kg-vm kernel: (ada0:ahcich0:0:0:0): CAM status: Command timeout
Jan  8 19:42:28 kg-vm kernel: (ada0:ahcich0:0:0:0): Retrying command
Jan  8 19:42:28 kg-vm kernel: ahcich0: SATA connect time=100us status=00000123
Jan  8 19:42:28 kg-vm kernel: ahcich0: AHCI reset: device found
Jan  8 19:42:31 kg-vm kernel: ahcich0: AHCI reset: device ready after 100ms
Jan  8 19:43:04 kg-vm kernel: ahcich0: Timeout on slot 16 port 0
Jan  8 19:43:04 kg-vm kernel: ahcich0: is 00000000 cs ffc0ffff ss ffffffff rs ffffffff tfd c0 serr 00000000 cmd 0000f617
Jan  8 19:43:04 kg-vm kernel: ahcich0: (ada0:ahcich0:0:0:0): WRITE_FPDMA_QUEUED. ACB: 61 18 c6 f8 88 40 29 00 00 00 00 00
Jan  8 19:43:04 kg-vm kernel: AHCI reset...
Jan  8 19:43:04 kg-vm kernel: (ada0:ahcich0:0:0:0): CAM status: Command timeout
Jan  8 19:43:04 kg-vm kernel: (ada0:ahcich0:0:0:0): Retrying command
Jan  8 19:43:04 kg-vm kernel: ahcich0: SATA connect time=100us status=00000123
Jan  8 19:43:04 kg-vm kernel: ahcich0: AHCI reset: device found
Jan  8 19:43:04 kg-vm kernel: ahcich0: AHCI reset: device ready after 100ms
Jan  8 19:44:06 kg-vm kernel: ahcich0: Timeout on slot 26 port 0
Jan  8 19:44:06 kg-vm kernel: ahcich0: is 00000000 cs 0000000f ss fc00000f rs fc00000f tfd c0 serr 00000000 cmd 0000e017
Jan  8 19:44:06 kg-vm kernel: ahcich0: (ada0:ahcich0:0:0:0): WRITE_FPDMA_QUEUED. ACB: 61 08 e6 59 40 40 1e 00 00 00 00 00
Jan  8 19:44:06 kg-vm kernel: AHCI reset...
Jan  8 19:44:06 kg-vm kernel: (ada0:ahcich0:0:0:0): CAM status: Command timeout
Jan  8 19:44:06 kg-vm kernel: (ada0:ahcich0:0:0:0): Retrying command
Jan  8 19:44:06 kg-vm kernel: ahcich0: SATA connect time=100us status=00000123
Jan  8 19:44:06 kg-vm kernel: ahcich0: AHCI reset: device found
Jan  8 19:44:06 kg-vm kernel: ahcich0: AHCI reset: device ready after 100ms
Jan  8 19:44:56 kg-vm kernel: ahcich0: Timeout on slot 21 port 0
Jan  8 19:44:56 kg-vm kernel: ahcich0: is 00000000 cs 78000000 ss 7fe00000 rs 7fe00000 tfd c0 serr 00000000 cmd 0000fb17
Jan  8 19:44:56 kg-vm kernel: ahcich0: (ada0:ahcich0:0:0:0): WRITE_FPDMA_QUEUED. ACB: 61 08 ae 73 05 40 2a 00 00 00 00 00
Jan  8 19:44:56 kg-vm kernel: AHCI reset...
Jan  8 19:44:56 kg-vm kernel: (ada0:ahcich0:0:0:0): CAM status: Command timeout
Jan  8 19:44:56 kg-vm kernel: (ada0:ahcich0:0:0:0): Retrying command
Jan  8 19:44:56 kg-vm kernel: ahcich0: SATA connect time=100us status=00000123
Jan  8 19:44:56 kg-vm kernel: ahcich0: AHCI reset: device found
Jan  8 19:44:56 kg-vm kernel: ahcich0: AHCI reset: device ready after 100ms

a bit worrying, those messages.

2017-01-08: ada0s3a - after a reboot, the machine runs FreeBSD 10.3-release from this slice. dmesg: normal, verbose.

root@kg-vm:~ # freebsd-version -ku
10.3-RELEASE
10.3-RELEASE
root@kg-vm:~ # uname -a
FreeBSD kg-vm.kg4.no 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 02:10:02 UTC 2016     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

I set up swap, and fix other things.

2017-01-08: I have decided to install over the slice 3 install, so I boot from the FreeBSD 10.3-release usb stick again, and get to it. I deleted all partitions on ada0s3, and created a new one ada0s3a for / (root) filesystem.

2017-01-08: I booted FreeBSD 10.3-release off a usb stick, to verify that everything works - it does. As expected drives are renamed:

 ad4 -> ada0
 ad8 -> ada1
ad10 -> ada2.

2017-01-08: ad4s4a - config files /etc/fstab looks like this:

root@kg-vm# more /etc/fstab
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/ad4s1b             none            swap    sw              0       0
/dev/ad4s4a             /               ufs     rw              1       1
/dev/ad4s4e             /tmp            ufs     rw              2       2
/dev/ad4s4f             /usr            ufs     rw              2       2
/dev/ad4s4d             /var            ufs     rw              2       2
/dev/acd0               /cdrom          cd9660  ro,noauto       0       0
proc                    /proc           procfs  rw              0       0
/dev/ad8s4d             /storage        ufs     rw              2       2
/dev/ad10p1             /zs             ufs     rw              2       2

ok. /boot/loader.conf

root@kg-vm# more /boot/loader.conf
aibs_load="YES"
amdtemp_load="YES"
snd_hda_load="YES"
atapicam_load="YES"
kern.maxswzone="256M"

and /etc/sysctl.conf

root@kg-vm# more /etc/sysctl.conf
# $FreeBSD: src/etc/sysctl.conf,v 1.8.34.1 2009/08/03 08:13:06 kensmith Exp $
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#

# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
kern.module_path=/boot/kernel;/boot/modules;/usr/local/modules

dhclient.conf

root@kg-vm# more /etc/dhclient.conf
# $FreeBSD: src/etc/dhclient.conf,v 1.3.36.1.4.1 2010/06/14 02:09:06 kensmith Exp $
#
#       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
#       defaults are usually fine.
#
send dhcp-client-identifier "kg-vm.kg4.no";

also /etc/rc.conf

root@kg-vm# more /etc/rc.conf

# -- sysinstall generated deltas -- # Sat Oct 30 01:01:09 2010
# Created: Sat Oct 30 01:01:09 2010
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
defaultrouter="10.1.10.1"
font8x14="iso-8x14"
font8x16="iso-8x16"
font8x8="iso-8x8"
hostname="kg-vm.kg4.no"
#ifconfig_re0="inet 10.1.150.15  netmask 255.255.0.0"
ifconfig_re0="DHCP"
keymap="norwegian.iso"
moused_enable="YES"
saver="blank"
# set up a crash dump device
dumpdev="AUTO"
sshd_enable="YES"
# enable rules in /etc/devfs.rules
devfs_system_ruleset="devfsrules_local"
# ntp
ntpd_enable="YES"
ntpd_sync_on_start="YES"
# bsdstats
bsdstats_enable="YES"
# smartmontools
smartd_enable="YES"
## for BOINC
boinc_client_enable="YES"
# enable DBUS
dbus_enable="YES"
# virtualbox - driver, bridged networking
vboxdrv_load="YES"
vboxnet_enable="YES"
fusefs_enable="YES"
swapfile="/storage/swap1" # additional swap space

I comment out the boinc_client_enable lines, so it will not autostart on boot. /etc/devfs.rules

root@kg-vm# more /etc/devfs.rules
[devfsrules_local=5]
add path 'usb/*' mode 0660 group operator

ok. ntp.conf

root@kg-vm# more /etc/ntp.conf
server kg-omni1.kg4.no

ok.

2017-01-08: ad4s4a - drives and disk layout, since I'm going to upgrade the machine. drives

root@kg-vm# atacontrol list
ATA channel 0:
    Master:      no device present
    Slave:       no device present
ATA channel 1:
    Master:      no device present
    Slave:       no device present
ATA channel 2:
    Master:  ad4 <SAMSUNG HD501LJ/CR100-12> SATA revision 2.x
    Slave:       no device present
ATA channel 3:
    Master: acd0 <TSSTcorp CDDVDW SH-224BB/SB00> SATA revision 1.x
    Slave:       no device present
ATA channel 4:
    Master:  ad8 <SAMSUNG HD322HJ/1AG01113> SATA revision 2.x
    Slave:       no device present
ATA channel 5:
    Master: ad10 <SAMSUNG HD204UI/1AQ10001> SATA revision 2.x

disk layout

root@kg-vm# gpart show -p ad4
=>       63  976773105    ad4  MBR  (465G)
         63  253746612  ad4s1  freebsd  (121G)
  253746675  253746675  ad4s2  !169  (121G)
  507493350  234870300  ad4s3  freebsd  (112G)
  742363650  234409518  ad4s4  freebsd  [active]  (111G)

root@kg-vm# gpart show -p ad8
=>       63  625142385    ad8  MBR  (298G)
         63       1985         - free -  (992k)
       2048  150992887  ad8s1  linux-data  (72G)
  150994935  150994935  ad8s3  linux-data  (72G)
  301989870  302745555  ad8s4  freebsd  [active]  (144G)
  604735425         61         - free -  (30k)
  604735486   20406274  ad8s2  ebr  (9.7G)
  625141760        688         - free -  (344k)

root@kg-vm# gpart show -p ad10
=>        34  3907029101    ad10  GPT  (1.8T)
          34  3907029101  ad10p1  freebsd-ufs  (1.8T)

hmm, which bootloader?

2016-08-26: ad4s4a - powering on the machine after a scheduled power outage (power company schedlued maintenance). It still runs:

tingo@kg-vm$ uname -a
FreeBSD kg-vm.kg4.no 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #5: Sun Jun  9 17:44:22 CEST 2013     root@kg-vm.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

ok.

2016-08-26: ad4s4a - interesting output in the daily "security run output" mail today:

kg-vm.kg4.no kernel log messages:
+++ /tmp/security.TSpYsMVw      2016-08-26 03:01:13.000000000 +0200
+MCA: Bank 2, Status 0x9c0840700010010a
+MCA: Global Cap 0x0000000000000107, Status 0x0000000000000000
+MCA: Vendor "AuthenticAMD", ID 0x600f20, APIC ID 18
+MCA: CPU 2 COR GCACHE L2 ERR error
+MCA: Address 0x10600
+MCA: Misc 0xc000000000000000

ok.

2016-08-25: ad4s4a - uptime status

root@kg-vm# date;uptime
Thu Aug 25 22:41:40 CEST 2016
10:41PM  up 431 days, 10 hrs, 2 users, load averages: 6.05, 6.01, 6.00

ok.

2015-11-14: change to new firewall noted in /var/log/messages:

Nov 14 13:48:26 kg-vm 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-11-02: ad4s4a - boinc - getting updated Milkyway@home binaries: get it:

tingo@kg-vm$ cd dl
tingo@kg-vm$ fetch https://aceshardware.files.wordpress.com/2015/10/milkyway_1-52_1-36_x86_64-pc-freebsd.zip
milkyway_1-52_1-36_x86_64-pc-freebsd.zip      100% of 1018 kB  711 kBps

unpack:

tingo@kg-vm$ unzip milkyway_1-52_1-36_x86_64-pc-freebsd.zip
Archive:  milkyway_1-52_1-36_x86_64-pc-freebsd.zip
  inflating: milkyway_1.52_1.36_x86_64-pc-freebsd/README 
  inflating: milkyway_1.52_1.36_x86_64-pc-freebsd/app_info.xml 
  inflating: milkyway_1.52_1.36_x86_64-pc-freebsd/milkyway_nbody_1.52_x86_64-pc-freebsd 
  inflating: milkyway_1.52_1.36_x86_64-pc-freebsd/milkyway_separation_1.36_x86_64-pc-freebsd 

stop boinc:

root@kg-vm# service boinc-client stop
Stopping boinc_client.
Waiting for PIDS: 1326.

change to correct place

root@kg-vm# cd /var/db/boinc/projects/milkyway.cs.rpi.edu_milkyway

move old binaries out of the way:

root@kg-vm# mv m* ./old

copy new binaries in the correct place:

root@kg-vm# cp -v /home/tingo/dl/milkyway_1.52_1.36_x86_64-pc-freebsd/mi* .
/home/tingo/dl/milkyway_1.52_1.36_x86_64-pc-freebsd/milkyway_separation_1.36_x86_64-pc-freebsd -> ./milkyway_separation_1.36_x86_64-pc-freebsd
/home/tingo/dl/milkyway_1.52_1.36_x86_64-pc-freebsd/milkyway_nbody_1.52_x86_64-pc-freebsd -> ./milkyway_nbody_1.52_x86_64-pc-freebsd

change owner

root@kg-vm# chown boinc mi*

verify

root@kg-vm# ll mi*
-rwxr-xr-x  1 boinc  nobody  1348024 Nov  2 22:21 milkyway_nbody_1.52_x86_64-pc-freebsd*
-rwxr-xr-x  1 boinc  nobody  1072736 Nov  2 22:21 milkyway_separation_1.36_x86_64-pc-freebsd*

start boinc again:

root@kg-vm# cd
root@kg-vm# service boinc-client start
Starting boinc_client.

that was it.

2015-10-19: ad4s4a - set up more storage space for virtual machines. I have mounted a 2 TB (1.8 TB formatted) drive at /zs. Create a directory for my user:

root@kg-vm# mkdir /zs/tingo

set permissions:

root@kg-vm# chown tingo:users /zs/tingo

check

root@kg-vm# ls -l /zs
total 4
drwxrwxr-x  2 root   operator  512 Oct 19 20:54 .snap
drwxr-xr-x  2 tingo  users     512 Oct 19 21:55 tingo

looks good. As my own user, create a directory:

tingo@kg-vm$ mkdir -p /zs/tingo/data/vbox

check

tingo@kg-vm$ ls -l /zs/tingo/data
total 2
drwxr-xr-x  2 tingo  users  512 Oct 19 22:00 vbox

Next, link the 'data' directory into my home directory:

tingo@kg-vm$ cd ~/
tingo@kg-vm$ pwd
/home/tingo
tingo@kg-vm$ ln -s /zs/tingo/data/
tingo@kg-vm$ ls -l data
lrwxr-xr-x  1 tingo  users  15 Oct 19 22:51 data -> /zs/tingo/data/

now I can store virtal machines in ~/data/vbox:

tingo@kg-vm$ ls -la ~/data/vbox
total 4
drwxr-xr-x  2 tingo  users  512 Oct 19 22:00 .
drwxr-xr-x  3 tingo  users  512 Oct 19 22:00 ..

ok.

2015-10-19: ad4s4a - time to configure the storage drive (ad10) that I added last year. The machine still runs FreeBSD 8.3-prerelease:

root@kg-vm# uname -a
FreeBSD kg-vm.kg4.no 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #5: Sun Jun  9 17:44:22 CEST 2013     root@kg-vm.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

it has been up a while:

root@kg-vm# uptime
 8:36PM  up 120 days,  7:55, 2 users, load averages: 5.89, 5.97, 5.98

and the disk layout currently looks like this:

root@kg-vm# date;echo " ";swapinfo -h;echo " ";mdconfig -l -v;echo " ";df -h
Mon Oct 19 20:40:50 CEST 2015

Device          1K-blocks     Used    Avail Capacity
/dev/ad4s1b       4194304       0B     4.0G     0%
/dev/md0        104857600       0B     100G     0%
Total           109051904       0B     104G     0%

md0    vnode      100G    /storage/swap1

Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s4a    989M    566M    344M    62%    /
devfs          1.0k    1.0k      0B   100%    /dev
/dev/ad4s4e    495M     37M    418M     8%    /tmp
/dev/ad4s4f    102G     63G     31G    67%    /usr
/dev/ad4s4d    4.7G    2.4G      2G    55%    /var
procfs         4.0k    4.0k      0B   100%    /proc
/dev/ad8s4d    139G    100G     28G    78%    /storage

gpart says this about ad8:

root@kg-vm# gpart show -p ad8
=>       63  625142385    ad8  MBR  (298G)
         63       1985         - free -  (992k)
       2048  150992887  ad8s1  linux-data  (72G)
  150994935  150994935  ad8s3  linux-data  (72G)
  301989870  302745555  ad8s4  freebsd  [active]  (144G)
  604735425         61         - free -  (30k)
  604735486   20406274  ad8s2  ebr  (9.7G)
  625141760        688         - free -  (344k)

so, to the "new" drive (ad10):

root@kg-vm# gpart show -p ad10
gpart: No such geom: ad10.

ok, it is blank. I want GPT partitions on it:

root@kg-vm# gpart create -s GPT ad10
ad10 created

verify:

root@kg-vm# gpart show -p ad10
=>        34  3907029101  ad10  GPT  (1.8T)
          34  3907029101        - free -  (1.8T)

good. Add just one freebsd-ufs partition:

root@kg-vm# gpart add -t freebsd-ufs ad10
ad10p1 added

ok. How it looks:

root@kg-vm# gpart show -p ad10
=>        34  3907029101    ad10  GPT  (1.8T)
          34  3907029101  ad10p1  freebsd-ufs  (1.8T)

and

root@kg-vm# ls -l /dev/ad10*
crw-r-----  1 root  operator    0, 121 Jun 21 12:41 /dev/ad10
crw-r-----  1 root  operator    0, 152 Oct 19 20:47 /dev/ad10p1

good. Create a filesystem:

root@kg-vm# newfs -U /dev/ad10p1
[...]
 3898388576, 3898764832, 3899141088, 3899517344, 3899893600, 3900269856, 3900646112, 3901022368, 3901398624,
 3901774880, 3902151136, 3902527392, 3902903648, 3903279904, 3903656160, 3904032416, 3904408672, 3904784928,
 3905161184, 3905537440, 3905913696, 3906289952, 3906666208

ok. Create a mount point:

root@kg-vm# mkdir /zs

mount the filesystem:

root@kg-vm# mount /dev/ad10p1 /zs

and fix /etc/fstab by adding this line:

# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/ad10p1             /zs             ufs     rw              2       2

disk layout now:

root@kg-vm# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s4a    989M    566M    344M    62%    /
devfs          1.0k    1.0k      0B   100%    /dev
/dev/ad4s4e    495M     37M    418M     8%    /tmp
/dev/ad4s4f    102G     63G     31G    67%    /usr
/dev/ad4s4d    4.7G    2.4G      2G    55%    /var
procfs         4.0k    4.0k      0B   100%    /proc
/dev/ad8s4d    139G    100G     28G    78%    /storage
/dev/ad10p1    1.8T    4.0k    1.6T     0%    /zs

Next is creating directories and linking.

2015-06-21: before powering down the machine to install a new fan:

root@kg-vm# date;temp;fans;swapinfo -h;echo " ";tvlm;echo " ";tvls;echo " ";df -h;echo " ";uptime;echo " ";ps ax | grep -v grep | grep ddc;ps ax | grep -v grep | grep smartd;ps ax | grep -v grep | grep natd
Sun Jun 21 11:24:43 CEST 2015
CPU: 70.0C
MB:  48.0C
CPU fan: 4856
cassis fan: 4856
Device          1K-blocks     Used    Avail Capacity
/dev/ad4s1b       4194304       0B     4.0G     0%
/dev/md0        104857600       0B     100G     0%
Total           109051904       0B     104G     0%

Jun 21 01:14:00 kg-vm ntpd[1245]: kernel time sync status change 6001
Jun 21 01:48:07 kg-vm ntpd[1245]: kernel time sync status change 2001
Jun 21 02:22:19 kg-vm ntpd[1245]: kernel time sync status change 6001
Jun 21 04:21:51 kg-vm ntpd[1245]: kernel time sync status change 2001
Jun 21 07:29:37 kg-vm ntpd[1245]: kernel time sync status change 6001
Jun 21 08:03:43 kg-vm ntpd[1245]: kernel time sync status change 2001
Jun 21 08:54:58 kg-vm ntpd[1245]: kernel time sync status change 6001
Jun 21 09:29:05 kg-vm ntpd[1245]: kernel time sync status change 2001
Jun 21 10:37:23 kg-vm ntpd[1245]: kernel time sync status change 6001
Jun 21 11:11:29 kg-vm ntpd[1245]: kernel time sync status change 2001

Oct 29 23:03:52 kg-vm newsyslog[1009]: logfile first created

Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s4a    989M    566M    344M    62%    /
devfs          1.0k    1.0k      0B   100%    /dev
/dev/ad4s4e    495M     37M    418M     8%    /tmp
/dev/ad4s4f    102G     62G     31G    67%    /usr
/dev/ad4s4d    4.7G    2.4G      2G    54%    /var
procfs         4.0k    4.0k      0B   100%    /proc
/dev/ad8s4d    139G    100G     28G    78%    /storage

11:24AM  up 117 days, 16:12, 2 users, load averages: 6.00, 6.00, 6.00

 1265  ??  I      0:01.84 /usr/local/sbin/smartd -c /usr/local/etc/smartd.conf -p /var/run/smartd.pid

First I have to shut down the virtual machines.

2015-03-26: ad4s4 - boinc - getting updated Milkyway@home binaries:

tingo@kg-vm$ fetch https://aceshardware.files.wordpress.com/2015/03/milkyway_1-48_1-36_x86_64-pc-freebsd.zip
milkyway_1-48_1-36_x86_64-pc-freebsd.zip      100% of 1017 kB 1198 kBps

unpack

tingo@kg-vm$ unzip milkyway_1-48_1-36_x86_64-pc-freebsd.zip
Archive:  milkyway_1-48_1-36_x86_64-pc-freebsd.zip
   creating: milkyway_1.48_1.36_x86_64-pc-freebsd/
  inflating: milkyway_1.48_1.36_x86_64-pc-freebsd/README 
  inflating: milkyway_1.48_1.36_x86_64-pc-freebsd/app_info.xml 
  inflating: milkyway_1.48_1.36_x86_64-pc-freebsd/milkyway_nbody_1.48_x86_64-pc-freebsd 
  inflating: milkyway_1.48_1.36_x86_64-pc-freebsd/milkyway_separation_1.36_x86_64-pc-freebsd 

copy to correct place, binaries first:

root@kg-vm# pwd
/var/db/boinc/projects/milkyway.cs.rpi.edu_milkyway
root@kg-vm# cp -v /home/tingo/dl/milkyway_1.48_1.36_x86_64-pc-freebsd/mi* .
cp: ./milkyway_separation_1.36_x86_64-pc-freebsd: Text file busy
/home/tingo/dl/milkyway_1.48_1.36_x86_64-pc-freebsd/milkyway_nbody_1.48_x86_64-pc-freebsd -> ./milkyway_nbody_1.48_x86_64-pc-freebsd

ok, stop boinc first:

root@kg-vm# service boinc-client stop
Stopping boinc_client.
Waiting for PIDS: 1329.

now copy in the new file:

root@kg-vm# cp -v /home/tingo/dl/milkyway_1.48_1.36_x86_64-pc-freebsd/milkyway_separation_1.36_x86_64-pc-freebsd .
/home/tingo/dl/milkyway_1.48_1.36_x86_64-pc-freebsd/milkyway_separation_1.36_x86_64-pc-freebsd -> ./milkyway_separation_1.36_x86_64-pc-freebsd

finally the xml file:

root@kg-vm# cp -v /home/tingo/dl/milkyway_1.48_1.36_x86_64-pc-freebsd/app_info.xml .
/home/tingo/dl/milkyway_1.48_1.36_x86_64-pc-freebsd/app_info.xml -> ./app_info.xml

ok?

root@kg-vm# ll a* mi*
-rw-r--r--  1 boinc  nobody      980 Mar 26 19:36 app_info.xml
-rwxr-xr-x  1 boinc  nobody  1343928 Nov 23 05:25 milkyway_nbody_1.44_x86_64-pc-freebsd*
-rwxr-xr-x  1 root   nobody  1348024 Mar 26 19:31 milkyway_nbody_1.48_x86_64-pc-freebsd*
-rwxr-xr-x  1 boinc  nobody  1072736 Mar 26 19:35 milkyway_separation_1.36_x86_64-pc-freebsd*

change owner:

root@kg-vm# chown boinc milkyway_nbody_1.48_x86_64-pc-freebsd
root@kg-vm# ll milkyway_nbody_1.48_x86_64-pc-freebsd
-rwxr-xr-x  1 boinc  nobody  1348024 Mar 26 19:31 milkyway_nbody_1.48_x86_64-pc-freebsd*

final step - restart boinc-client:

root@kg-vm# service boinc-client start
Starting boinc_client.

done.

2015-03-26: ad4s4 - boinc - I have been running optimized binaries for Milkyway@Home for a while now (found in this thread):

tingo@kg-vm$ uname -a
FreeBSD kg-vm.kg4.no 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #5: Sun Jun  9 17:44:22 CEST 2013     root@kg-vm.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64
tingo@kg-vm$ ll /var/db/boinc/projects/milkyway.cs.rpi.edu_milkyway/app*
-rw-r--r--  1 boinc  nobody  - 980 Nov 23 05:45 /var/db/boinc/projects/milkyway.cs.rpi.edu_milkyway/app_info.xml
tingo@kg-vm$ ll /var/db/boinc/projects/milkyway.cs.rpi.edu_milkyway/mi*
-rwxr-xr-x  1 boinc  nobody  - 1343928 Nov 23 05:25 /var/db/boinc/projects/milkyway.cs.rpi.edu_milkyway/milkyway_nbody_1.44_x86_64-pc-freebsd*
-rwxr-xr-x  1 boinc  nobody  - 1072256 Nov 23 05:47 /var/db/boinc/projects/milkyway.cs.rpi.edu_milkyway/milkyway_separation_1.36_x86_64-pc-freebsd*

it.

2015-02-22: ad4s4 - after about one day of uptime at full load (BOINC running), this is the load and temp, fans values:

root@kg-vm# date;temp;fans;uptime
Mon Feb 23 18:06:19 CET 2015
CPU: 64.0C
MB:  41.0C
CPU fan: 5357
cassis fan: 5357
 6:06PM  up 1 day,  3:29, 2 users, load averages: 6.08, 6.15, 6.10

the fan setting (in BIOS) was left at "Standard" - unfortunately the fans are very audible.

2015-02-22: ad4s4 - after getting the new motherboard and new cpu installed, I booted FreeBSD 8.3-prerelease again:

tingo@kg-vm$ uname -a
FreeBSD kg-vm.kg4.no 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #5: Sun Jun  9 17:44:22 CEST 2013     root@kg-vm.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

and the machine is back in the game again.

2015-02-22: ad4s3 - after getting the new motherboard and new cpu installed, I tried booting FreeBSD 6.4-stable, it boots, but the network card is not supported. uname output transcribed:

root@kg-vm# uname -a
FreeBSD kg-vm.kg4.no 6.4-STABLE FreeBSD 6.4-STABLE #4: Sun Jul   4 23:39:02 CET 2010     root@kg-vm.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

that's all.

2015-02-22: ad4s1 - after getting the new motherboard and new cpu installed, I tried booting FreeBSD 7.4-stable, it works:

tingo@kg-vm$ uname -a
FreeBSD kg-vm.kg4.no 7.4-STABLE FreeBSD 7.4-STABLE #5: Sat Oct 13 00:27:57 CEST 2012     root@kg-vm.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

and networking works.

2015-01-05: ad4s4 - the VirtualBox files I'm interested in are on /usr, so mount it:

root@kg-core1# mount /dev/da1s4f /media

find files:

root@kg-core1# ll -h "/media/home/tingo/VirtualBox VMs"/FreeBSD-v5/
total 33180742
drwxr-xr-x  3 tingo  users   512B Feb 23  2014 ./
drwxr-xr-x  5 tingo  users   512B May  1  2012 ../
-rw-------  1 tingo  users   7.2k Feb 23  2014 FreeBSD-v5.vbox
-rw-------  1 tingo  users   7.2k Jan 15  2014 FreeBSD-v5.vbox-prev
-rw-------  1 tingo  users   7.7G Feb  5 04:21 FreeBSD-v5.vdi
drwxr-xr-x  2 tingo  users   512B Jul 12  2014 Logs/
-rw-------  1 tingo  users    23G Feb  5 03:01 v5-music.vdi

check space required:

root@kg-core1# du -sh "/media/home/tingo/VirtualBox VMs"/FreeBSD-v5/
 31G    /media/home/tingo/VirtualBox VMs/FreeBSD-v5/

I wonder if v7 can be temporary host?

2015-01-05: ad4s4 - I connected the hard drive to my FreeBSD workstation (via a sata-usb docking station):

tingo@kg-core1$ uname -a
FreeBSD kg-core1.kg4.no 9.3-STABLE FreeBSD 9.3-STABLE #0 r273918: Fri Oct 31 22:52:44 CET 2014     root@kg-core1.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

it shows up as da1. I'm interested in da1s4:

root@kg-core1# ls -l /dev/da1s4*
crw-r-----  1 root  operator  0xc4 Feb  5 19:50 /dev/da1s4
crw-r-----  1 root  operator  0xd0 Feb  5 19:50 /dev/da1s4a
crw-r-----  1 root  operator  0xd1 Feb  5 19:50 /dev/da1s4d
crw-r-----  1 root  operator  0xd2 Feb  5 19:50 /dev/da1s4e
crw-r-----  1 root  operator  0xd3 Feb  5 19:50 /dev/da1s4f

run fsck on them:

root@kg-core1# fsck /dev/da1s4a
fsck: Could not determine filesystem type
root@kg-core1# fsck_ufs /dev/da1s4a
** /dev/da1s4a
** Last Mounted on /
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
3207 files, 289818 used, 216669 free (2349 frags, 26790 blocks, 0.5% fragmentation)

***** FILE SYSTEM MARKED CLEAN *****

root ok.

root@kg-core1# fsck_ufs /dev/da1s4d
** /dev/da1s4d
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
INCORRECT BLOCK COUNT I=212023 (4 should be 0)
CORRECT? [yn] y

INCORRECT BLOCK COUNT I=212025 (4 should be 0)
CORRECT? [yn] y

INCORRECT BLOCK COUNT I=212032 (4 should be 0)
CORRECT? [yn] y

INCORRECT BLOCK COUNT I=212034 (4 should be 0)
CORRECT? [yn] y

INCORRECT BLOCK COUNT I=212082 (4 should be 0)
CORRECT? [yn] y

** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE  I=212034  OWNER=1002 MODE=100644
SIZE=0 MTIME=Feb  5 04:21 2015
RECONNECT? [yn] y

NO lost+found DIRECTORY
CREATE? [yn] y

** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? [yn] y

SUMMARY INFORMATION BAD
SALVAGE? [yn] y

BLK(S) MISSING IN BIT MAPS
SALVAGE? [yn] y

29740 files, 1233236 used, 1229507 free (10003 frags, 152438 blocks, 0.4% fragmentation)

***** FILE SYSTEM MARKED CLEAN *****

***** FILE SYSTEM WAS MODIFIED *****

/var fixed.

root@kg-core1# fsck_ufs /dev/da1s4e
** /dev/da1s4e
** Last Mounted on /tmp
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
52 files, 19411 used, 234404 free (44 frags, 29295 blocks, 0.0% fragmentation)

***** FILE SYSTEM MARKED CLEAN *****

/tmp ok.

root@kg-core1# fsck_ufs /dev/da1s4f
** /dev/da1s4f
** Last Mounted on /usr
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
452270 files, 32380554 used, 21149204 free (148516 frags, 2625086 blocks, 0.3% fragmentation)

***** FILE SYSTEM MARKED CLEAN *****

/usr ok. so, da1s4a is root, da1s4d is /var, da1s4e is /tmp and da1s4f is /usr. I mount da1s4d and check the log file:

root@kg-core1# mount /dev/da1s4d /media
root@kg-core1# ll /media/log/messages
-rw-r--r--  1 root  wheel  55625 Feb  5 03:56 /media/log/messages
root@kg-core1# tail /media/log/messages
Feb  4 20:49:01 kg-vm ntpd[1265]: kernel time sync status change 2001
Feb  4 22:48:33 kg-vm ntpd[1265]: kernel time sync status change 6001
Feb  4 23:56:48 kg-vm ntpd[1265]: kernel time sync status change 2001
Feb  5 00:31:00 kg-vm ntpd[1265]: kernel time sync status change 6001
Feb  5 00:48:03 kg-vm ntpd[1265]: kernel time sync status change 2001
Feb  5 01:22:12 kg-vm ntpd[1265]: kernel time sync status change 6001
Feb  5 01:39:18 kg-vm ntpd[1265]: kernel time sync status change 2001
Feb  5 02:30:36 kg-vm ntpd[1265]: kernel time sync status change 6001
Feb  5 03:04:42 kg-vm ntpd[1265]: kernel time sync status change 2001
Feb  5 03:55:56 kg-vm ntpd[1265]: kernel time sync status change 6001

ok, so the machine died after 03:55 sometime.

2014-11-22: ad4s4 - BOINC - the Seti@home project has been out of work for a while now, so I decided to add another project - Asteroids@home.

root@kg-vm# uname -a
FreeBSD kg-vm.kg4.no 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #5: Sun Jun  9 17:44:22 CEST 2013     root@kg-vm.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

change to BOINC directory:

root@kg-vm# pwd
/var/db/boinc

create an account on Asteroids@home, then get the account key:

root@kg-vm# boinccmd --lookup_account http://asteroidsathome.net/boinc/ <userid> <password>
status: Success
poll status: operation in progress
poll status: operation in progress
account key: <account_key>

with the key, attach the project:

root@kg-vm# boinccmd --project_attach http://asteroidsathome.net/boinc/ <account_key>

and then work starts to show up in the boinc_curses window. Nice!

2014-07-12: ad4s4 - reboot due to a power failure (local circuit breaker tripped) yesterday. fsck runs and fixes all filesystems. From /var/log/messages:

Jul 12 10:04:03 kg-vm kernel: WARNING: / was not properly dismounted
Jul 12 10:04:03 kg-vm kernel: WARNING: /tmp was not properly dismounted
Jul 12 10:04:03 kg-vm kernel: WARNING: /usr was not properly dismounted
Jul 12 10:04:03 kg-vm kernel: WARNING: /var was not properly dismounted
Jul 12 10:04:03 kg-vm kernel: WARNING: /storage was not properly dismounted

Nothing more.

2014-02-23: ad4s4 - the drive situation now looks like this:

root@kg-vm# atacontrol list
ATA channel 0:
    Master:      no device present
    Slave:       no device present
ATA channel 1:
    Master:      no device present
    Slave:       no device present
ATA channel 2:
    Master:  ad4 <SAMSUNG HD501LJ/CR100-12> SATA revision 2.x
    Slave:       no device present
ATA channel 3:
    Master: acd0 <TSSTcorp CDDVDW SH-224BB/SB00> SATA revision 1.x
    Slave:       no device present
ATA channel 4:
    Master:  ad8 <SAMSUNG HD322HJ/1AG01113> SATA revision 2.x
    Slave:       no device present
ATA channel 5:
    Master: ad10 <SAMSUNG HD204UI/1AQ10001> SATA revision 2.x
    Slave:       no device present

and disk layout:

root@kg-vm# mdconfig -l -v
md0    vnode      100G    /storage/swap1
root@kg-vm# swapinfo -h;df -h
Device          1K-blocks     Used    Avail Capacity
/dev/ad4s1b       4194304       0B     4.0G     0%
/dev/md0        104857600       0B     100G     0%
Total           109051904       0B     104G     0%
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s4a    989M    566M    344M    62%    /
devfs          1.0k    1.0k      0B   100%    /dev
/dev/ad4s4e    495M     37M    418M     8%    /tmp
/dev/ad4s4f    102G     58G     35G    62%    /usr
/dev/ad4s4d    4.7G    2.3G    2.1G    52%    /var
procfs         4.0k    4.0k      0B   100%    /proc
/dev/ad8s4d    139G    100G     28G    78%    /storage

done.

2014-02-23: ad4s4 - after adding a new hard drive (ad10), it shows up like this in /var/log/messages:

Feb 23 21:37:25 kg-vm kernel: ad10: 1907729MB <SAMSUNG HD204UI 1AQ10001> at ata5-master UDMA100 SATA 3Gb/s

Feb 23 21:37:26 kg-vm smartd[1263]: Device: /dev/ad10, WARNING: Using smartmontools or hdparm with this
Feb 23 21:37:26 kg-vm smartd[1263]: drive may result in data loss due to a firmware bug.
Feb 23 21:37:26 kg-vm smartd[1263]: ****** THIS DRIVE MAY OR MAY NOT BE AFFECTED! ******
Feb 23 21:37:26 kg-vm smartd[1263]: Buggy and fixed firmware report same version number!
Feb 23 21:37:26 kg-vm smartd[1263]: See the following web pages for details:
Feb 23 21:37:26 kg-vm smartd[1263]: http://knowledge.seagate.com/articles/en_US/FAQ/223571en
Feb 23 21:37:26 kg-vm smartd[1263]: http://sourceforge.net/apps/trac/smartmontools/wiki/SamsungF4EGBadBlocks

but I have previously upgraded the firmware on this drive, no worries.

2014-01-15: ad4s4 - after upgrading the memory to 32 GB, the machine now shows:

root@kg-vm# dmesg | grep memory
real memory  = 34359738368 (32768 MB)
avail memory = 32828796928 (31307 MB)
root@kg-vm# sysctl hw.physmem
hw.physmem: 34056626176

that was all.

2014-01-15: ad4s4 - before shutdown (to do a memory upgrade on the machine), get some info:

root@kg-vm# uname -a
FreeBSD kg-vm.kg4.no 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #5: Sun Jun  9 17:44:22 CEST 2013     root@kg-vm.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64
root@kg-vm# date;temp;swapinfo -h;echo " ";tvlm;echo " ";tvls;echo " ";df -h;echo " ";uptime;echo " ";ps ax | grep -v grep | grep ddc;ps ax | grep -v grep | grep smartd;ps ax | grep -v grep | grep natd
Wed Jan 15 21:38:11 CET 2014
CPU: 71.0C
MB:  43.0C
Device          1K-blocks     Used    Avail Capacity
/dev/md0        104857600      88k     100G     0%
/dev/ad4s1b       4194304      96k       4G     0%
Total           109051904     184k     104G     0%

Jan 15 16:07:09 kg-vm ntpd[1245]: kernel time sync status change 6001
Jan 15 16:24:12 kg-vm ntpd[1245]: kernel time sync status change 2001
Jan 15 16:58:23 kg-vm ntpd[1245]: kernel time sync status change 6001
Jan 15 17:15:29 kg-vm ntpd[1245]: kernel time sync status change 2001
Jan 15 17:49:39 kg-vm ntpd[1245]: kernel time sync status change 6001
Jan 15 18:57:56 kg-vm ntpd[1245]: kernel time sync status change 2001
Jan 15 20:06:14 kg-vm ntpd[1245]: kernel time sync status change 6001
Jan 15 20:23:17 kg-vm ntpd[1245]: kernel time sync status change 2001
Jan 15 20:57:27 kg-vm ntpd[1245]: kernel time sync status change 6001
Jan 15 21:33:40 kg-vm kernel: re0: promiscuous mode disabled

Oct 29 23:03:52 kg-vm newsyslog[1009]: logfile first created

Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s4a    989M    566M    344M    62%    /
devfs          1.0k    1.0k      0B   100%    /dev
/dev/ad4s4e    495M     37M    418M     8%    /tmp
/dev/ad4s4f    102G     58G     35G    62%    /usr
/dev/ad4s4d    4.7G    2.3G    2.1G    53%    /var
procfs         4.0k    4.0k      0B   100%    /proc
/dev/ad8s4d    139G    100G     28G    78%    /storage

 9:38PM  up 176 days, 19:21, 4 users, load averages: 6.00, 6.03, 6.00

58603  ??  I      0:02.02 /usr/local/sbin/smartd -c /usr/local/etc/smartd.conf -p /var/run/smartd.pid

That's it. Now shutdown the machine.

2013-07-31: ad4s4 - I upgraded ports with portsnap fetch; portsnap update again. Then I used portupgrade to upgrade portupgrade, which took a bit of time, as a few ruby ports had to be updated as well as perl. The I upgraded boinc-client (now at v7) and boinc-astropulse. Meldingene i boinc_curses er ikke oppløftende:

root@kg-vm# boinccmd --get_messages 38
39: 31-Jul-2013 20:46:00 (low) [SETI@home] update requested by user
40: 31-Jul-2013 20:46:01 (low) [SETI@home] Sending scheduler request: Requested by user.
41: 31-Jul-2013 20:46:01 (low) [SETI@home] Requesting new tasks for CPU
42: 31-Jul-2013 20:46:03 (low) [SETI@home] Scheduler request completed: got 0 new tasks
43: 31-Jul-2013 20:46:03 (user notification) [SETI@home] Message from server: This project doesn't support computers of type x86_64-pc-freebsd

(det var lettere å bruke boinccmd for å frem meldingene)

2013-07-15: ad4s4 - I upgraded VirtualBox again:

root@kg-vm# pv virt*
virtualbox-ose-4.2.12       =  up-to-date with port
virtualbox-ose-kmod-4.2.12  =  up-to-date with port

After the upgrade, reload kernel modules and stuff:

root@kg-vm# service vboxnet stop
root@kg-vm# service vboxnet start

Now, head off the to virtual machines page to start vms.

2013-06-09: ad4s4 - VirtualBox has been upgraded:

2013-06-09: ad4s4 - prepare for qemu again:

root@kg-vm# ifconfig bridge0 create
root@kg-vm# ifconfig tap0 create
root@kg-vm# ifconfig bridge0 addm re0 addm tap0 up
root@kg-vm# chmod 0660 /dev/tap0
root@kg-vm# sysctl net.link.tap.user_open=1
net.link.tap.user_open: 0 -> 1
root@kg-vm# sysctl net.link.tap.up_on_open=1
net.link.tap.up_on_open: 0 -> 1

That's it.

2013-06-09: ad4s4 - update ports with portsnap:

root@kg-vm# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 6 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 Jun  9 02:07:18 CEST 2013:
b0dc867421ce9196318605dd048868b4d9deb7a276965e100% of   69 MB  816 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 Jun  9 02:07:18 CEST 2013 to Sun Jun  9 18:34:54 CEST 2013.
Fetching 3 metadata patches.. done.
Applying metadata patches... done.
Fetching 0 metadata files... done.
Fetching 46 patches.....10....20....30....40... done.
Applying patches... done.
Fetching 0 new ports or files... done.

then extract

root@kg-vm# portsnap extract
[...]
/usr/ports/x11/zenity/
Building new INDEX files... done.

that's it.

2013-06-09: ad4s4 - upgraded to FreeBSD 8.3-prerelease using make world. dmesg output: normal, verbose.

tingo@kg-vm$ uname -a
FreeBSD kg-vm.kg4.no 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #5: Sun Jun  9 17:44:22 CEST 2013     root@kg-vm.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

2013-06-09: ad4s4 - upgrade world.

root@kg-vm# cd /usr/src
root@kg-vm# make -j4 buildworld
[...]
--------------------------------------------------------------
>>> World build completed on Sun Jun  9 17:22:36 CEST 2013
--------------------------------------------------------------

Next step:

root@kg-vm# 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

Build done. Next is

root@kg-vm# mergemaster -p

*** Creating the temporary root environment in /var/tmp/temproot
 *** /var/tmp/temproot ready for use
 *** Creating and populating directory structure in /var/tmp/temproot



*** Beginning comparison

 *** Temp ./etc/group and installed have the same CVS Id, deleting
 *** Temp ./etc/master.passwd and installed have the same CVS Id, deleting

*** Comparison complete

*** /var/tmp/temproot is empty, deleting

*** Reinstalling Europe/Oslo as /etc/localtime


*** Comparing make variables

*** From /etc/make.conf
*** From /usr/src/share/examples/etc/make.conf

NO_PROFILE=     true    # Avoid compiling profiled libraries
 * No example variable with this name

PERL_VERSION=5.12.4
 * No example variable with this name

and then

root@kg-vm# make installworld
[...]
install -s -o root -g wheel -m 555   ldd32 /usr/bin

delete old cruft:

root@kg-vm# make delete-old
>>> Removing old files (only deletes safe to delete libs)
>>> Old files removed
>>> Removing old directories
>>> Old directories removed
To remove old libraries run 'make delete-old-libs'.
root@kg-vm# 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

then run mergemaster:

root@kg-vm# mergemaster -iUP
[...]
*** Reinstalling Europe/Oslo as /etc/localtime

all that remains is a reboot.

2013-06-09: ad4s4 - VirtualBox needs to be upgraded:

root@kg-vm# pv virt*
virtualbox-ose-4.0.8        <  needs updating (port has 4.2.12)
virtualbox-ose-kmod-4.0.8   <  needs updating (port has 4.2.12)
so I shutdown all virtual machines and do the upgrade. After upgrade:
virtualbox-ose-4.2.6        <  needs updating (port has 4.2.12)
virtualbox-ose-kmod-4.2.6_3  <  needs updating (port has 4.2.12)

When I try to re start the VirtualBox modules:

root@kg-vm# service vboxnet stop
root@kg-vm# service vboxnet start
/usr/local/etc/rc.d/vboxnet: WARNING: Can't load vboxnetflt module.
root@kg-vm# kldload vboxdrv
kldload: can't load vboxdrv: Exec format error

and /var/log/messages says:

Jun  9 16:48:48 kg-vm kernel: linker_load_file: Unsupported file type
Jun  9 16:48:48 kg-vm kernel: KLD vboxnetflt.ko: depends on vboxdrv - not available or version mismatch
Jun  9 16:48:48 kg-vm kernel: linker_load_file: Unsupported file type
Jun  9 16:49:09 kg-vm tingo: /usr/local/etc/rc.d/vboxnet: WARNING: Can't load vboxnetflt module.
Jun  9 16:49:09 kg-vm kernel: KLD vboxdrv.ko: depends on kernel - not available or version mismatch
Jun  9 16:49:09 kg-vm kernel: linker_load_file: Unsupported file type
Jun  9 16:49:09 kg-vm kernel: KLD vboxnetflt.ko: depends on vboxdrv - not available or version mismatch
Jun  9 16:49:09 kg-vm kernel: linker_load_file: Unsupported file type
Jun  9 16:49:53 kg-vm kernel: KLD vboxdrv.ko: depends on kernel - not available or version mismatch
Jun  9 16:49:53 kg-vm kernel: linker_load_file: Unsupported file type

Probably need to switch my ports tree to svn and update again.

2013-06-09: ad4s4 - let me create a vde switch:

root@kg-vm# vde_switch -d -s /tmp/vde1 -M /tmp/mgmt1 -tap tap0 -m 660 -g wheel --mgmtmode 660 --mgmtgroup wheel

check if the switch socket is there:

root@kg-vm# ls -l /tmp/vde1
total 0
srw-rw----  1 root  wheel  0 Jun  9 10:44 ctl

and the mgmt socket:

root@kg-vm# ls -l /tmp/mgmt1
srw-rw----  1 root  wheel  0 Jun  9 10:44 /tmp/mgmt1

Nice. From a different terminal, log into the switch:

tingo@kg-vm$ unixterm /tmp/mgmt1
VDE switch V.2.3.1
(C) Virtual Square Team (coord. R. Davoli) 2005,2006,2007 - GPLv2

vde$

Ok. What can we do here?

vde$ help
0000 DATA END WITH '.'
COMMAND PATH       SYNTAX          HELP
------------       --------------  ------------
ds                 ============    DATA SOCKET MENU
ds/showinfo                        show ds info
help               [arg]           Help (limited to arg when specified)
logout                             logout from this mgmt terminal
shutdown                           shutdown of the switch
showinfo                           show switch version and info
load               path            load a configuration script
hash               ============    HASH TABLE MENU
hash/showinfo                      show hash info
hash/setsize       N               change hash size
hash/setgcint      N               change garbage collector interval
hash/setexpire     N               change hash entries expire time
hash/setminper     N               minimum persistence time
hash/print                         print the hash table
hash/find          MAC [VLAN]      MAC lookup
fstp               ============    FAST SPANNING TREE MENU
fstp/showinfo                      show fstp info
fstp/setfstp       0/1             Fast spanning tree protocol 1=ON 0=OFF
fstp/setedge       VLAN PORT 1/0   Define an edge port for a vlan 1=Y 0=N
fstp/bonus         VLAN PORT COST  set the port bonus for a vlan
fstp/print         [N]             print fst data for the defined vlan
port               ============    PORT STATUS MENU
port/showinfo                      show port info
port/setnumports   N               set the number of ports
port/sethub        0/1             1=HUB 0=switch
port/setvlan       N VLAN          set port VLAN (untagged)
port/createauto                    create a port with an automatically allocated id (inactive|notallocatable)
port/create        N               create the port N (inactive|notallocatable)
port/remove        N               remove the port N
port/allocatable   N 0/1           Is the port allocatable as unnamed? 1=Y 0=N
port/setuser       N user          access control: set user
port/setgroup      N user          access control: set group
port/epclose       N ID            remove the endpoint port N/id ID
port/print         [N]             print the port/endpoint table
port/allprint      [N]             print the port/endpoint table (including inactive port)
vlan               ============    VLAN MANAGEMENT MENU
vlan/create        N               create the VLAN with tag N
vlan/remove        N               remove the VLAN with tag N
vlan/addport       N PORT          add port to the vlan N (tagged)
vlan/delport       N PORT          add port to the vlan N (tagged)
vlan/print         [N]             print the list of defined vlan
vlan/allprint      [N]             print the list of defined vlan (including inactive port)
.
1000 Success

quite a bit it seems.

vde$ ds/showinfo
0000 DATA END WITH '.'
ctl dir /tmp/vde1
std mode 0660
.
1000 Success

vde$ port/allprint
0000 DATA END WITH '.'
Port 0001 untagged_vlan=0000 ACTIVE - Unnamed Allocatable
 Current User: NONE Access Control: (User: NONE - Group: NONE)
  -- endpoint ID 0007 module tuntap      : tap0
.
1000 Success

vde$ vlan/allprint
0000 DATA END WITH '.'
VLAN 0000
 -- Port 0001 tagged=0 active=1 status=Forwarding
.
1000 Success

Ok.

2013-03-29: ad4s4 - time to start vms again.

tingo@kg-vm$ VBoxManage list runningvms
tingo@kg-vm$ VBoxManage list vms
"FreeBSD-v3" {003ebcaa-1c74-4672-86af-6493341287e7}
"xubuntu-v4" {07826334-8d9a-4c68-8132-b9cc4cea67a8}
"FreeBSD-v5" {5312412c-353b-41bf-9535-497e1c45de44}

v5:

tingo@kg-vm$ VBoxManage startvm FreeBSD-v5 -type headless
Waiting for the VM to power on...
VM has been successfully started.

v3:

tingo@kg-vm$ VBoxManage startvm FreeBSD-v3 -type headless
Waiting for the VM to power on...
VM has been successfully started.

check:

tingo@kg-vm$ VBoxManage list runningvms
"FreeBSD-v3" {003ebcaa-1c74-4672-86af-6493341287e7}
"FreeBSD-v5" {5312412c-353b-41bf-9535-497e1c45de44}

The rest is in the vms themselves.

2013-03-29: ad4s4 - no matter what I do, the milkyway workunits eat up all available memory and swap (100G!). I've just disabled the milkyway project for now (from the boinc_curses client).

2013-03-29: ad4s4 - a while after starting the boinc client again:

root@kg-vm# swapinfo -h
Device          1K-blocks     Used    Avail Capacity
/dev/ad4s1b       4194304       4G      26M    99%
/dev/md0        104857600      32G      67G    32%
Total           109051904      36G      67G    35%

and this in /var/log/messages:

Mar 29 16:41:44 kg-vm kernel: swap_pager: indefinite wait buffer: bufobj: 0, blkno: 1049512, size: 4096

also the v5 vm seems unresponsive, and I get a few disk errors in the v3 vm. A while later, more bad news in /var/log/messages:

Mar 29 16:41:44 kg-vm kernel: swap_pager: indefinite wait buffer: bufobj: 0, blkno: 1049512, size: 4096
Mar 29 17:00:32 kg-vm kernel: swap_pager: indefinite wait buffer: bufobj: 0, blkno: 1375391, size: 4096
Mar 29 17:00:46 kg-vm kernel: swap zone exhausted, increase kern.maxswzone
Mar 29 17:00:46 kg-vm kernel: pid 4203 (milkyway_0.18_amd64), uid 1002, was killed: out of swap space

Ok, so up with the kern.maxswzone again, and reboot server.

root@kg-vm# grep swzone /boot/loader.conf
kern.maxswzone="256M"

now reboot.

2013-03-29: ad4s4 - first start the v3 vm again:

tingo@kg-vm$ VBoxManage startvm FreeBSD-v3 -type headless
Waiting for the VM to power on...
VM has been successfully started.

verify:

tingo@kg-vm$ VBoxManage list runningvms
"FreeBSD-v3" {003ebcaa-1c74-4672-86af-6493341287e7}
"FreeBSD-v5" {5312412c-353b-41bf-9535-497e1c45de44}

ok.

2013-03-29: ad4s4 - redo the swap file, this time as 100G: remove the old one:

root@kg-vm# swapoff /dev/md0
root@kg-vm# mdconfig -lv
md0    vnode       50G    /storage/swap1
root@kg-vm# mdconfig -d -u 0
root@kg-vm# mdconfig -lv

I'll just empty it:

root@kg-vm# >/storage/swap1

create a new one

root@kg-vm# dd if=/dev/zero of=/storage/swap1 bs=1G count=100
100+0 records in
100+0 records out
107374182400 bytes transferred in 1717.393061 secs (62521612 bytes/sec)

so, that's about 28 - 29 minutes. Permissions are ok:

root@kg-vm# ll -h /storage/swap1
-rw-------  1 root  wheel   100G Mar 29 15:58 /storage/swap1

connect it up:

root@kg-vm# mdconfig -a -t vnode -f /storage/swap1 -u 0

turn on swap to it:

root@kg-vm# swapon /dev/md0

verify:

root@kg-vm# swapinfo -h
Device          1K-blocks     Used    Avail Capacity
/dev/ad4s1b       4194304      14M       4G     0%
/dev/md0        104857600       0B     100G     0%
Total           109051904      14M     104G     0%

looks ok. Next, start the boinc client again, and see just how much memory that milkyway workunit eats up.

2013-03-29: ad4s4 - the v5 vm isn't cooperative. In order to see what's going on, I need to start it from Virtualbox, so I can get a console on it. stop it:

tingo@kg-vm$ VBoxManage list runningvms
"FreeBSD-v5" {5312412c-353b-41bf-9535-497e1c45de44}
tingo@kg-vm$ VBoxManage controlvm FreeBSD-v5 poweroff
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

and then I can start it from the gui. OK, that worked. After fsck is done, I shutdown the machine, and start it the usual way again:

tingo@kg-vm$ VBoxManage list runningvms
tingo@kg-vm$ VBoxManage startvm FreeBSD-v5 -type headless
Waiting for the VM to power on...
VM has been successfully started.
tingo@kg-vm$ VBoxManage list runningvms
"FreeBSD-v5" {5312412c-353b-41bf-9535-497e1c45de44}

Does ssh into the machine work now? Yes it does. Puh.

2013-03-29: ad4s4 - running Xorg works:

tingo@kg-vm$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 1920 x 1920
VGA-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 298mm
   1920x1080      60.0*+   60.0 
   1680x1050      60.0 
   1600x900       60.0 
   1280x1024      75.0     60.0 
   1280x800       59.8 
   1152x864       75.0 
   1280x720       60.0 
   1024x768       75.0     60.0 
   832x624        74.6 
   800x600        75.0     60.3 
   640x480        75.0     59.9 
   720x400        70.1 
DVI-0 disconnected (normal left inverted right x axis y axis)

we are using the radeon driver. From /var/log/Xorg.0.log:

(II) Primary Device is: PCI 01@00:05:0
(WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
(II) RADEON(0): TOTO SAYS 00000000feaf0000
(II) RADEON(0): MMIO registers at 0x00000000feaf0000: size 64KB
(II) RADEON(0): PCI bus 1 card 5 func 0
(**) RADEON(0): Depth 24, (--) framebuffer bpp 32
(II) RADEON(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
(==) RADEON(0): Default visual is TrueColor

(II) RADEON(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0000
(==) RADEON(0): RGB weight 888
(II) RADEON(0): Using 8 bits per RGB (8 bit DAC)
(--) RADEON(0): Chipset: "ATI Radeon 3000 Graphics" (ChipID = 0x9616)
(--) RADEON(0): Linear framebuffer at 0x00000000d0000000
(II) RADEON(0): PCI card detected

(II) RADEON(0): ATOM BIOS detected
(II) RADEON(0): ATOM BIOS Rom:
        SubsystemVendorID: 0x1002 SubsystemID: 0x1002
        IOBaseAddress: 0xd000
        Filename: M4A76DVI.002
        BIOS Bootup Message:
B27722_RS780C RS780 DDR2 200e/500m                                         

(II) RADEON(0): Framebuffer space used by Firmware (kb): 16
(II) RADEON(0): Start of VRAM area used by Firmware: 0xfffc000
(II) RADEON(0): AtomBIOS requests 16kB of VRAM scratch space
(II) RADEON(0): AtomBIOS VRAM scratch base: 0xfffc000
(II) RADEON(0): Cannot get VRAM scratch space. Allocating in main memory instead
(II) RADEON(0): Default Engine Clock: 350000
(II) RADEON(0): Default Memory Clock: 800000
(II) RADEON(0): Maximum Pixel ClockPLL Frequency Output: 1200000
(II) RADEON(0): Minimum Pixel ClockPLL Frequency Output: 0
(II) RADEON(0): Maximum Pixel ClockPLL Frequency Input: 13500
(II) RADEON(0): Minimum Pixel ClockPLL Frequency Input: 1000
(II) RADEON(0): Maximum Pixel Clock: 400000
(II) RADEON(0): Reference Clock: 14320
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 10, (OK)
drmOpenByBusid: Searching for BusID pci:0000:01:05.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 10, (OK)
drmOpenByBusid: drmOpenMinor returns 10
drmOpenByBusid: drmGetBusid reports pci:0000:01:05.0
(II) RADEON(0): [dri] Found DRI library version 1.3.0 and kernel module version 1.31.0
(==) RADEON(0): Page Flipping disabled on r5xx and newer chips.

(II) RADEON(0): Will try to use DMA for Xv image transfers
(II) RADEON(0): Detected total video RAM=262144K, accessible=262144K (PCI BAR=262144K)
(--) RADEON(0): Mapped VideoRAM: 262144 kByte (128 bit DDR SDRAM)
(II) RADEON(0): Color tiling disabled

(II) RADEON(0): PLL parameters: rf=1432 rd=12 min=90000 max=120000; xclk=40000
(II) RADEON(0): Output VGA-0 using monitor section Monitor0
(II) RADEON(0): I2C bus "VGA-0" initialized.
(II) RADEON(0): Output DVI-0 has no monitor section
(II) RADEON(0): I2C bus "DVI-0" initialized.
(II) RADEON(0): Port0:
  XRANDR name: VGA-0
  Connector: VGA
  CRT1: INTERNAL_KLDSCP_DAC1
  DDC reg: 0x7e40
(II) RADEON(0): Port1:
  XRANDR name: DVI-0
  Connector: DVI-D
  DFP3: INTERNAL_KLDSCP_LVTMA
  DDC reg: 0x7e50
(II) RADEON(0): I2C device "VGA-0:ddc2" registered at address 0xA0.
(II) RADEON(0): I2C device "VGA-0:DDC control interface" registered at address 0x6E.
(II) RADEON(0): EDID vendor "BNQ", prod id 30886
(II) RADEON(0): Using EDID range info for horizontal sync
(II) RADEON(0): Using EDID range info for vertical refresh
(II) RADEON(0): Printing DDC gathered Modelines:
(II) RADEON(0): Modeline "1920x1080"x0.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz)
(II) RADEON(0): Modeline "800x600"x0.0   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz)
(II) RADEON(0): Modeline "640x480"x0.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz)
(II) RADEON(0): Modeline "640x480"x0.0   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz)
(II) RADEON(0): Modeline "720x400"x0.0   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz)
(II) RADEON(0): Modeline "1280x1024"x0.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz)
(II) RADEON(0): Modeline "1024x768"x0.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz)
(II) RADEON(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz)
(II) RADEON(0): Modeline "832x624"x0.0   57.28  832 864 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz)
(II) RADEON(0): Modeline "800x600"x0.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz)
(II) RADEON(0): Modeline "1152x864"x0.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz)
(II) RADEON(0): Modeline "1280x800"x0.0   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync (49.7 kHz)
(II) RADEON(0): Modeline "1280x720"x60.0   74.48  1280 1336 1472 1664  720 721 724 746 -hsync +vsync (44.8 kHz)
(II) RADEON(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz)
(II) RADEON(0): Modeline "1600x900"x60.0  119.00  1600 1696 1864 2128  900 901 904 932 -hsync +vsync (55.9 kHz)
(II) RADEON(0): Modeline "1680x1050"x0.0  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz)
(II) RADEON(0): Modeline "1920x1080"x60.0  172.80  1920 2040 2248 2576  1080 1081 1084 1118 -hsync +vsync (67.1 kHz)
(II) RADEON(0): Output: VGA-0, Detected Monitor Type: 1
(II) RADEON(0): EDID data from the display on output: VGA-0 ----------------------
(II) RADEON(0): Manufacturer: BNQ  Model: 78a6  Serial#: 21573
(II) RADEON(0): Year: 2012  Week: 30
(II) RADEON(0): EDID Version: 1.3
(II) RADEON(0): Analog Display Input,  Input Voltage Level: 0.700/0.300 V
(II) RADEON(0): Sync:  Separate  Composite  SyncOnGreen
(II) RADEON(0): Max Image Size [cm]: horiz.: 53  vert.: 30
(II) RADEON(0): Gamma: 2.20
(II) RADEON(0): DPMS capabilities: Off; RGB/Color Display
(II) RADEON(0): Default color space is primary color space
(II) RADEON(0): First detailed timing is preferred mode
(II) RADEON(0): redX: 0.631 redY: 0.351   greenX: 0.334 greenY: 0.615
(II) RADEON(0): blueX: 0.157 blueY: 0.051   whiteX: 0.313 whiteY: 0.329
(II) RADEON(0): Supported established timings:
(II) RADEON(0): 720x400@70Hz
(II) RADEON(0): 640x480@60Hz
(II) RADEON(0): 640x480@75Hz
(II) RADEON(0): 800x600@60Hz
(II) RADEON(0): 800x600@75Hz
(II) RADEON(0): 832x624@75Hz
(II) RADEON(0): 1024x768@60Hz
(II) RADEON(0): 1024x768@75Hz
(II) RADEON(0): 1280x1024@75Hz
(II) RADEON(0): 1152x864@75Hz
(II) RADEON(0): Manufacturer's mask: 0
(II) RADEON(0): Supported standard timings:
(II) RADEON(0): #0: hsize: 1280  vsize 800  refresh: 60  vid: 129
(II) RADEON(0): #1: hsize: 1280  vsize 720  refresh: 60  vid: 49281
(II) RADEON(0): #2: hsize: 1280  vsize 1024  refresh: 60  vid: 32897
(II) RADEON(0): #3: hsize: 1600  vsize 900  refresh: 60  vid: 49321
(II) RADEON(0): #4: hsize: 1680  vsize 1050  refresh: 60  vid: 179
(II) RADEON(0): #5: hsize: 1920  vsize 1080  refresh: 60  vid: 49361
(II) RADEON(0): Supported detailed timing:
(II) RADEON(0): clock: 148.5 MHz   Image Size:  531 x 298 mm
(II) RADEON(0): h_active: 1920  h_sync: 2008  h_sync_end 2052 h_blank_end 2200 h_border: 0
(II) RADEON(0): v_active: 1080  v_sync: 1084  v_sync_end 1089 v_blanking: 1125 v_border: 0
(II) RADEON(0): Serial No: P7C08203019
(II) RADEON(0): Ranges: V min: 50 V max: 76 Hz, H min: 30 H max: 83 kHz, PixClock max 210 MHz
(II) RADEON(0): Monitor name: BenQ GL2450H
(II) RADEON(0): EDID (in hex):
(II) RADEON(0):         00ffffffffffff0009d1a67845540000
(II) RADEON(0):         1e1601030e351e782eba45a159559d28
(II) RADEON(0):         0d5054a56b80810081c08180a9c0b300
(II) RADEON(0):         d1c001010101023a801871382d40582c
(II) RADEON(0):         4500132a2100001e000000ff00503743
(II) RADEON(0):         30383230333031390a20000000fd0032
(II) RADEON(0):         4c1e5315000a202020202020000000fc
(II) RADEON(0):         0042656e5120474c32343530480a00b8
finished output detect: 0
(II) RADEON(0): I2C device "DVI-0:ddc2" registered at address 0xA0.
(II) RADEON(0): Output: DVI-0, Detected Monitor Type: 0
finished output detect: 1
finished all detect
(II) RADEON(0): EDID vendor "BNQ", prod id 30886
(II) RADEON(0): Using hsync ranges from config file
(II) RADEON(0): Using vrefresh ranges from config file
(II) RADEON(0): Printing DDC gathered Modelines:
(II) RADEON(0): Modeline "1920x1080"x0.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz)
(II) RADEON(0): Modeline "800x600"x0.0   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz)
(II) RADEON(0): Modeline "640x480"x0.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz)
(II) RADEON(0): Modeline "640x480"x0.0   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz)
(II) RADEON(0): Modeline "720x400"x0.0   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz)
(II) RADEON(0): Modeline "1280x1024"x0.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz)
(II) RADEON(0): Modeline "1024x768"x0.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz)
(II) RADEON(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz)
(II) RADEON(0): Modeline "832x624"x0.0   57.28  832 864 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz)
(II) RADEON(0): Modeline "800x600"x0.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz)
(II) RADEON(0): Modeline "1152x864"x0.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz)
(II) RADEON(0): Modeline "1280x800"x0.0   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync (49.7 kHz)
(II) RADEON(0): Modeline "1280x720"x60.0   74.48  1280 1336 1472 1664  720 721 724 746 -hsync +vsync (44.8 kHz)
(II) RADEON(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz)
(II) RADEON(0): Modeline "1600x900"x60.0  119.00  1600 1696 1864 2128  900 901 904 932 -hsync +vsync (55.9 kHz)
(II) RADEON(0): Modeline "1680x1050"x0.0  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz)
(II) RADEON(0): Modeline "1920x1080"x60.0  172.80  1920 2040 2248 2576  1080 1081 1084 1118 -hsync +vsync (67.1 kHz)
(II) RADEON(0): Output: VGA-0, Detected Monitor Type: 1
(II) RADEON(0): EDID data from the display on output: VGA-0 ----------------------
(II) RADEON(0): Manufacturer: BNQ  Model: 78a6  Serial#: 21573
(II) RADEON(0): Year: 2012  Week: 30
(II) RADEON(0): EDID Version: 1.3
(II) RADEON(0): Analog Display Input,  Input Voltage Level: 0.700/0.300 V
(II) RADEON(0): Sync:  Separate  Composite  SyncOnGreen
(II) RADEON(0): Max Image Size [cm]: horiz.: 53  vert.: 30
(II) RADEON(0): Gamma: 2.20
(II) RADEON(0): DPMS capabilities: Off; RGB/Color Display
(II) RADEON(0): Default color space is primary color space
(II) RADEON(0): First detailed timing is preferred mode
(II) RADEON(0): redX: 0.631 redY: 0.351   greenX: 0.334 greenY: 0.615
(II) RADEON(0): blueX: 0.157 blueY: 0.051   whiteX: 0.313 whiteY: 0.329
(II) RADEON(0): Supported established timings:
(II) RADEON(0): 720x400@70Hz
(II) RADEON(0): 640x480@60Hz
(II) RADEON(0): 640x480@75Hz
(II) RADEON(0): 800x600@60Hz
(II) RADEON(0): 800x600@75Hz
(II) RADEON(0): 832x624@75Hz
(II) RADEON(0): 1024x768@60Hz
(II) RADEON(0): 1024x768@75Hz
(II) RADEON(0): 1280x1024@75Hz
(II) RADEON(0): 1152x864@75Hz
(II) RADEON(0): Manufacturer's mask: 0
(II) RADEON(0): Supported standard timings:
(II) RADEON(0): #0: hsize: 1280  vsize 800  refresh: 60  vid: 129
(II) RADEON(0): #1: hsize: 1280  vsize 720  refresh: 60  vid: 49281
(II) RADEON(0): #2: hsize: 1280  vsize 1024  refresh: 60  vid: 32897
(II) RADEON(0): #3: hsize: 1600  vsize 900  refresh: 60  vid: 49321
(II) RADEON(0): #4: hsize: 1680  vsize 1050  refresh: 60  vid: 179
(II) RADEON(0): #5: hsize: 1920  vsize 1080  refresh: 60  vid: 49361
(II) RADEON(0): Supported detailed timing:
(II) RADEON(0): clock: 148.5 MHz   Image Size:  531 x 298 mm
(II) RADEON(0): h_active: 1920  h_sync: 2008  h_sync_end 2052 h_blank_end 2200 h_border: 0
(II) RADEON(0): v_active: 1080  v_sync: 1084  v_sync_end 1089 v_blanking: 1125 v_border: 0
(II) RADEON(0): Serial No: P7C08203019
(II) RADEON(0): Ranges: V min: 50 V max: 76 Hz, H min: 30 H max: 83 kHz, PixClock max 210 MHz
(II) RADEON(0): Monitor name: BenQ GL2450H
(II) RADEON(0): EDID (in hex):
(II) RADEON(0):         00ffffffffffff0009d1a67845540000
(II) RADEON(0):         1e1601030e351e782eba45a159559d28
(II) RADEON(0):         0d5054a56b80810081c08180a9c0b300
(II) RADEON(0):         d1c001010101023a801871382d40582c
(II) RADEON(0):         4500132a2100001e000000ff00503743
(II) RADEON(0):         30383230333031390a20000000fd0032
(II) RADEON(0):         4c1e5315000a202020202020000000fc
(II) RADEON(0):         0042656e5120474c32343530480a00b8
(II) RADEON(0): EDID vendor "BNQ", prod id 30886
(II) RADEON(0): Output: DVI-0, Detected Monitor Type: 0
(II) RADEON(0): Output VGA-0 connected
(II) RADEON(0): Output DVI-0 disconnected
(II) RADEON(0): Using exact sizes for initial modes
(II) RADEON(0): Output VGA-0 using initial mode 1920x1080
(II) RADEON(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
(**) RADEON(0): Display dimensions: (530, 300) mm
(**) RADEON(0): DPI set to (92, 162)

that's all.

2013-03-29: ad4s4 - more fun with vm's:

tingo@kg-vm$ VBoxManage modifyvm FreeBSD-v5  --vrde on
VBoxManage: error: The machine 'FreeBSD-v5' is already locked for a session (or being unlocked)
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Machine, interface IMachine, callee nsISupports
Context: "LockMachine(a->session, LockType_Write)" at line 339 of file VBoxManageModifyVM.cpp

Strange. Let's get more info:

tingo@kg-vm$ VBoxManage showvminfo FreeBSD-v5
Name:            FreeBSD-v5
Guest OS:        FreeBSD
UUID:            5312412c-353b-41bf-9535-497e1c45de44
Config file:     /home/tingo/VirtualBox VMs/FreeBSD-v5/FreeBSD-v5.vbox
Snapshot folder: /home/tingo/VirtualBox VMs/FreeBSD-v5/Snapshots
Log folder:      /home/tingo/VirtualBox VMs/FreeBSD-v5/Logs
Hardware UUID:   5312412c-353b-41bf-9535-497e1c45de44
Memory size:     512MB
Page Fusion:     off
VRAM size:       9MB
HPET:            off
Chipset:         piix3
Firmware:        BIOS
Number of CPUs:  1
Synthetic Cpu:   off
CPUID overrides: None
Boot menu mode:  message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI:            on
IOAPIC:          off
PAE:             off
Time offset:     0 ms
RTC:             local time
Hardw. virt.ext: on
Hardw. virt.ext exclusive: on
Nested Paging:   on
Large Pages:     on
VT-x VPID:       on
State:           running (since 2013-03-29T12:13:23.996000000)
Monitor count:   1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Storage Controller Name (0):            IDE Controller
Storage Controller Type (0):            PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0):  2
Storage Controller Port Count (0):      2
Storage Controller Bootable (0):        on
IDE Controller (0, 0): /home/tingo/VirtualBox VMs/FreeBSD-v5/FreeBSD-v5.vdi (UUID: d27f675e-2be9-4852-85cd-460dc90d101a)
IDE Controller (0, 1): /usr/home/tingo/VirtualBox VMs/FreeBSD-v5/v5-music.vdi (UUID: a35d30b2-2ff0-40f2-8778-8976c2f5a95b)
IDE Controller (1, 0): Empty
NIC 1:           MAC: 0800274DAC4C, Attachment: Bridged Interface 're0', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0
NIC 2:           disabled
NIC 3:           disabled
NIC 4:           disabled
NIC 5:           disabled
NIC 6:           disabled
NIC 7:           disabled
NIC 8:           disabled
Pointing Device: PS/2 Mouse
Keyboard Device: PS/2 Keyboard
UART 1:          disabled
UART 2:          disabled
Audio:           disabled
Clipboard Mode:  Bidirectional
Video mode:      720x400x0
VRDE:            disabled
USB:             disabled

USB Device Filters:

<none>

Available remote USB devices:

<none>

Currently Attached USB Devices:

<none>

Shared folders:  <none>

VRDE Connection:    not active
Clients so far:     0

Guest:

OS type:                             FreeBSD
Additions run level:                 0
Configured memory balloon size:      0 MB

Not sure that's any help.

2013-03-29: ad4s4 - let's start the vms again:

tingo@kg-vm$ VBoxManage list vms
"FreeBSD-v3" {003ebcaa-1c74-4672-86af-6493341287e7}
"xubuntu-v4" {07826334-8d9a-4c68-8132-b9cc4cea67a8}
"FreeBSD-v5" {5312412c-353b-41bf-9535-497e1c45de44}
tingo@kg-vm$ VBoxManage list runningvms

v3:

tingo@kg-vm$ VBoxManage startvm FreeBSD-v3 -type headless
Waiting for the VM to power on...
VM has been successfully started.

v5:

tingo@kg-vm$ VBoxManage startvm FreeBSD-v5 -type headless
Waiting for the VM to power on...
VM has been successfully started.

verify:

tingo@kg-vm$ VBoxManage list runningvms
"FreeBSD-v3" {003ebcaa-1c74-4672-86af-6493341287e7}
"FreeBSD-v5" {5312412c-353b-41bf-9535-497e1c45de44}

done.

2013-03-29: ad4s4 - after reboot, the server now has these parameters:

root@kg-vm# sysctl kern.maxswzone
kern.maxswzone: 134217728
root@kg-vm# swapinfo -h
Device          1K-blocks     Used    Avail Capacity
/dev/ad4s1b       4194304     369M     3.7G     9%
/dev/md0         52428800     372M      49G     1%
Total            56623104     742M      53G     1%
root@kg-vm# mdconfig -l -v
md0    vnode       50G    /storage/swap1

Let's hope that this works.

2013-03-29: ad4s4 - it looks like vm v5 is stuck, let's see if we can convince it to shutdown:

tingo@kg-vm$ VBoxManage list runningvms
"FreeBSD-v5" {5312412c-353b-41bf-9535-497e1c45de44}
tingo@kg-vm$ VBoxManage controlvm FreeBSD-v5 acpipowerbutton

Hmm, didn't work, so do it the hard way:

tingo@kg-vm$ VBoxManage list runningvms
"FreeBSD-v5" {5312412c-353b-41bf-9535-497e1c45de44}
tingo@kg-vm$ VBoxManage controlvm FreeBSD-v5 poweroff
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

that worked:

tingo@kg-vm$ VBoxManage list runningvms

Check uptime:

root@kg-vm# uptime
12:58PM  up 70 days, 16:57, 2 users, load averages: 0.04, 0.57, 1.54

Ok, now reboot the server.

2013-03-29: ad4s4 - Ok, now I'm getting these:

Mar 29 12:18:36 kg-vm kernel: swap zone exhausted, increase kern.maxswzone
Mar 29 12:18:36 kg-vm kernel: pid 23919 (milkyway_0.18_amd64), uid 1002, was killed: out of swap space
Mar 29 12:18:36 kg-vm kernel: swap zone exhausted, increase kern.maxswzone
Mar 29 12:18:36 kg-vm kernel: pid 23958 (setiathome-6.12.amd), uid 1002, was killed: out of swap space
Mar 29 12:18:36 kg-vm kernel: swap zone exhausted, increase kern.maxswzone
Mar 29 12:18:36 kg-vm kernel: pid 23920 (setiathome-6.12.amd), uid 1002, was killed: out of swap space
Mar 29 12:28:59 kg-vm kernel: swap zone exhausted, increase kern.maxswzone
Mar 29 12:28:59 kg-vm kernel: pid 23981 (milkyway_0.18_amd64), uid 1002, was killed: out of swap space

check:

root@kg-vm# sysctl kern.maxswzone
kern.maxswzone: 33554432
root@kg-vm# sysctl kern.maxswzone=256M
sysctl: oid 'kern.maxswzone' is a read only tunable
sysctl: Tunable values are set in /boot/loader.conf

Ok, then I need to reboot the server. I added kern.maxswzone="128M" to /boot/loader.conf, we'll see how that works out.

2013-03-29: ad4s4 - check the vm's:

tingo@kg-vm$ VBoxManage list runningvms

none running. List them all:

tingo@kg-vm$ VBoxManage list vms
"FreeBSD-v3" {003ebcaa-1c74-4672-86af-6493341287e7}
"xubuntu-v4" {07826334-8d9a-4c68-8132-b9cc4cea67a8}
"FreeBSD-v5" {5312412c-353b-41bf-9535-497e1c45de44}

start v3:

tingo@kg-vm$ VBoxManage startvm FreeBSD-v3 -type headless
Waiting for the VM to power on...
VM has been successfully started.

start v5:

tingo@kg-vm$ VBoxManage startvm FreeBSD-v5 -type headless
Waiting for the VM to power on...
VM has been successfully started.

and verify:

tingo@kg-vm$ VBoxManage list runningvms
"FreeBSD-v3" {003ebcaa-1c74-4672-86af-6493341287e7}
"FreeBSD-v5" {5312412c-353b-41bf-9535-497e1c45de44}

done.

2013-03-29: ad4s4 - some milkyway workunits require more memory, it seems. Today I got this in /var/log/messages:

Mar 29 10:39:34 kg-vm kernel: swap_pager_getswapspace(12): failed
Mar 29 10:39:34 kg-vm kernel: swap_pager_getswapspace(9): failed
Mar 29 10:39:34 kg-vm kernel: swap_pager_getswapspace(3): failed
Mar 29 10:39:34 kg-vm kernel: pid 23537 (milkyway_0.18_amd64), uid 1002, was killed: out of swap space

and yes, it was the BOINC milkyway that requested all memory. And of course my vm's got killed too. Temporary fix: mount another disk, and create a swapfile. Mount /dev/ad8s4d:

root@kg-vm# more /etc/fstab
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/ad4s1b             none            swap    sw              0       0
/dev/ad4s4a             /               ufs     rw              1       1
/dev/ad4s4e             /tmp            ufs     rw              2       2
/dev/ad4s4f             /usr            ufs     rw              2       2
/dev/ad4s4d             /var            ufs     rw              2       2
/dev/acd0               /cdrom          cd9660  ro,noauto       0       0
proc                    /proc           procfs  rw              0       0
/dev/ad8s4d             /storage        ufs     rw              2       2
root@kg-vm# mount /storage

check:

root@kg-vm# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s4a    989M    338M    571M    37%    /
devfs          1.0k    1.0k      0B   100%    /dev
/dev/ad4s4e    495M     31M    425M     7%    /tmp
/dev/ad4s4f    102G     51G     42G    54%    /usr
/dev/ad4s4d    4.7G    2.1G    2.2G    49%    /var
procfs         4.0k    4.0k      0B   100%    /proc
/dev/ad8s4d    139G     38G     90G    30%    /storage

Good. Let's create a 50G swapfile:

root@kg-vm# dd if=/dev/zero of=/storage/swap1 bs=1G count=50
50+0 records in
50+0 records out
53687091200 bytes transferred in 877.791919 secs (61161524 bytes/sec)

about 14 minutes to create. Set proper permissions:

root@kg-vm# chmod 0600 /storage/swap1

enable swapfile:

root@kg-vm# mdconfig -a -t vnode -f /storage/swap1 -u 0
root@kg-vm# swapon /dev/md0

also remember to add it to /etc/rc.conf:

root@kg-vm# grep swapfile /etc/rc.conf
swapfile="/storage/swap1" # additional swap space

Ok. How does the swap situation look now?

root@kg-vm# swapinfo -h
Device          1K-blocks     Used    Avail Capacity
/dev/ad4s1b       4194304      11M       4G     0%
/dev/md0         52428800       0B      50G     0%
Total            56623104      11M      54G     0%

Should be swap enough.

2013-01-17: ad4s4 - temperature monitoring. I switched from acip_aiboost(4) to the newer aibs(4) by changing one line in /boot/loader.conf, from

acpi_aiboost_load="YES"

to

aibs_load="YES"

It reports the following devices:

root@kg-vm# sysctl -d dev.aibs.0
dev.aibs.0:
dev.aibs.0.volt.0: Vcore Voltage
dev.aibs.0.volt.1:  +3.3 Voltage
dev.aibs.0.volt.2:  +5 Voltage
dev.aibs.0.volt.3:  +12 Voltage
dev.aibs.0.temp.0: CPU Temperature
dev.aibs.0.temp.1: MB Temperature
dev.aibs.0.fan.0: CPU FAN Speed
dev.aibs.0.fan.1: CHASSIS FAN Speed
dev.aibs.0.%desc: device description
dev.aibs.0.%driver: device driver name
dev.aibs.0.%location: device location relative to parent
dev.aibs.0.%pnpinfo: device identification
dev.aibs.0.%parent: parent device

and values

root@kg-vm# sysctl  dev.aibs.0
dev.aibs.0.volt.0: 1200 850 1600
dev.aibs.0.volt.1: 3284 2970 3630
dev.aibs.0.volt.2: 5040 4500 5500
dev.aibs.0.volt.3: 10410 10200 13800
dev.aibs.0.temp.0: 59.0C 60.0C 95.0C
dev.aibs.0.temp.1: 38.0C 45.0C 75.0C
dev.aibs.0.fan.0: 3139 600 7200
dev.aibs.0.fan.1: 3139 600 7200
dev.aibs.0.%desc: ASUSTeK AI Booster (ACPI ASOC ATK0110)
dev.aibs.0.%driver: aibs
dev.aibs.0.%location: handle=\_SB_.PCI0.SBRG.ASOC
dev.aibs.0.%pnpinfo: _HID=ATK0110 _UID=16843024
dev.aibs.0.%parent: acpi0

a handy alias is this one:

root@kg-vm# alias temp='echo -n "CPU: ";sysctl  -n dev.aibs.0.temp.0;echo -n "MB:  ";sysctl -n dev.aibs.0.temp.1'
root@kg-vm# temp
CPU: 59.0C 60.0C 95.0C
MB:  38.0C 45.0C 75.0C

that is all.

2013-01-17: ad4s4 - after a power outage (an incandescent lightbulb blew and tripped the circuit breaker too) I need to restart the virtual machines again: v3:

tingo@kg-vm$ VBoxManage startvm FreeBSD-v3 -type headless
Waiting for the VM to power on...
VM has been successfully started.

v5:

tingo@kg-vm$ VBoxManage startvm FreeBSD-v5 -type headless
Waiting for the VM to power on...
VM has been successfully started.

check that they are running:

tingo@kg-vm$ VBoxManage list runningvms
"FreeBSD-v3" {003ebcaa-1c74-4672-86af-6493341287e7}
"FreeBSD-v5" {5312412c-353b-41bf-9535-497e1c45de44}

ok, done.

2012-11-21: ad4s4 - temporary move of the machine to a different room, because of house upgrades. After moving the machine I start up the virtual machines again: v3:

tingo@kg-vm$ VBoxManage startvm FreeBSD-v3 -type headless
Waiting for the VM to power on...
VM has been successfully started.

v5:

tingo@kg-vm$ VBoxManage startvm FreeBSD-v5 -type headless
Waiting for the VM to power on...
VM has been successfully started.

Check that they are running:

tingo@kg-vm$ VBoxManage list runningvms
"FreeBSD-v3" {003ebcaa-1c74-4672-86af-6493341287e7}
"FreeBSD-v5" {5312412c-353b-41bf-9535-497e1c45de44}

That was all for now.

2012-11-18: ad4s4 - the usb-to-ps/2 adapter acted up again, fixed by unplugging and replugging it. From /var/log/messages:

Nov 18 19:25:42 kg-vm kernel: ugen1.2: <GASIA> at usbus1 (disconnected)
Nov 18 19:25:42 kg-vm kernel: ukbd0: at uhub1, port 2, addr 2 (disconnected)
Nov 18 19:25:42 kg-vm kernel: ums0: at uhub1, port 2, addr 2 (disconnected)
Nov 18 19:25:49 kg-vm kernel: ugen1.2: <GASIA> at usbus1
Nov 18 19:25:49 kg-vm kernel: ukbd0: <GASIA PS2toUSB Adapter, class 0/0, rev 1.10/2.80, addr 2> on usbus1
Nov 18 19:25:49 kg-vm kernel: kbd2 at ukbd0
Nov 18 19:25:49 kg-vm kernel: ums0: <GASIA PS2toUSB Adapter, class 0/0, rev 1.10/2.80, addr 2> on usbus1
Nov 18 19:25:49 kg-vm kernel: ums0: 5 buttons and [XYZ] coordinates ID=1

That's all.

2012-10-29: ad4s4 - the usb-to-ps/2 adapter I use for connecting the mouse started acting up, causing a lot of beeps (keyboard / mouse buffer full?), and on the console keyboard only the enter key was working. No messages in logs. Fixed by unplugging and replugging the adapter. From /var/log/messages:

Oct 29 08:36:44 kg-vm kernel: ugen1.2: <GASIA> at usbus1 (disconnected)
Oct 29 08:36:44 kg-vm kernel: ukbd0: at uhub1, port 2, addr 2 (disconnected)
Oct 29 08:36:44 kg-vm kernel: ums0: at uhub1, port 2, addr 2 (disconnected)
Oct 29 08:36:50 kg-vm kernel: ugen1.2: <GASIA> at usbus1
Oct 29 08:36:50 kg-vm kernel: ukbd0: <GASIA PS2toUSB Adapter, class 0/0, rev 1.10/2.80, addr 2> on usbus1
Oct 29 08:36:50 kg-vm kernel: kbd2 at ukbd0
Oct 29 08:36:50 kg-vm kernel: ums0: <GASIA PS2toUSB Adapter, class 0/0, rev 1.10/2.80, addr 2> on usbus1
Oct 29 08:36:50 kg-vm kernel: ums0: 5 buttons and [XYZ] coordinates ID=1

That is all.

2012-10-13: ad4s4 - start the virtual machines again:

tingo@kg-vm$ VBoxManage list vms
"FreeBSD-v3" {003ebcaa-1c74-4672-86af-6493341287e7}
"xubuntu-v4" {07826334-8d9a-4c68-8132-b9cc4cea67a8}
"FreeBSD-v5" {5312412c-353b-41bf-9535-497e1c45de44}

start v3:

tingo@kg-vm$ VBoxManage startvm FreeBSD-v3 -type headless
Waiting for the VM to power on...
VM has been successfully started.

start v5:

tingo@kg-vm$ VBoxManage startvm FreeBSD-v5 -type headless
Waiting for the VM to power on...
VM has been successfully started.

check that they are running:

tingo@kg-vm$ VBoxManage list runningvms
"FreeBSD-v3" {003ebcaa-1c74-4672-86af-6493341287e7}
"FreeBSD-v5" {5312412c-353b-41bf-9535-497e1c45de44}

That's all here.

2012-10-13: ad4s1 - update to latest FreeBSD 7.4-stable with make world. dmesg output: normal, verbose. The network interface (re0) works now.

root@kg-vm# uname -a
FreeBSD kg-vm.kg4.no 7.4-STABLE FreeBSD 7.4-STABLE #5: Sat Oct 13 00:27:57 CEST 2012     root@kg-vm.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

swap and disk layout:

root@kg-vm# swapinfo -h
Device          1K-blocks     Used    Avail Capacity
/dev/ad4s1b       4194304       0B     4.0G     0%
root@kg-vm# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s1a    495M    293M    162M    64%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ad4s1e    495M      4M    452M     1%    /tmp
/dev/ad4s1f    107G     86G     12G    88%    /usr
/dev/ad4s1d    4.7G    2.5G    1.9G    57%    /var

pciconf -lv output:

root@kg-vm# pciconf -lv
hostb0@pci0:0:0:0:    class=0x060000 card=0x83881043 chip=0x96001022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
pcib1@pci0:0:1:0:    class=0x060400 card=0x83881043 chip=0x96021043 rev=0x00 hdr=0x01
    vendor     = 'Asustek Computer Inc.'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:7:0:    class=0x060400 card=0x83881043 chip=0x96071022 rev=0x00 hdr=0x01
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = PCI-PCI
pcib3@pci0:0:10:0:    class=0x060400 card=0x83881043 chip=0x96091022 rev=0x00 hdr=0x01
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = PCI-PCI
atapci0@pci0:0:17:0:    class=0x010601 card=0x83891043 chip=0x43911002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'SB700 SATA Controller [AHCI mode]'
    class      = mass storage
    subclass   = SATA
ohci0@pci0:0:18:0:    class=0x0c0310 card=0x83891043 chip=0x43971002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'SB700 USB OHCI0 Controller'
    class      = serial bus
    subclass   = USB
ohci1@pci0:0:18:1:    class=0x0c0310 card=0x83891043 chip=0x43981002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'Standard OpenHCD USB-Hostcontroller (SB700)'
    class      = serial bus
    subclass   = USB
ehci0@pci0:0:18:2:    class=0x0c0320 card=0x83891043 chip=0x43961002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'SB700 USB EHCI Controller'
    class      = serial bus
    subclass   = USB
ohci2@pci0:0:19:0:    class=0x0c0310 card=0x83891043 chip=0x43971002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'SB700 USB OHCI0 Controller'
    class      = serial bus
    subclass   = USB
ohci3@pci0:0:19:1:    class=0x0c0310 card=0x83891043 chip=0x43981002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'Standard OpenHCD USB-Hostcontroller (SB700)'
    class      = serial bus
    subclass   = USB
ehci1@pci0:0:19:2:    class=0x0c0320 card=0x83891043 chip=0x43961002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'SB700 USB EHCI Controller'
    class      = serial bus
    subclass   = USB
none0@pci0:0:20:0:    class=0x0c0500 card=0x83891043 chip=0x43851002 rev=0x3c hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'ATI SMBus (ATI RD600/RS600)'
    class      = serial bus
    subclass   = SMBus
atapci1@pci0:0:20:1:    class=0x01018a card=0x83891043 chip=0x439c1002 rev=0x00 hdr=0x00
hdac1@pci0:0:20:2:    class=0x040300 card=0x836c1043 chip=0x43831002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'IXP SB600 High Definition Audio Controller'
    class      = multimedia
    subclass   = HDA
isab0@pci0:0:20:3:    class=0x060100 card=0x83891043 chip=0x439d1002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'SB700 LPC host controller'
    class      = bridge
    subclass   = PCI-ISA
pcib4@pci0:0:20:4:    class=0x060401 card=0x00000000 chip=0x43841002 rev=0x00 hdr=0x01
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'IXP SB600 PCI to PCI Bridge'
    class      = bridge
    subclass   = PCI-PCI
ohci4@pci0:0:20:5:    class=0x0c0310 card=0x83891043 chip=0x43991002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'SB700 USB OHCI2 Controller'
    class      = serial bus
    subclass   = USB
hostb1@pci0:0:24:0:    class=0x060000 card=0x00000000 chip=0x16001022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
hostb2@pci0:0:24:1:    class=0x060000 card=0x00000000 chip=0x16011022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
hostb3@pci0:0:24:2:    class=0x060000 card=0x00000000 chip=0x16021022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
hostb4@pci0:0:24:3:    class=0x060000 card=0x00000000 chip=0x16031022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
hostb5@pci0:0:24:4:    class=0x060000 card=0x00000000 chip=0x16041022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
hostb6@pci0:0:24:5:    class=0x060000 card=0x00000000 chip=0x16051022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
vgapci0@pci0:1:5:0:    class=0x030000 card=0x83881043 chip=0x96161002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'AMD 760G (RS780)'
    class      = display
    subclass   = VGA
hdac0@pci0:1:5:1:    class=0x040300 card=0x83881043 chip=0x960f1002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    class      = multimedia
    subclass   = HDA
none1@pci0:2:0:0:    class=0x0c0330 card=0x84881043 chip=0x10421b21 rev=0x00 hdr=0x00
    class      = serial bus
    subclass   = USB
re0@pci0:3:0:0:    class=0x020000 card=0x84321043 chip=0x816810ec rev=0x06 hdr=0x00
    vendor     = 'Realtek Semiconductor'
    device     = 'Gigabit Ethernet NIC(NDIS 6.0) (RTL8168/8111/8111c)'
    class      = network
    subclass   = ethernet

That's all.

2012-10-12: ad4s4 - using FreeBSD 8.2-stable to update RELENG_7 source on another partition. mount the partition (this is the /usr/partition):

root@kg-vm# mount /dev/ad4s1f /mnt

check version:

root@kg-vm# egrep "^BRANCH|^REVISION" /mnt/src/sys/conf/newvers.sh
REVISION="7.3"
BRANCH="STABLE"

make a temporary supfile:

root@kg-vm# cp /mnt/share/examples/cvsup/stable-supfile /tmp/fbsd7

and a copy to diff against:

root@kg-vm# cp /tmp/fbsd7 /tmp/fbsd7.org

edit it, and show the diff afterwards:

root@kg-vm# diff -u /tmp/fbsd7.org /tmp/fbsd7
--- /tmp/fbsd7.org    2012-10-12 23:18:02.000000000 +0200
+++ /tmp/fbsd7    2012-10-12 23:20:34.000000000 +0200
@@ -63,9 +63,9 @@
 #
 # IMPORTANT: Change the next line to use one of the CVSup mirror sites
 # listed at http://www.freebsd.org/doc/handbook/mirrors.html.
-*default host=CHANGE_THIS.FreeBSD.org
+*default host=cvsup.no.FreeBSD.org
 *default base=/var/db
-*default prefix=/usr
+*default prefix=/mnt
 # The following line is for 7-stable.  If you want 6-stable, 5-stable,
 # 4-stable, 3-stable, or 2.2-stable, change to "RELENG_6", "RELENG_5",
 # "RELENG_4", "RELENG_3", or "RELENG_2_2" respectively.

That's it. Now csup:

root@kg-vm# csup /tmp/fbsd7

(updating takes a while) check the version:

root@kg-vm# egrep "^BRANCH|^REVISION" /mnt/src/sys/conf/newvers.sh
REVISION="7.4"
BRANCH="STABLE"

Looks good. Next, boot 7.3 and update with make world.

2012-10-12: ad4s1 - I booted FreeBSD 7.3-stable after changing motherboard. dmesg output: normal, verbose. The network interface (re0) isn't working.

2012-10-12: ad4s3 - I booted FreeBSD 6.4-stable after changing motherboard. dmesg output: normal, verbose. The network interface (re0) isn't detected.

2012-10-12: ad4s4 - I booted FreeBSD 8.2-stable after changing motherboard. dmesg output: normal, verbose.

tingo@kg-vm$ uname -a
FreeBSD kg-vm.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #4: Sat Dec 17 17:47:43 CET 2011     root@kg-vm.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

swap and disk layout:

root@kg-vm# swapinfo -h
Device          1K-blocks     Used    Avail Capacity
/dev/ad4s1b       4194304       0B     4.0G     0%
root@kg-vm# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s4a    989M    338M    571M    37%    /
devfs          1.0k    1.0k      0B   100%    /dev
/dev/ad4s4e    495M     31M    425M     7%    /tmp
/dev/ad4s4f    102G     50G     43G    53%    /usr
/dev/ad4s4d    4.7G    2.1G    2.3G    47%    /var
procfs         4.0k    4.0k      0B   100%    /proc

gpart show output:

root@kg-vm# gpart show
=>       63  976773105  ad4  MBR  (465G)
         63  253746612    1  freebsd  (121G)
  253746675  253746675    2  !169  (121G)
  507493350  234870300    3  freebsd  (112G)
  742363650  234409518    4  freebsd  [active]  (111G)

=>        0  253746612  ad4s1  BSD  (121G)
          0    1048576      1  freebsd-ufs  (512M)
    1048576    8388608      2  freebsd-swap  (4.0G)
    9437184   10186752      4  freebsd-ufs  (4.9G)
   19623936    1048576      5  freebsd-ufs  (512M)
   20672512  233074100      6  freebsd-ufs  (111G)

=>        0  253746675  ad4s2  BSD  (121G)
          0  253482768      1  freebsd-ufs  (120G)
  253482768     263907      2  freebsd-swap  (128M)

=>        0  234870300  ad4s3  BSD  (112G)
          0    1048576      1  freebsd-ufs  (512M)
    1048576    8091648      4  freebsd-ufs  (3.9G)
    9140224    1048576      5  freebsd-ufs  (512M)
   10188800  224681500      6  freebsd-ufs  (107G)

=>        0  234409518  ad4s4  BSD  (111G)
          0    2097152      1  freebsd-ufs  (1.0G)
    2097152   10182656      4  freebsd-ufs  (4.9G)
   12279808    1048576      5  freebsd-ufs  (512M)
   13328384  221081134      6  freebsd-ufs  (105G)

=>       63  625142385  ad8  MBR  (298G)
         63       1985       - free -  (992k)
       2048  150992887    1  linux-data  (72G)
  150994935  150994935    3  linux-data  (72G)
  301989870  302745555    4  freebsd  [active]  (144G)
  604735425         61       - free -  (30k)
  604735486   20406274    2  ebr  (9.7G)
  625141760        688       - free -  (344k)

=>        0  150992856  ad8s1  EBR  (72G)
          0  150992856         - free -  (72G)

=>       0  20406267  ad8s2  EBR  (9.7G)
         0  20406274      1  linux-swap  (9.7G)

=>        0  302745555  ad8s4  BSD  (144G)
          0  302745555      4  freebsd-ufs  (144G)

=>        0  302745555  ufsid/4de68de44cea1f6f  BSD  (144G)
          0  302745555                       4  freebsd-ufs  (144G)

pciconf -lv output:

tingo@kg-vm$ pciconf -lv
hostb0@pci0:0:0:0:    class=0x060000 card=0x83881043 chip=0x96001022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
pcib1@pci0:0:1:0:    class=0x060400 card=0x83881043 chip=0x96021043 rev=0x00 hdr=0x01
    vendor     = 'Asustek Computer Inc.'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:7:0:    class=0x060400 card=0x83881043 chip=0x96071022 rev=0x00 hdr=0x01
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = PCI-PCI
pcib3@pci0:0:10:0:    class=0x060400 card=0x83881043 chip=0x96091022 rev=0x00 hdr=0x01
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = PCI-PCI
atapci0@pci0:0:17:0:    class=0x010601 card=0x83891043 chip=0x43911002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'SB700 SATA Controller [AHCI mode]'
    class      = mass storage
    subclass   = SATA
ohci0@pci0:0:18:0:    class=0x0c0310 card=0x83891043 chip=0x43971002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'SB700 USB OHCI0 Controller'
    class      = serial bus
    subclass   = USB
ohci1@pci0:0:18:1:    class=0x0c0310 card=0x83891043 chip=0x43981002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'Standard OpenHCD USB-Hostcontroller (SB700)'
    class      = serial bus
    subclass   = USB
ehci0@pci0:0:18:2:    class=0x0c0320 card=0x83891043 chip=0x43961002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'SB700 USB EHCI Controller'
    class      = serial bus
    subclass   = USB
ohci2@pci0:0:19:0:    class=0x0c0310 card=0x83891043 chip=0x43971002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'SB700 USB OHCI0 Controller'
    class      = serial bus
    subclass   = USB
ohci3@pci0:0:19:1:    class=0x0c0310 card=0x83891043 chip=0x43981002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'Standard OpenHCD USB-Hostcontroller (SB700)'
    class      = serial bus
    subclass   = USB
ehci1@pci0:0:19:2:    class=0x0c0320 card=0x83891043 chip=0x43961002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'SB700 USB EHCI Controller'
    class      = serial bus
    subclass   = USB
none0@pci0:0:20:0:    class=0x0c0500 card=0x83891043 chip=0x43851002 rev=0x3c hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'ATI SMBus (ATI RD600/RS600)'
    class      = serial bus
    subclass   = SMBus
atapci1@pci0:0:20:1:    class=0x01018a card=0x83891043 chip=0x439c1002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'PATA 133 Controller (SB7xx)'
    class      = mass storage
    subclass   = ATA
hdac1@pci0:0:20:2:    class=0x040300 card=0x836c1043 chip=0x43831002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'IXP SB600 High Definition Audio Controller'
    class      = multimedia
    subclass   = HDA
isab0@pci0:0:20:3:    class=0x060100 card=0x83891043 chip=0x439d1002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'SB700 LPC host controller'
    class      = bridge
    subclass   = PCI-ISA
pcib4@pci0:0:20:4:    class=0x060401 card=0x00000000 chip=0x43841002 rev=0x00 hdr=0x01
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'IXP SB600 PCI to PCI Bridge'
    class      = bridge
    subclass   = PCI-PCI
ohci4@pci0:0:20:5:    class=0x0c0310 card=0x83891043 chip=0x43991002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'SB700 USB OHCI2 Controller'
    class      = serial bus
    subclass   = USB
hostb1@pci0:0:24:0:    class=0x060000 card=0x00000000 chip=0x16001022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
hostb2@pci0:0:24:1:    class=0x060000 card=0x00000000 chip=0x16011022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
hostb3@pci0:0:24:2:    class=0x060000 card=0x00000000 chip=0x16021022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
hostb4@pci0:0:24:3:    class=0x060000 card=0x00000000 chip=0x16031022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
hostb5@pci0:0:24:4:    class=0x060000 card=0x00000000 chip=0x16041022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
hostb6@pci0:0:24:5:    class=0x060000 card=0x00000000 chip=0x16051022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
vgapci0@pci0:1:5:0:    class=0x030000 card=0x83881043 chip=0x96161002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    device     = 'AMD 760G (RS780)'
    class      = display
    subclass   = VGA
hdac0@pci0:1:5:1:    class=0x040300 card=0x83881043 chip=0x960f1002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    class      = multimedia
    subclass   = HDA
none1@pci0:2:0:0:    class=0x0c0330 card=0x84881043 chip=0x10421b21 rev=0x00 hdr=0x00
    class      = serial bus
    subclass   = USB
re0@pci0:3:0:0:    class=0x020000 card=0x84321043 chip=0x816810ec rev=0x06 hdr=0x00
    vendor     = 'Realtek Semiconductor'
    device     = 'Gigabit Ethernet NIC(NDIS 6.0) (RTL8168/8111/8111c)'
    class      = network
    subclass   = ethernet

Done.