Gigabyte GA-MA74GM-S2H - FreeBSD - 2009 archive
back to main FreeBSD page for this machine.
2009 archive.
2009-12-18: I created a pool for the data disks, using zpool create storage raidz ad8 ad10 ad12 ad14 ada0. The pool is autmatically mounted under /storage, like this:
root@kg-f2# mount zroot on / (zfs, local) devfs on /dev (devfs, local, multilabel) zroot/tmp on /tmp (zfs, local, nosuid) zroot/usr on /usr (zfs, local) zroot/usr/home on /usr/home (zfs, local) zroot/usr/ports on /usr/ports (zfs, local, nosuid) zroot/usr/ports/distfiles on /usr/ports/distfiles (zfs, local, noexec, nosuid) zroot/usr/ports/packages on /usr/ports/packages (zfs, local, noexec, nosuid) zroot/usr/src on /usr/src (zfs, local, noexec, nosuid) zroot/var on /var (zfs, local) zroot/var/crash on /var/crash (zfs, local, noexec, nosuid) zroot/var/db on /var/db (zfs, local, noexec, nosuid) zroot/var/db/pkg on /var/db/pkg (zfs, local, nosuid) zroot/var/empty on /var/empty (zfs, local, noexec, nosuid, read-only) zroot/var/log on /var/log (zfs, local, noexec, nosuid) zroot/var/mail on /var/mail (zfs, local, noexec, nosuid) zroot/var/run on /var/run (zfs, local, noexec, nosuid) zroot/var/tmp on /var/tmp (zfs, local, nosuid) storage on /storage (zfs, local)
pool listing:
root@kg-f2# zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT storage 4.53T 132K 4.53T 0% ONLINE - zroot 59.5G 28.8G 30.7G 48% ONLINE -
2009-12-12: I installed the data disks (five of them), changed bios settings so all ports are in sata mode, and rebooted the machine. This is how /var/log/messages shows the disks:
root@kg-f2# dmesg | grep ^ad ad4: 238475MB <SAMSUNG HD252HJ 1AC01118> at ata2-master SATA300 ad6: 238475MB <SAMSUNG HD252HJ 1AC01118> at ata3-master SATA300 ad8: 953869MB <SAMSUNG HD103SJ 1AJ100E4> at ata4-master SATA300 ad10: 953869MB <SAMSUNG HD103SJ 1AJ100E4> at ata5-master SATA300 ad12: 953869MB <SAMSUNG HD103SJ 1AJ100E4> at ata6-master SATA300 ad14: 953869MB <SAMSUNG HD103SJ 1AJ100E4> at ata7-master SATA300 ada0 at siisch0 bus 0 scbus0 target 0 lun 0 ada0: <SAMSUNG HD103SJ 1AJ100E4> ATA/ATAPI-8 SATA 2.x device ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO size 8192bytes) ada0: Command Queueing enabled ada0: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C)
2009-12-12: I added amdtemp_load="YES"
to /boot/loader.conf. This gives cpu core temperature reporting, like this:
root@kg-f2# sysctl dev.cpu.0.temperature dev.cpu.0.temperature: 30.3C root@kg-f2# sysctl dev.cpu.1.temperature dev.cpu.1.temperature: 30.7C
2009-12-12: I cvsup'ed and upgraded to latest FreeBSD 8.0-stable. dmesg output: normal, verbose (part1, part2).
2009-12-12: The ST Lab A-360 SATA II controller card doesn't seem to be recognized by default in FreeBSD. Output from pciconf -lv:
none3@pci0:2:0:0: class=0x018000 card=0x35311095 chip=0x35311095 rev=0x01 hdr=0x00 vendor = 'Silicon Image Inc (Was: CMD Technology Inc)' device = 'SiI 3531 SATA Controller' class = mass storage
Ah, yes, kldloading the siis.ko module fixed .that. From /var/log/messages:
Dec 11 22:57:25 kg-f2 kernel: siis0: <SiI3531 SATA2 controller> port 0xdf00-0xdf7f mem 0xfdcff000-0xfdcff07f,0xfdcfc000-0xfdcfdfff irq 16 at device 0.0 on pci2 Dec 11 22:57:25 kg-f2 kernel: siis0: [ITHREAD] Dec 11 22:57:25 kg-f2 kernel: siisch0: <SIIS channel> at channel 0 on siis0 Dec 11 22:57:25 kg-f2 kernel: siisch0: [ITHREAD]
Fixed by adding siis_load="YES"
to /boot/loader.conf
. Cool!
2009-12-09: using the Installing FreeBSD Root on ZFS (Mirror) using GPT wiki page (found from the RootOnZFS wiki page), I installed FreeBSD 8.0-release on a 60 Gbyte partition / mirror on zfs. I booted from the memstick image (the machine doesn't have any optical drives), selected fixit from usb. Easy. The two disks show up as ad4 and ad6. Note: you need to add keymap settings to /etc/rc.conf: keymap="norwegian.iso". dmesg output: normal, verbose. From dmesg when booting:
ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is present; to enable, add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf. ZFS filesystem version 13 ZFS storage pool version 13
tingo@kg-f2$ gpart show => 34 488397101 ad4 GPT (233G) 34 128 1 freebsd-boot (64K) 162 8388608 2 freebsd-swap (4.0G) 8388770 125829120 3 freebsd-zfs (60G) 134217890 354179245 - free - (169G) => 34 488397101 ad6 GPT (233G) 34 128 1 freebsd-boot (64K) 162 8388608 2 freebsd-swap (4.0G) 8388770 125829120 3 freebsd-zfs (60G) 134217890 354179245 - free - (169G) tingo@kg-f2$ zfs list NAME USED AVAIL REFER MOUNTPOINT zroot 952M 57.6G 269M legacy zroot/tmp 23K 57.6G 23K /tmp zroot/usr 683M 57.6G 174M /usr zroot/usr/home 30K 57.6G 30K /usr/home zroot/usr/ports 56K 57.6G 20K /usr/ports zroot/usr/ports/distfiles 18K 57.6G 18K /usr/ports/distfiles zroot/usr/ports/packages 18K 57.6G 18K /usr/ports/packages zroot/usr/src 508M 57.6G 508M /usr/src zroot/var 368K 57.6G 108K /var zroot/var/crash 18.5K 57.6G 18.5K /var/crash zroot/var/db 96K 57.6G 78K /var/db zroot/var/db/pkg 18K 57.6G 18K /var/db/pkg zroot/var/empty 18K 57.6G 18K /var/empty zroot/var/log 44K 57.6G 44K /var/log zroot/var/mail 18K 57.6G 18K /var/mail zroot/var/run 46.5K 57.6G 46.5K /var/run zroot/var/tmp 19K 57.6G 19K /var/tmp tingo@kg-f2$ zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT zroot 59.5G 953M 58.6G 1% ONLINE - tingo@kg-f2$ zpool status pool: zroot state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 mirror ONLINE 0 0 0 gpt/disk0 ONLINE 0 0 0 gpt/disk1 ONLINE 0 0 0 errors: No known data errors