ttt

getttyent

HP ProLiant ML115 G5 に FreeBSD 7.1-BETA2 をインストールしてみた

2008-10-29 23:27:43 | デジタル・インターネット

昨日からのつづき。

さてさて、買ったばかりの状態ではOSはインストールされていないので、OSをインストールしなければならない。

まさかWindowsをインストールするわけない。ライセンスがもったいない。

というわけで、FreeBSDしか選択の余地がない。理由になってませんが。

仕事のときは、ずっと何年も前からFreeBSDな上でやってきたんですが、ふと気がつけば、自宅では、あまりFreeBSDしてない。

いや、サーバーとして1台、24時間動いている元・ジャンクPCがあるんですが、Celeron 900MHz 512MBとかいう、かなりの非力なハードウェアのため、あまり重いことはやりたくないです。

なんか、こう、いろいろ実験ができるFreeBSDマシンがほしいなぁ、と思ってたところだったので、とりあえず、このML 115 G5にインストールしてみる、ってもまあいいかな、と。

さて、インストールなんですが、えーと、とくに書くこと、ないです

あっさりとインストールできて、あっさりと動いてしまいました。

トラブルなし。

一応、メモ代わりに、ちょこっとだけ。

まず、どのバージョンのFreeBSDをインストールするか?

バージョン6系は、考えられません。これから先のサポート期間の短さと、パフォーマンスの悪さ。そんな点で。

というわけで、バージョン7系。

今、FreeBSD 7.1-RELEASEのリリースに向けて、準備が進んでいるところですが、7.1-BETA2というのがFTPできるようになっていたので、それをインストールしてみることにしました。

ISOイメージファイルがいくつかありますが、
ftp://ftp.jp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/7.1
のなかにあるdisc1というやつだけでOKです。私は、バイナリパッケージは使わず、自分でportsでビルドするので。

これをダウンロード。
ftp://ftp.jp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/7.1/7.1-BETA2-i386-disc1.iso

CD-RWに焼いて、ML115 G5をブート。

あいかわらずのインストーラ。まったくといっていいほど変化のない、FreeBSDのインストール画面。昔は、いろいろ不満にも思いましたが、最近はもうどうでもいいと思えるようになってきました。

とうわけで、インストール手順は、以前のメモの、これなんかと基本的には同じ。

ただし、あとで、amd64版もためしてみたいという思いがあったので、パーティションを切るときに、32GBくらいにしておき、たくさん空き容量を残しておきました。

というわけで、あっさりインストールできて、あっさりと動いてしまったFreeBSD 7.1-BETA2。

dmesgはこんな感じです。

Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.1-BETA2 #0: Mon Oct 13 04:23:28 UTC 2008
    root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) Processor 1640B (2700.02-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x70ff2  Stepping = 2
  Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
  Features2=0x2001<SSE3,CX16>
  AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x11d<LAHF,SVM,ExtAPIC,CR8,Prefetch>
real memory  = 536477696 (511 MB)
avail memory = 510976000 (487 MB)
ACPI APIC Table: <HP     ProLiant>
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: <HP ProLiant> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of fec00000, 1000 (3) failed
acpi0: reservation of fee00000, 1000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x2008-0x200b on acpi0
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 25000000 Hz quality 900
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <memory, RAM> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> port 0x2f00-0x2f7f at device 1.0 on pci0
isa0: <ISA bus> on isab0
pci0: <serial bus, SMBus> at device 1.1 (no driver attached)
ohci0: <OHCI (generic) USB controller> mem 0xfcfbf000-0xfcfbffff irq 22 at device 2.0 on pci0
ohci0: [GIANT-LOCKED]
ohci0: [ITHREAD]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: <nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 10 ports with 10 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xfcfbec00-0xfcfbecff irq 23 at device 2.1 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb1: EHCI version 1.0
usb1: companion controller, 10 ports each: usb0
usb1: <EHCI (generic) USB 2.0 controller> on ehci0
usb1: USB revision 2.0
uhub1: <nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb1
uhub1: 10 ports with 10 removable, self powered
atapci0: <nVidia nForce MCP55 SATA300 controller> port 0xed80-0xed87,0xed00-0xed03,0xec00-0xec07,0xeb80-0xeb83,0xeb00-0xeb0f mem 0xfcfbd000-0xfcfbdfff irq 21 at device 5.0 on pci0
atapci0: [ITHREAD]
ata2: <ATA channel 0> on atapci0
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci0
ata3: [ITHREAD]
atapci1: <nVidia nForce MCP55 SATA300 controller> port 0xea80-0xea87,0xea00-0xea03,0xe980-0xe987,0xe900-0xe903,0xe880-0xe88f mem 0xfcfbc000-0xfcfbcfff irq 22 at device 5.1 on pci0
atapci1: [ITHREAD]
ata4: <ATA channel 0> on atapci1
ata4: [ITHREAD]
ata5: <ATA channel 1> on atapci1
ata5: [ITHREAD]
atapci2: <nVidia nForce MCP55 SATA300 controller> port 0xe800-0xe807,0xe780-0xe783,0xe700-0xe707,0xe680-0xe683,0xe600-0xe60f mem 0xfcfbb000-0xfcfbbfff irq 23 at device 5.2 on pci0
atapci2: [ITHREAD]
ata6: <ATA channel 0> on atapci2
ata6: [ITHREAD]
ata7: <ATA channel 1> on atapci2
ata7: [ITHREAD]
pcib1: <ACPI PCI-PCI bridge> at device 6.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> at device 10.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <PCI-PCI bridge> at device 11.0 on pci0
pci3: <PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> at device 12.0 on pci0
pci4: <ACPI PCI bus> on pcib4
pcib5: <ACPI PCI-PCI bridge> at device 13.0 on pci0
pci16: <ACPI PCI bus> on pcib5
vgapci0: <VGA-compatible display> mem 0xfb000000-0xfbffffff,0xfdefc000-0xfdefffff,0xfd000000-0xfd7fffff irq 16 at device 0.0 on pci16
pcib6: <ACPI PCI-PCI bridge> at device 14.0 on pci0
pci17: <ACPI PCI bus> on pcib6
bge0: <HP NC105i PCIe Gigabit Server Adapter, ASIC rev. 0xa200> mem 0xfdff0000-0xfdffffff irq 17 at device 0.0 on pci17
miibus0: <MII bus> on bge0
brgphy0: <BCM5722 10/100/1000baseTX PHY> PHY 1 on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bge0: Ethernet address: 00:21:5a:★:★:★
bge0: [ITHREAD]
pcib7: <ACPI PCI-PCI bridge> at device 15.0 on pci0
pci18: <ACPI PCI bus> on pcib7
acpi_button0: <Power Button> on acpi0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio0: [FILTER]
cpu0: <ACPI CPU> on acpi0
powernow0: <PowerNow! K8> on cpu0
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xc7fff pnpid ORM0000 on isa0
ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
ata0: [ITHREAD]
ata1 at port 0x170-0x177,0x376 irq 15 on isa0
ata1: [ITHREAD]
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model GlidePoint, device ID 0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ukbd0: <ServerEngines SE USB Device, class 0/0, rev 1.10/0.01, addr 2> on uhub0
kbd2 at ukbd0
ums0: <ServerEngines SE USB Device, class 0/0, rev 1.10/0.01, addr 2> on uhub0
ums0: 8 buttons and Z dir.
Timecounter "TSC" frequency 2700017781 Hz quality 800
Timecounters tick every 1.000 msec
ad4: 152627MB <GB0160CAABV HPG1> at ata2-master SATA150
acd0: DVDROM <HL-DT-STDVD-ROM GDRH20N/D8E4> at ata6-master SATA150
Trying to mount root from ufs:/dev/ad4s1a
Loading configuration files.
kernel dumps on /dev/ad4s1b
Entropy harvesting:
interrupts
ethernet
point_to_point
kickstart
.
swapon: adding /dev/ad4s1b as swap device
Starting file system checks:
/dev/ad4s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ad4s1a: clean, 183226 free (3426 frags, 22475 blocks, 1.3% fragmentation)
/dev/ad4s1e: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ad4s1e: clean, 14250600 free (21704 frags, 1778612 blocks, 0.1% fragmentation)
/dev/ad4s1d: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ad4s1d: clean, 506409 free (33 frags, 63297 blocks, 0.0% fragmentation)
以下略

ハードディスクが謎な感じなので、smartctl -a /dev/ad4してみました。

smartctl version 5.38 [i386-portbld-freebsd7.0] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model:     GB0160CAABV
Serial Number:    6R★★★
Firmware Version: HPG1
User Capacity:    160,041,885,696 bytes
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   7
ATA Standard is:  ATA/ATAPI-7 T13 1532D revision 4a
Local Time is:    Wed Oct 29 22:34:07 2008 JST
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:  (0x82)    Offline data collection activity
                    was completed without error.
                    Auto Offline Data Collection: Enabled.
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:          ( 433) 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:      (  54) minutes.
SCT capabilities:            (0x003d)    SCT Status supported.
                    SCT Feature Control supported.
                    SCT Data Table supported.

SMART Attributes Data Structure revision number: 10
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   253   006    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0002   097   097   000    Old_age   Always       -       0
  4 Start_Stop_Count        0x0033   100   100   020    Pre-fail  Always       -       16
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   062   060   030    Pre-fail  Always       -       1680026
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       69
10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
12 Power_Cycle_Count       0x0033   100   100   020    Pre-fail  Always       -       16
184 Unknown_Attribute       0x0032   100   253   000    Old_age   Always       -       0
187 Reported_Uncorrect      0x003a   100   100   051    Old_age   Always       -       0
189 High_Fly_Writes         0x0022   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x001a   063   062   000    Old_age   Always       -       37 (Lifetime Min/Max 25/38)
194 Temperature_Celsius     0x0000   037   040   000    Old_age   Offline      -       37 (0 24 0 0)
195 Hardware_ECC_Recovered  0x0032   075   074   000    Old_age   Always       -       20240357
197 Current_Pending_Sector  0x0000   100   100   000    Old_age   Offline      -       0
198 Offline_Uncorrectable   0x0000   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0000   200   200   000    Old_age   Offline      -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1

SMART Selective self-test log data structure revision number 1
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.

それと、一応、scanpci -v してみました。

pci bus 0x0000 cardnum 0x00 function 0x00: vendor 0x10de device 0x0369
nVidia Corporation MCP55 Memory Controller
CardVendor 0x103c card 0x1714 (Hewlett-Packard Company, Card unknown)
  STATUS    0x00b0  COMMAND 0x0106
  CLASS     0x05 0x00 0x00  REVISION 0xa2
  BIST      0x00  HEADER 0x00  LATENCY 0x00  CACHE 0x00
  MAX_LAT   0x00  MIN_GNT 0x00  INT_PIN 0x00  INT_LINE 0xff
  BYTE_0    0x3c  BYTE_1  0x10  BYTE_2  0x14  BYTE_3  0x17

pci bus 0x0000 cardnum 0x01 function 0x00: vendor 0x10de device 0x0360
nVidia Corporation MCP55 LPC Bridge
CardVendor 0x103c card 0x1714 (Hewlett-Packard Company, Card unknown)
  STATUS    0x00a0  COMMAND 0x000f
  CLASS     0x06 0x01 0x00  REVISION 0xa3
  BIST      0x00  HEADER 0x80  LATENCY 0x00  CACHE 0x00
  BASE0     0x00002f01  addr 0x00002f00  I/O
  MAX_LAT   0x00  MIN_GNT 0x00  INT_PIN 0x00  INT_LINE 0xff
  BYTE_0    0x3c  BYTE_1  0x10  BYTE_2  0x14  BYTE_3  0x17

pci bus 0x0000 cardnum 0x01 function 0x01: vendor 0x10de device 0x0368
nVidia Corporation MCP55 SMBus
CardVendor 0x103c card 0x1714 (Hewlett-Packard Company, Card unknown)
  STATUS    0x00b0  COMMAND 0x0001
  CLASS&n