Messages in cipher reflected in the looking glass
[ Yasuhiro Fujitsuki's Weblog ]
http://blogs.sun.com/thaniwa/date/20090111 2009年 1月 11日 日曜日

(JA) Solaris Express (nevada) b105 : USB UFS boot

OpenSolaris 2008.11がリリースされてからまだそれほど時間は経っていませんが、 私の興味は既に 2009.04 に移っています。 というか、興味があったのは2008.11では出来なかった USBメモリからのZFSブートなんですが。

OpenSolaris 2008.11では devid がらみなど、いくつか原因があり、USBメモリ上に rpool がある場合、 認識できなかったのですが、下記 URL のように話題になっていました。
この辺に関係ありそうなものは b104 あたりでフィックスが行われたようです。

http://defect.opensolaris.org/bz/show_bug.cgi?id=4755

また、Grubにも同様の問題があり、これに関するフィックスが b105 で行われました。

http://bugs.opensolaris.org/view_bug.do?bug_id=6770866

ということで、OpenSolaris 2009.04 b105 以降のイメージが出れば、 USBメモリで ZFS ブートができるようになるのですが、 OpenSolaris b105 の ISO イメージがリリースされていないので、 Solaris Express でも同様のことが行えるだろうということでテストしてみました。
GUIインストーラでは UFS インストールになり、ZFSではインストールできませんので、 ZFSでインストールしたい場合はコンソールインストーラでインストールする必要があります。

USBメモリの書き込みパフォーマンスに依存する部分がありますが、 MLCタイプの大容量USBメモリはそれほど速くないので、 UFS でのインストールはあまりお勧めできません。
UFS の場合、Entire(全体ディストリビューション)インストールで 6時間くらいインストール作業やってました…(汗。
ZFS の場合は 2時間程度でインストールが終わりますので、ZFS環境でのインストールをお勧めします。

下記は、UFS でインストールした場合の結果です。
1つめの rmformat コマンドで、Patriot Memory (32GBのUSBメモリ)が /dev/rdesk/c1t0d0p0 であることがわかります。
2つめの df -k で、インストールしているスライス情報がわかりますが、 同様のデバイスを利用しているのがわかるかと。
3つめは /var/adm/messages の中身の USBメモリの部分を抜粋したものです。 UFSと書いてあります。

bash-3.2# rmformat
デバイスを探しています...
     1. Logical Node: /dev/rdsk/c0t2d0p0
        Physical Node: /pci@0,0/pci1462,6510@1f,2/cdrom@2,0
        Connected Device: TEAC     DV-W28S-R        F.0B
        Device Type: DVD Reader/Writer
	Bus: <Unknown>
	Size: <Unknown>
	Label: <Unknown>
	Access permissions: <Unknown>
     2. Logical Node: /dev/rdsk/c1t0d0p0
        Physical Node: /pci@0,0/pci1462,6510@1d,7/storage@2/disk@0,0
        Connected Device:          Patriot Memory   PMAP
        Device Type: Removable
	Bus: USB
	Size: 30.6 GB
	Label: <None>
	Access permissions: <Unknown>


bash-3.2# df -k
ファイルシステム      kbytes 使用済み 使用可能 容量      マウント先
/dev/dsk/c1t0d0s0    29776000 7229823 22248417    25%    /
/devices                   0       0       0     0%    /devices
/dev                       0       0       0     0%    /dev
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                 3787780     652 3787128     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
sharefs                    0       0       0     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                     29776000 7229823 22248417    25%    /lib/libc.so.1
fd                         0       0       0     0%    /dev/fd
swap                 3787212      84 3787128     1%    /tmp
swap                 3787176      48 3787128     1%    /var/run

bash-3.2# cat /var/adm/messages
Jan 10 20:23:00 unknown usba: [ID 349649 kern.info] 	         Patriot Memory 078C0EAB038F
Jan 10 20:23:00 unknown genunix: [ID 936769 kern.info] scsa2usb0 is /pci@0,0/pci1462,6510@1d,7/storage@2
Jan 10 20:23:00 unknown genunix: [ID 408114 kern.info] /pci@0,0/pci1462,6510@1d,7/storage@2 (scsa2usb0) online
Jan 10 20:23:00 unknown scsi: [ID 193665 kern.info] sd2 at scsa2usb0: target 0 lun 0
Jan 10 20:23:00 unknown genunix: [ID 936769 kern.info] sd2 is /pci@0,0/pci1462,6510@1d,7/storage@2/disk@0,0
Jan 10 20:23:00 unknown genunix: [ID 408114 kern.info] /pci@0,0/pci1462,6510@1d,7/storage@2/disk@0,0 (sd2) online
Jan 10 20:23:00 unknown genunix: [ID 308332 kern.info] root on /pci@0,0/pci1462,6510@1d,7/storage@2/disk@0,0:a fstype ufs

zfs に関しては次回の更新で。

http://blogs.sun.com/thaniwa/date/20090110 2009年 1月 10日 土曜日

(JA) Solaris Express nevada b105

2009年最初の更新版となる Solaris Express (nevada) 105 がリリースされました。
ダウンロードは下記から。

http://www.opensolaris.org/os/downloads/

OpenSolaris の b105 ももうすぐでしょうか。

http://blogs.sun.com/thaniwa/date/20090107 2009年 1月 07日 水曜日

(JA) Long Password on Solaris 10

パスワードの最大文字数に関してメモ代わりにまとめておきます。
Solaris 10 ではデフォルトでは8文字までになっています。 これは、crypt_unix という旧来のアルゴリズムがデフォルトになっているためです。
9文字以上のパスワードを利用するためにはこのアルゴリズムを変更する必要があります。
変更するファイルは /etc/security/policy.conf になります。
下記はその1部を抜粋したものになります。
この CRYPT_DEFAULT を 1 や 2a などに変更することで、 デフォルトのアルゴリズムが変更されます。
Solaris 10でデフォルトで用意されているのはCRYPT_ALGORITHMS_ALLOWで定義されている 1,2a,md5 で、 1はMD5, 2a は Blowfish になります。

#
CRYPT_ALGORITHMS_ALLOW=1,2a,md5

#
CRYPT_DEFAULT=__unix__

当然ですが、この設定を変更後、passwd コマンド等でパスワードを変更しなければ意味はありません。^-^;

Sun Java Directory Server を利用している場合も userPassword フィールドに crypt で格納している場合、 同様の設定で対応できます。

http://blogs.sun.com/thaniwa/date/20081225 2008年 12月 25日 木曜日

(JA) FreeBSD 7.1 RC1 on Sun Fire X4150

Sun Fire X4150 で FreeBSD 7.1 RC1 のインストールを行ってみたので、 そのログです。
(JA) FreeBSD 7.0 on Sun Fire X4150 : http://blogs.sun.com/thaniwa/entry/ja_freebsd_on_x4150
の環境と今回の環境は異なっており、今回のテストでは SG-PCIESAS-R-INT-Z : Sun StorageTek 8-port Internal SAS RAID Host Bus Adapter を利用しています。

dmesg の出力です。
FreeBSD 7.0 では em2, em3 (Gigabit Ethernetの3番目と4番目) の初期化に 失敗していましたが、FreeBSD 7.1RC1 では初期化出来てます。
RAIDカードも aac0: Sun STK RAID INT, aac driver 2.0.0-1 というように認識されてます。

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-RC1 #0: Sun Dec  7 00:38:13 UTC 2008
    root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(R) CPU           E5320  @ 1.86GHz (1869.37-MHz K8-class CPU)
  Origin = "GenuineIntel"  Id = 0x6fb  Stepping = 11
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x4e3bd<SSE3,RSVD2,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA>
  AMD Features=0x20100800<SYSCALL,NX,LM>
  AMD Features2=0x1<LAHF>
  Cores per package: 4
usable memory = 2133708800 (2034 MB)
avail memory  = 2058915840 (1963 MB)
ACPI APIC Table: <A M I  OEMAPIC >
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  2
 cpu3 (AP): APIC ID:  3
ioapic0 <Version 2.0> irqs 0-23 on motherboard
ioapic1 <Version 2.0> irqs 24-47 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: <A M I OEMXSDT> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 7ff00000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 900
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 2.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> irq 16 at device 0.0 on pci1
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> at device 0.0 on pci2
pci3: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> at device 2.0 on pci2
pci4: <ACPI PCI bus> on pcib4
em0: <Intel(R) PRO/1000 Network Connection 6.9.6> port 0x9c00-0x9c1f mem 
0xfc6e0000-0xfc6fffff irq 18 at device 0.0 on pci4
em0: Using MSI interrupt
em0: [FILTER]
em0: Ethernet address: 00:1b:24:df:ea:7c
em1: <Intel(R) PRO/1000 Network Connection 6.9.6> port 0x9800-0x981f mem 
0xfc6c0000-0xfc6dffff irq 19 at device 0.1 on pci4
em1: Using MSI interrupt
em1: [FILTER]
em1: Ethernet address: 00:1b:24:df:ea:7d
pcib5: <PCI-PCI bridge> at device 0.3 on pci1
pci5: <PCI bus> on pcib5
pcib6: <ACPI PCI-PCI bridge> at device 3.0 on pci0
pci6: <ACPI PCI bus> on pcib6
pcib7: <ACPI PCI-PCI bridge> at device 4.0 on pci0
pci7: <ACPI PCI bus> on pcib7
aac0: <SG-XPCIESAS-R-IN> mem 0xfca00000-0xfcbfffff irq 17 at device 0.0 on pci7
aac0: Enabling 64-bit address support
aac0: Enable Raw I/O
aac0: Enable 64-bit array
aac0: New comm. interface enabled
aac0: [ITHREAD]
aac0: Sun STK RAID INT, aac driver 2.0.0-1
aacp0: <SCSI Passthrough Bus> on aac0
aacp1: <SCSI Passthrough Bus> on aac0
aacp2: <SCSI Passthrough Bus> on aac0
pcib8: <ACPI PCI-PCI bridge> at device 5.0 on pci0
pci8: <ACPI PCI bus> on pcib8
pcib9: <ACPI PCI-PCI bridge> at device 6.0 on pci0
pci9: <ACPI PCI bus> on pcib9
pcib10: <ACPI PCI-PCI bridge> at device 7.0 on pci0
pci10: <ACPI PCI bus> on pcib10
pcib11: <ACPI PCI-PCI bridge> irq 17 at device 28.0 on pci0
pci11: <ACPI PCI bus> on pcib11
em2: <Intel(R) PRO/1000 Network Connection 6.9.6> port 0xac00-0xac1f mem 
0xfcde0000-0xfcdfffff,0xfcdc0000-0xfcddffff irq 16 at device 0.0 on pci11
em2: Using MSI interrupt
em2: [FILTER]
em2: Ethernet address: 00:1b:24:df:ea:7e
em3: <Intel(R) PRO/1000 Network Connection 6.9.6> port 0xa800-0xa81f mem 
0xfcd80000-0xfcd9ffff,0xfcd60000-0xfcd7ffff irq 17 at device 0.1 on pci11
em3: Using MSI interrupt
em3: [FILTER]
em3: Ethernet address: 00:1b:24:df:ea:7f
...(略)...
aacd0: <Volume> on aac0
aacd0: 139900MB (286515200 sectors)
aacd1: <Volume> on aac0
aacd1: 69900MB (143155200 sectors)
aacd2: <Volume> on aac0
aacd2: 69900MB (143155200 sectors)
aacd3: <Volume> on aac0
aacd3: 139900MB (286515200 sectors)
SMP: AP CPU #1 Launched!
SMP: AP CPU #3 Launched!
SMP: AP CPU #2 Launched!
cd0 at umass-sim0 bus 0 target 0 lun 0
cd0: <TSSTcorp CD/DVDW TS-T632A SR03> Removable CD-ROM SCSI-0 device 
cd0: 40.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray open
Trying to mount root from ufs:/dev/aacd0s1a
em0: link state changed to UP

下記は ifconfig の出力です。 FreeBSD 7.0 とは異なり、ちゃんと 4つの Gigabit Ethernet インタフェースが 見えてます。(MACアドレスとIPアドレスは一部伏せています)

em0: flags=8843 metric 0 mtu 1500
        options=19b
        ether xx:xx:xx:xx:xx:7c
        inet xx.xx.xx.92 netmask 0xffffff00 broadcast xx.xx.xx.255
        media: Ethernet autoselect (1000baseTX )
        status: active
em1: flags=8802 metric 0 mtu 1500
        options=19b
        ether xx:xx:xx:xx:xx:7d
        media: Ethernet autoselect
        status: no carrier
em2: flags=8802 metric 0 mtu 1500
        options=19b
        ether xx:xx:xx:xx:xx:7e
        media: Ethernet autoselect
        status: no carrier
em3: flags=8802 metric 0 mtu 1500
        options=19b
        ether xx:xx:xx:xx:xx:7f
        media: Ethernet autoselect
        status: no carrier
lo0: flags=8049 metric 0 mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 
        inet6 ::1 prefixlen 128 
        inet 127.0.0.1 netmask 0xff000000 


fdisk, df -k の出力です。

#fdisk
******* Working on device /dev/aacd0 *******
parameters extracted from in-core disklabel are:
cylinders=17834 heads=255 sectors/track=63 (16065 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=17834 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 286503147 (139894 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

# df -k
Filesystem    1024-blocks    Used     Avail Capacity  Mounted on
/dev/aacd0s1a      507630  220732    246288    47%    /
devfs                   1       1         0   100%    /dev
/dev/aacd0s1e      507630      12    467008     0%    /tmp
/dev/aacd0s1f   130665840 1721364 118491210     1%    /usr
/dev/aacd0s1d     3026574   10360   2774090     0%    /var


下記は eLOM 上で X-Window を表示させたところです。 (startxを利用)
FreeBSD 7.0 ではデフォルト(/etc/X11/xorg.confを作成していない状態)では マウスが利用できなかったのですが、 今回はデフォルトでもマウスが認識されました。
また、Gentoo Linuxの時と同様に、UXGA/1600x1200が解像度として選択されました。



下記は /var/log/Xorg.0.log の抜粋です。 デフォルトでは eLOM は英語キーボードとして認識されるので、 日本語で利用したい場合は、Xorg -configure で /etc/X11/xorg.conf を作成し、 編集する等を行う必要があります。

X.Org X Server 1.4.2
Release Date: 11 June 2008
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 7.1-RELEASE amd64 
Current Operating System: FreeBSD x4150-web 7.1-RC1 FreeBSD 7.1-RC1 #0: Sun Dec 
 7 00:38:13 UTC 2008     root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENE
RIC amd64
Build Date: 30 October 2008  02:59:59PM

...(略)...

(**) Option "CoreKeyboard"
(**) : always reports core events
(**) Option "Protocol" "standard"
(**) : Protocol: standard
(**) Option "AutoRepeat" "500 30"
(**) Option "XkbRules" "xorg"
(**) : XkbRules: "xorg"
(**) Option "XkbModel" "pc105"
(**) : XkbModel: "pc105"
(**) Option "XkbLayout" "us"
(**) : XkbLayout: "us"
(**) Option "CustomKeycodes" "off"
(**) : CustomKeycodes disabled
(II) evaluating device ()
(II) XINPUT: Adding extended input device "" (type: KEYBOARD)
(II) evaluating device ()
(II) XINPUT: Adding extended input device "" (type: MOUSE)
(II) : SetupAuto: hw.iftype is 4, hw.model is 0
(II) : SetupAuto: protocol is SysMouse
(==) VESA(0): Write-combining range (0x0,0x1000) was already clear
(==) VESA(0): Write-combining range (0x0,0x1000) was already clear
(==) VESA(0): Write-combining range (0x0,0x1000) was already clear
(==) VESA(0): Write-combining range (0x0,0x1000) was already clear
(==) VESA(0): Write-combining range (0x0,0x1000) was already clear
(==) VESA(0): Write-combining range (0x0,0x1000) was already clear
FreeFontPath: FPE "/usr/local/lib/X11/fonts/misc/" refcount is 2, should be 1; f
ixing.

http://blogs.sun.com/thaniwa/date/20081218 2008年 12月 18日 木曜日

(JA) Gentoo Linux 2008.0-r1 on Sun Fire X4150

Sun Fire X4150 に Gentoo Linux 2008.0-r1 をインストールしてみましたので、 そのログを載せておきます。
Gentoo Linux は容量の小さなインストール用CDとLiveCD の2種類のイメージが配布されています。
ここでは、LiveCDを起動し、LiveCDに付属するインストーラで Gentoo Linux をインストールしています。
下図はインストールの様子です。 Gentoo のインストーラは RedHat/Ubuntu系と結構違います。



dmesg の出力です。 先頭がちょっとあやしいのですが、今回のテストで得られた出力そのままです。

sion 2.6.24-gentoo-r7 (root@poseidon) (gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2))
#1 SMP Thu Jul 3 18:36:20 UTC 2008
Command line: root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000007ffb0000 (usable)
 BIOS-e820: 000000007ffbe000 - 000000007ffc0000 type 9
 BIOS-e820: 000000007ffc0000 - 000000007ffce000 (ACPI data)
 BIOS-e820: 000000007ffce000 - 0000000080000000 (ACPI NVS)
 BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
 BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved)
Entering add_active_range(0, 0, 159) 0 entries of 256 used
Entering add_active_range(0, 256, 524208) 1 entries of 256 used
end_pfn_map = 1048576
DMI present.
ACPI: RSDP 000FA5E0, 0024 (r2 ACPIAM)
ACPI: XSDT 7FFC0100, 008C (r1 A M I  OEMXSDT   5000813 MSFT       97)
ACPI: FACP 7FFC0290, 00F4 (r3 A M I  OEMFACP   5000813 MSFT       97)
ACPI: DSDT 7FFC04F0, 46FE (r1  1ADQW 1ADQW025       25 INTL 20051117)
ACPI: FACS 7FFCE000, 0040
...(省略)...
ACPI: PM-Timer IO Port: 0x408
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
Processor #0 (Bootup-CPU)
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled)
Processor #1
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x02] enabled)
Processor #2
ACPI: LAPIC (acpi_id[0x04] lapic_id[0x03] enabled)
Processor #3
...(省略)...
Kernel command line: root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sd
a3
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
Extended CMOS year: 2000
hpet clockevent registered
TSC calibrated against HPET
time.c: Detected 1861.915 MHz processor.
Console: colour VGA+ 80x25
console [tty0] enabled
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Checking aperture...
Calgary: detecting Calgary via BIOS EBDA area
Calgary: Unable to locate Rio Grande table in EBDA - bailing!
Memory: 2035088k/2096832k available (3707k kernel code, 60720k reserved, 1125k d
ata, 256k init)
Calibrating delay using timer specific routine.. 3726.22 BogoMIPS (lpj=18631130)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 4096K
using mwait in idle threads.
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
CPU0: Thermal monitoring enabled (TM2)
SMP alternatives: switching to UP code
ACPI: Core revision 20070126
Using local APIC timer interrupts.
APIC timer calibration result 16624250
Detected 16.624 MHz APIC timer.
SMP alternatives: switching to SMP code
Booting processor 1/4 APIC 0x1
Initializing CPU#1
Calibrating delay using timer specific routine.. 3723.87 BogoMIPS (lpj=18619388)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 4096K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
CPU1: Thermal monitoring enabled (TM2)
Intel(R) Xeon(R) CPU           E5320  @ 1.86GHz stepping 0b
checking TSC synchronization [CPU#0 -> CPU#1]: passed.
SMP alternatives: switching to SMP code
Booting processor 2/4 APIC 0x2
Initializing CPU#2
Calibrating delay using timer specific routine.. 3723.90 BogoMIPS (lpj=18619510)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 4096K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 2
CPU2: Thermal monitoring enabled (TM2)
Intel(R) Xeon(R) CPU           E5320  @ 1.86GHz stepping 0b
checking TSC synchronization [CPU#0 -> CPU#2]: passed.
SMP alternatives: switching to SMP code
Booting processor 3/4 APIC 0x3
Initializing CPU#3
Calibrating delay using timer specific routine.. 3723.89 BogoMIPS (lpj=18619483)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 4096K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 3
CPU3: Thermal monitoring enabled (TM2)
Intel(R) Xeon(R) CPU           E5320  @ 1.86GHz stepping 0b
checking TSC synchronization [CPU#0 -> CPU#3]: passed.
Brought up 4 CPUs
...(省略)...
Intel(R) PRO/1000 Network Driver - version 7.3.20-k2
Copyright (c) 1999-2006 Intel Corporation.
ACPI: PCI Interrupt 0000:04:00.0[A] -> GSI 18 (level, low) -> IRQ 18
PCI: Setting latency timer of device 0000:04:00.0 to 64
e1000: 0000:04:00.0: e1000_probe: (PCI Express:2.5Gb/s:Width x4) xx:xx:xx:xx:xx:7c
e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
ACPI: PCI Interrupt 0000:04:00.1[B] -> GSI 19 (level, low) -> IRQ 19
PCI: Setting latency timer of device 0000:04:00.1 to 64
e1000: 0000:04:00.1: e1000_probe: (PCI Express:2.5Gb/s:Width x4) xx:xx:xx:xx:xx:7d
e1000: eth1: e1000_probe: Intel(R) PRO/1000 Network Connection
ACPI: PCI Interrupt 0000:0b:00.0[A] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:0b:00.0 to 64
e1000: 0000:0b:00.0: e1000_probe: (PCI Express:2.5Gb/s:Width x4) xx:xx:xx:xx:xx:7e
e1000: eth2: e1000_probe: Intel(R) PRO/1000 Network Connection
ACPI: PCI Interrupt 0000:0b:00.1[B] -> GSI 17 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:0b:00.1 to 64
e1000: 0000:0b:00.1: e1000_probe: (PCI Express:2.5Gb/s:Width x4) xx:xx:xx:xx:xx:7f
e1000: eth3: e1000_probe: Intel(R) PRO/1000 Network Connection
... (省略) ...

Gentoo のデフォルトのディスクスライス。

# df -k

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda3            138835788   2485980 129297276   2% /
udev                     10240       208     10032   3% /dev
/dev/sda1               101086     28203     67664  30% /boot
none                   1029224         0   1029224   0% /dev/shm

/etc/fstab

/dev/sda1        /boot   ext2    defaults                1 2
/dev/sda2        none            swap            sw              0 0
/dev/sda3        /       ext3    noatime                 0 1
none        /proc     proc    defaults          0 0
none        /dev/shm  tmpfs   defaults          0 0

(参考)インストール後の標準環境で eLOM の RKVMS 経由で接続した場合、 X-Window のサイズが の画面サイズが UXGA (1600x1200) に設定されるようです。 eLOM下部に解像度が表示されています。
今回の環境は XGA (1024x768) なので、Gentoo の画面が縮小表示されているため、 多少文字等が読みにくい状態になっています。
環境によっては見えにくい場合もあります。 その場合は /etc/X11/xorg.conf の編集等を行い、解像度を変更する必要があります。



http://blogs.sun.com/thaniwa/date/20081215 2008年 12月 15日 月曜日

(JA) sulogin on OpenSolaris

既に色んなところでアナウンスされているかと思いますが、 OpenSolaris 2008.11 がリリースされました。
http://opensolaris.com/ から、取得できます。
http://lifewithsolaris.jp/uploads/iso/opensolaris/2008/11/ のようなミラーサイトでは usb イメージもダウンロード可能になっています。

少しだけ思うところがあって、私の環境はOpenSolaris 101a-rc1bのままで、 OpenSolaris 2008.11 のリリース版にしていなかったりします。
が、そんなことは置いといて、suloginの話。
b99かb100あたりだったかと思うのですが、suの仕様が変更されました。 おそらく 2008.11 でも同様だと思うので、載せておきます。
下記のような感じで su での root 変更ができなくなっています。 一応、pfexecとsuの組み合わせは今のところ有効です。

user@opensolaris:~$ su -
Password: 
su: Sorry
user@opensolaris:~$ pfexec su -
Sun Microsystems Inc.	SunOS 5.11	snv_101a	November 2008
root@opensolaris:~# 

http://blogs.sun.com/thaniwa/date/20081211 2008年 12月 11日 木曜日

(JA) FreeBSD 7.0 on Sun Fire X4150

FreeBSD 7.0 を Sun Fire X4150 で動かしてみました。
そのログです。
HBA には SG-PCIE8SAS-I-Z : 8-port Internal SAS PCI Express LSI3081E Host Bus Adapter を利用しています。

もう1つのアダプタである SG-PCIESAS-R-INT-Z : Sun StorageTek 8-port Internal SAS RAID Host Bus Adapter 環境ではテストしていません。

dmesg の出力です。
FreeBSD では ネットワークインタフェースは em となるようです。 Sun Fire X4150 では 4つの Gigabit Ethernet インタフェースがあり、 全て Intel 製のものですが、FreeBSD は 2つしか初期化できませんでした。

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.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008
    root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz (3171.40-MHz K8-class CPU)
  Origin = "GenuineIntel"  Id = 0x10676  Stepping = 6
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0xce3bd on cpu1
cpu2: <ACPI CPU> on acpi0
est2: failed to enable SpeedStep
p4tcc2: <CPU Frequency Thermal Control> on cpu2
cpu3: <ACPI CPU> on acpi0
est3: failed to enable SpeedStep
p4tcc3: <CPU Frequency Thermal Control> on cpu3
cpu4: <ACPI CPU> on acpi0
est4: failed to enable SpeedStep
p4tcc4: <CPU Frequency Thermal Control> on cpu4
cpu5: <ACPI CPU> on acpi0
est5: failed to enable SpeedStep
p4tcc5: <CPU Frequency Thermal Control> on cpu5
cpu6: <ACPI CPU> on acpi0
est6: failed to enable SpeedStep
p4tcc6: <CPU Frequency Thermal Control> on cpu6
cpu7: <ACPI CPU> on acpi0
est7: failed to enable SpeedStep
p4tcc7: <CPU Frequency Thermal Control> on cpu7
...(省略)...
em0: <Intel(R) PRO/1000 Network Connection Version - 6.7.3> port 0x8c00-0x8c1f m
em 0xfc6e0000-0xfc6fffff irq 18 at device 0.0 on pci4
em0: Using MSI interrupt
em0: Ethernet address: 00:1e:68:57:4a:d0
em0: [FILTER]
em1: <Intel(R) PRO/1000 Network Connection Version - 6.7.3> port 0x8800-0x881f m
em 0xfc6c0000-0xfc6dffff irq 19 at device 0.1 on pci4
em1: Using MSI interrupt
em1: Ethernet address: 00:1e:68:57:4a:d1
em1: [FILTER]
...(省略)...
em2: <Intel(R) PRO/1000 Network Connection Version - 6.7.3> port 0xac00-0xac1f m
em 0xfcde0000-0xfcdfffff,0xfcdc0000-0xfcddffff irq 16 at device 0.0 on pci11
em2: Using MSI interrupt
em2: Hardware Initialization Failed
em2: Unable to initialize the hardware
device_attach: em2 attach returned 5
em3: <Intel(R) PRO/1000 Network Connection Version - 6.7.3> port 0xa800-0xa81f m
em 0xfcd80000-0xfcd9ffff,0xfcd60000-0xfcd7ffff irq 17 at device 0.1 on pci11
em3: Using MSI interrupt
em3: Hardware Initialization Failed
em3: Unable to initialize the hardware
device_attach: em3 attach returned 5
...(省略)...

ifconfig の出力です。上記の dmesg で分かるのですが、 Gigabit Ethernet インタフェースは 2つまでになっています。 (Macアドレス、IPアドレスは一部伏せています。)

em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
        ether xx:xx:xx:xx:xx:d0
        inet xx.xx.xx.238 netmask 0xffffff00 broadcast xx.xx.xx.255
        media: Ethernet autoselect
        status: no carrier
em1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
        ether xx:xx:xx:xx:xx:d1
        media: Ethernet autoselect
        status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 
        inet6 ::1 prefixlen 128 
        inet 127.0.0.1 netmask 0xff000000 


gnome-system-monitor の システム情報です。



eLOM の RKVMS 経由で X-Window を利用する際の注意。

FreeBSD に X-Window システムを追加した場合、Sun Fire X4150(eLOM) の RKVMS 経由で X-Window を利用することができます。
ただし、インストール直後の状態では、 RKVMS 経由でマウス操作ができない状態になっています。
RKVMS 経由で X-Window を利用する場合、

# X -configure
# cp /root/xorg.conf.new /etc/X11/xorg.conf

のように、xorg.conf を別途作成する必要があります。

http://blogs.sun.com/thaniwa/date/20081206 2008年 12月 06日 土曜日

(JA) New Features of OpenSolaris 2008.11

http://www.opensolaris.com/learn/features/whats-new/200811/ に新しい特徴がまとまってます。

デスクトップサイドでは、 Firefox 3, OpenOffice.org 3 など最新版への更新もありますが、 個人的に気になるのは Songbird(iTunesみたいなメディアプレイヤー) と Transmission(Bittorent クライアント) です。

サーバサイドでは OpenStorage 対応でしょうか。
storage-nas, storage-server パッケージクラスタが該当します。

開発者向けでは NetBeans が 6.5 にアップデートされてますが、 さらに Eclipse まで追加されているようです。

http://blogs.sun.com/thaniwa/date/20081204 2008年 12月 04日 木曜日

(JA) Debian Linux 4.0r3 on Sun Fire X4150

Debian Linux 4.0r3 on Sun Fire X4140
http://blogs.sun.com/thaniwa/entry/ja_debian_on_x4140

に続いて、Debian Linux 4.0r3 on Sun Fire X4150です。

Sun Fire X4140 のテストと同様に
SG-PCIE8SAS-I-Z 8-port Internal SAS PCI Express LSI3081E Host Bus Adapter
を利用しています。

dmesg の出力です。

Bootdata ok (command line is root=/dev/sda1 ro )
Linux version 2.6.18-6-amd64 (Debian 2.6.18.dfsg.1-22) (dannf@debian.org) (gcc v
ersion 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Mon Jun 16 22:30:01
 UTC 2008
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dffb0000 (usable)
 BIOS-e820: 00000000dffbe000 - 00000000dffc0000 type 9
 BIOS-e820: 00000000dffc0000 - 00000000dffce000 (ACPI data)
 BIOS-e820: 00000000dffce000 - 00000000e0000000 (ACPI NVS)
 BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
 BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved)
 BIOS-e820: 0000000100000000 - 0000000220000000 (usable)
DMI present.
ACPI: RSDP (v002 ACPIAM                                ) @ 0x00000000000fa5e0
ACPI: XSDT (v001 A M I  OEMXSDT  0x05000813 MSFT 0x00000097) @ 0x00000000dffc010
0
ACPI: FADT (v003 A M I  OEMFACP  0x05000813 MSFT 0x00000097) @ 0x00000000dffc029
0


...(略)...
Checking aperture...
PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
Placing software IO TLB between 0x1c7c000 - 0x5c7c000
Memory: 8178396k/8912896k available (1928k kernel code, 209504k reserved, 867k d
ata, 176k init)
Calibrating delay using timer specific routine.. 6322.84 BogoMIPS (lpj=12645688)
Security Framework v1.0.0 initialized
SELinux:  Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 256
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 6144K
using mwait in idle threads.
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
CPU0: Thermal monitoring enabled (TM2)
SMP alternatives: switching to UP code
ACPI: Core revision 20060707
Using local APIC timer interrupts.
result 20781276
Detected 20.781 MHz APIC timer.
SMP alternatives: switching to SMP code
Booting processor 1/8 APIC 0x4
Initializing CPU#1
Calibrating delay using timer specific routine.. 6317.59 BogoMIPS (lpj=12635191)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 6144K
CPU: Physical Processor ID: 1
CPU: Processor Core ID: 0
CPU1: Thermal monitoring enabled (TM2)
Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz stepping 06
SMP alternatives: switching to SMP code
Booting processor 2/8 APIC 0x1
Initializing CPU#2
Calibrating delay using timer specific routine.. 6317.53 BogoMIPS (lpj=12635067)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 6144K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
CPU2: Thermal monitoring enabled (TM2)
Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz stepping 06

...(省略)...

CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 6144K
CPU: Physical Processor ID: 1
CPU: Processor Core ID: 2
CPU6: Thermal monitoring enabled (TM2)
Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz stepping 06
SMP alternatives: switching to SMP code
Booting processor 7/8 APIC 0x7
Initializing CPU#7
Calibrating delay using timer specific routine.. 6317.65 BogoMIPS (lpj=12635308)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 6144K
CPU: Physical Processor ID: 1
CPU: Processor Core ID: 3
CPU7: Thermal monitoring enabled (TM2)
Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz stepping 06
Brought up 8 CPUs
testing NMI watchdog ... OK.
migration_cost=30,13964
checking if image is initramfs... it is
Freeing initrd memory: 5313k freed
NET: Registered protocol family 16

...(略)...

/proc/cpuinfo です。 1CPU(4コア)分です。これが、8コア分まで続きます。

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz
stepping        : 6
cpu MHz         : 3158.754
cache size      : 6144 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc
 pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
bogomips        : 6322.84
clflush size    : 64
cache_alignment : 64
address sizes   : 38 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz
stepping        : 6
cpu MHz         : 3158.754
cache size      : 6144 KB
physical id     : 1
siblings        : 4
core id         : 0
cpu cores       : 4
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc
 pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
bogomips        : 6317.59
clflush size    : 64
cache_alignment : 64
address sizes   : 38 bits physical, 48 bits virtual
power management:

processor       : 2
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz
stepping        : 6
cpu MHz         : 3158.754
cache size      : 6144 KB
physical id     : 0
siblings        : 4
core id         : 1
cpu cores       : 4
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc
 pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
bogomips        : 6317.53
clflush size    : 64
cache_alignment : 64
address sizes   : 38 bits physical, 48 bits virtual
power management:

processor       : 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz
stepping        : 6
cpu MHz         : 3158.754
cache size      : 6144 KB
physical id     : 0
siblings        : 4
core id         : 2
cpu cores       : 4
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc
 pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
bogomips        : 6317.62
clflush size    : 64
cache_alignment : 64
address sizes   : 38 bits physical, 48 bits virtual
power management:

ifconfig の出力です。特に何もすることなく、 Gigabit Ethernet 4つ全て認識します。 (IPアドレスおよびMacアドレスは一部伏せ字に変更しています。)

eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:D0  
          inet addr:xx.xx.xx.238  Bcast:xx.xx.xx.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Base address:0x8c00 Memory:fc6e0000-fc700000 

eth1      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:D1  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Base address:0x8800 Memory:fc6c0000-fc6e0000 

eth2      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:D2  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Base address:0xac00 Memory:fcde0000-fce00000 

eth3      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:D3  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Base address:0xa800 Memory:fcd80000-fcda0000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:28 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2224 (2.1 KiB)  TX bytes:2224 (2.1 KiB)

http://blogs.sun.com/thaniwa/date/20081130 2008年 11月 30日 日曜日

(JA) moving files with rsync

古い linux 環境から、新しい linux (CentOS 5.2) に ファイルの移動を行いたかったので、あれこれ調べていたのですが、 rsync を使ってみました。メモがわりに書いておきます。

ファイルのコピーなら ftp や scp など色々あるのですが、 古い linux 環境には数は比較的少ないのですが、EUC-JPのファイルやディレクトリが存在しています。
新しいlinux環境がUTF-8がメインになっており、そろそろ UTF-8 への移行を考えていたため、 ファイルの文字コード変換が必要になります。
そこで、rsync を調べてみたところ、version 3以降に --iconv でファイル名の文字コード変換が行えるようなので、これを活用してみました。

CentOS 5.2 に入っている rsync のバージョンは 2.6.8 のため、対応していません。 ということで、まず rsync 3.0.4 をインストール。

# tar xzvf rsync-3.0.4.tar.gz
# cd rsync-3.0.4
# ./configure --prefix=/usr/local
# make
# make install

とお約束の作業で入ります。面倒だったので rpm 化はおこないませんでした。^-^;
リモートからのコピーの場合、

$ /usr/local/bin/rsync -a --iconv=EUC-JP,UTF8 user@xxx.xxx.xxx.xxx/* /hogehoge

という感じなんですが、古い方もちゃんと入っている必要があるのか、エラーで停止。
古い側もちゃんと文字コード対応が必要なんでしょうが、いじるのが面倒だったので、 古い linux 側の /etc/exports を変更後、/etc/init.d/nfsd restart でリスタートし、 /mnt としてマウント。その後、rsync で文字列変換コピーを行うという感じで処理してみました。^-^;

$ /usr/local/bin/rsync -a --iconv=EUC-JP,UTF8 /mnt/* .

とりあえず、ちゃんとコピーできたみたいです。

http://blogs.sun.com/thaniwa/date/20081129 2008年 11月 29日 土曜日

(JA) USB-Gigabit on CentOS 5.2

個人で所有しているノートPCの1台(49,800の安物^-^;)に搭載のEthernetは Gigabit Ethernetだと思っていたのですが、 実は Fast Ethernet (100Mbps) だったというオチがありました。orz
それで、どうしてもGigabit環境が欲しかったので、USB Gigabit を導入してみました。 USBの最高速が 480Mbps なので、 Gigabit のフルスピードは出ませんが、 Fast Ethernet よりは出るだろうということで。
今回買ってみたのは Buffalo LUA2-U2-KGT です。


このPCには CentOS 5.2 をインストールしているのですが、標準では認識しないので ドライバをインストールしてみました。
Fedora 10 とか Ubuntu 8.10 とか最新の Linux では不要です。 (既に上記のデバイスがそのまま使えるようになっています。)

このUSB-Gigabitは AX88178 を使っているらしいです。 LinuxのカーネルにはAX8817*系のドライバが組み込んであるのですが、 AX88178に対応しているのは 2.6.19 以降でした。
CentOS 5.2 は 2.6.18 なので、対応していないようです。 ということで、kernel 2.6.19 からこのドライバをいれるという方法を取りました。 (一応、バージョンが近いものを利用するということで。)

まず、kernel.org から linux-2.6.19.tar.gz をダウンロードし、解凍。
linux-2.6.19/drivers/usb/net/asix.c を編集し、LUA2-U2-KGT の情報を追加します。 (下記は現時点での最新カーネル 2.6.27.7 から引用。 LUA2-U2-KGT も LUA-U2-GT も中身が同じです。

        // Buffalo LUA-U2-GT 10/100/1000
        USB_DEVICE (0x0411, 0x006e),
        .driver_info =  (unsigned long) &ax88178_info,
}, {

ここではデバイス情報を登録しているのですが、 デバイス情報は lsusb で確認できたりします。
Logitech(Logicool) の VX Revolution を使っているのですが、CentOS は MX610 だと認識してますが…。^-^;

# lsusb
Bus 003 Device 001: ID 0000:0000  
Bus 004 Device 001: ID 0000:0000  
Bus 001 Device 001: ID 0000:0000  
Bus 001 Device 003: ID 0411:006e MelCo., Inc. 
Bus 006 Device 001: ID 0000:0000  
Bus 005 Device 001: ID 0000:0000  
Bus 002 Device 001: ID 0000:0000  
Bus 002 Device 002: ID 046d:c518 Logitech, Inc. MX610 Laser Cordless Mouse

あとは、ビルドです。下記のような感じで行えば、最小限のビルドで済みますので、 すぐにビルドできます。ビルド後、asix.ko, usbnet.ko を /lib/modules にコピーし、ロード。

ドライバのビルド
# cd linux-2.6.19/drivers/usb/net/
# make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules

ドライバのコピー
# cp asix.ko usbnet.ko /lib/modules/`uname -r`/drivers/usb/net/.

ドライバのロード
# modprobe asix
# modprobe usbnet

その後、デバイスを登録すれば起動時に認識するようになります。
下記は dmesg の該当部分を抜き出してみたところです。

eth0: Generic Marvell Yukon chipset Ethernet device
      PrefPort:A  RlmtMode:Check Link State


usbnet: no version for "struct_module" found: kernel tainted.
eth0: register 'asix' at usb-0000:00:13.5-3, ASIX AX88178 USB 2.0 Ethernet, 
usbcore: registered new driver asix
eth0: link down
eth0: link up, 1000Mbps, full-duplex, lpa 0xC5E1

http://blogs.sun.com/thaniwa/date/20081127 2008年 11月 27日 木曜日

(JA) Debian Linux 4.0r3 on X4140

Debian Linux 4.0r3 on Sun Fire X4600 M2
http://blogs.sun.com/thaniwa/entry/ja_debian_on_x4600m2
Ubuntu Linux 8.04 Server on Sun Fire X4600 M2
http://blogs.sun.com/thaniwa/entry/ja_ubuntu_on_x4600m2
に続いて、Debian Linux 4.0r3 on Sun Fire X4140です。

Sun Fire X4140 は 内蔵ディスク用の SAS RAID カードを選択できるようになっていますが、 今回のテストでは
SG-PCIE8SAS-I-Z 8-port Internal SAS PCI Express LSI3081E Host Bus Adapter
を利用しています。

dmesg の出力です。

Bootdata ok (command line is root=/dev/sda1 ro )
Linux version 2.6.18-6-amd64 (Debian 2.6.18.dfsg.1-22) (dannf@debian.org) (gcc v
ersion 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Mon Jun 16 22:30:01
 UTC 2008
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009b800 (usable)
 BIOS-e820: 000000000009b800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dcfb0000 (usable)
 BIOS-e820: 00000000dcfbe000 - 00000000dcfc0000 (usable)
 BIOS-e820: 00000000dcfc0000 - 00000000dcfce000 (ACPI data)
 BIOS-e820: 00000000dcfce000 - 00000000dd000000 (ACPI NVS)
 BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fef00000 (reserved)
 BIOS-e820: 00000000ff700000 - 0000000100000000 (reserved)
 BIOS-e820: 0000000100000000 - 0000000223000000 (usable)
DMI present.
ACPI: RSDP (v000 ACPIAM                                ) @ 0x00000000000fa0a0
ACPI: RSDT (v001 SUN    X4x40    0x03000820 MSFT 0x00000097) @ 0x00000000dcfc000
0
ACPI: FADT (v002 SUN    X4x40    0x03000820 MSFT 0x00000097) @ 0x00000000dcfc020
0
ACPI: MADT (v001 SUN    X4x40    0x03000820 MSFT 0x00000097) @ 0x00000000dcfc039
0
ACPI: SPCR (v001 SUN    X4x40    0x03000820 MSFT 0x00000097) @ 0x00000000dcfc048
0

...(略)...

Mapping aperture over 65536 KB of RAM @ 4000000
Memory: 8177848k/8962048k available (1928k kernel code, 210044k reserved, 867k d
ata, 176k init)
Calibrating delay using timer specific routine.. 6006.48 BogoMIPS (lpj=12012962)
Security Framework v1.0.0 initialized
SELinux:  Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 1024K (64 bytes/line)
CPU 0/0 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
SMP alternatives: switching to UP code
ACPI: Core revision 20060707
Using local APIC timer interrupts.
result 12502870
Detected 12.502 MHz APIC timer.
SMP alternatives: switching to SMP code
Booting processor 1/4 APIC 0x1
Initializing CPU#1
Calibrating delay using timer specific routine.. 6000.43 BogoMIPS (lpj=12000872)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 1024K (64 bytes/line)
CPU 1/1 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
Dual-Core AMD Opteron(tm) Processor 2222 stepping 03
CPU 1: Syncing TSC to CPU 0.
CPU 1: synchronized TSC with CPU 0 (last diff 0 cycles, maxerr 695 cycles)
SMP alternatives: switching to SMP code
Booting processor 2/4 APIC 0x2
Initializing CPU#2
Calibrating delay using timer specific routine.. 6000.22 BogoMIPS (lpj=12000452)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 1024K (64 bytes/line)
CPU 2/2 -> Node 1
CPU: Physical Processor ID: 1
CPU: Processor Core ID: 0
Dual-Core AMD Opteron(tm) Processor 2222 stepping 03
CPU 2: Syncing TSC to CPU 0.
CPU 2: synchronized TSC with CPU 0 (last diff 0 cycles, maxerr 1001 cycles)
SMP alternatives: switching to SMP code
Booting processor 3/4 APIC 0x3
Initializing CPU#3
Calibrating delay using timer specific routine.. 6000.44 BogoMIPS (lpj=12000890)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 1024K (64 bytes/line)
CPU 3/3 -> Node 1
CPU: Physical Processor ID: 1
CPU: Processor Core ID: 1
Dual-Core AMD Opteron(tm) Processor 2222 stepping 03
CPU 3: Syncing TSC to CPU 0.
CPU 3: synchronized TSC with CPU 0 (last diff 0 cycles, maxerr 1001 cycles)
Brought up 4 CPUs

...(略)...

/proc/cpuinfo です。

processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 65
model name      : Dual-Core AMD Opteron(tm) Processor 2222
stepping        : 3
cpu MHz         : 3000.687
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
 pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm
 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8_legacy
bogomips        : 6006.48
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 65
model name      : Dual-Core AMD Opteron(tm) Processor 2222
stepping        : 3
cpu MHz         : 3000.687
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
 pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm
 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8_legacy
bogomips        : 6000.43
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

processor       : 2
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 65
model name      : Dual-Core AMD Opteron(tm) Processor 2222
stepping        : 3
cpu MHz         : 3000.687
cache size      : 1024 KB
physical id     : 1
siblings        : 2
core id         : 0
cpu cores       : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
 pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm
 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8_legacy
bogomips        : 6000.22
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

processor       : 3
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 65
model name      : Dual-Core AMD Opteron(tm) Processor 2222
stepping        : 3
cpu MHz         : 3000.687
cache size      : 1024 KB
physical id     : 1
siblings        : 2
core id         : 1
cpu cores       : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
 pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm
 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8_legacy
bogomips        : 6000.44
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

ifconfig の出力です。特に何もすることなく、 Gigabit Ethernet 4つ全て認識します。 下記では eth0 と eth2 を利用中の状態です。 (IPアドレスおよびMacアドレスは一部伏せ字に変更しています。)

eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:22  
          inet addr:xx.xx.xx.239  Bcast:xx.xx.xx.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:225 Base address:0x8000 

eth1      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:23  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:233 Base address:0xa000 

eth2      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:24  
          inet addr:xx.xx.xx.101  Bcast:xxx.xxx.255.255  Mask:255.255.0.0
          inet6 addr: fe80::214:4fff:fe8d:6424/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:58 Base address:0xe000 

eth3      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:25  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:82 Base address:0xe000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:68 errors:0 dropped:0 overruns:0 frame:0
          TX packets:68 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:4699 (4.5 KiB)  TX bytes:4699 (4.5 KiB)

http://blogs.sun.com/thaniwa/date/20081126 2008年 11月 26日 水曜日

(JA) Fedora 10

Fedora 10 がリリースされてます。
スケジュール通りですね。
時間が取れれば試したいなぁ…と思ってます。
http://fedoraproject.org/ja/

OpenSolaris 2008.11 も RC2 になってますし、 リリースも秒読みかと思います。
Ubuntu 8.10 から始まり、この辺を追っかけている人間としてみると 怒濤のリリースラッシュで追いつかない…。^-^;

とちょっとだけ Javaネタ。
Fedora は 8 の時に IcedTea を入れていたのが、 現在は OpenJDK になっています。

元来はそれだけだったのですが、Fedora 10 からは NetBeans も含まれたようです。(*゚▽゚ノノ゙☆パチパチ

http://docs.fedoraproject.org/release-notes/f10/ja/How_are_Things_for_Developers.html#sn-NetBeans

NetBean ではありません。NetBeansです、ねっとびーんず。
開発スケジュールとNetBeans 6.5のリリーススケジュールが思いきりかぶっている 影響だと思いますが、NetBeans 6.1になっているようです。
ということで、Fedora 10 の方も NetBeans を使いませう。

と、私が一番気になっているのは自宅マシンの無線LAN(5300AGN)がちゃんと使えるかどうかです…。(Ubuntu 8.10では使えるんですがFedora 10 Betaで思わぬ苦戦をしたので…)

http://blogs.sun.com/thaniwa/date/20081123 2008年 11月 23日 日曜日

(JA) XRDP 4.1 on CentOS 5.2

現在の個人環境は Windows XP, Vista, OpenSolaris, CentOS 5.2, Ubuntu Linux と 結構ややこしいことになってたりします。^-^;
そのうち、CentOS 5.2 に xrdp をインストールしたので、メモ代わりに。
Solaris はこっち(http://blogs.sun.com/thaniwa/entry/ja_xrdp)

とりあえず gcc, pam-devel, openssl-devel が無い場合は追加します。

# yum install gcc pam-devel openssl-devel

あとは日本語キーボードパッチを無理やり当てて、インストール。^-^;

# tar xzvf xrdp-0.4.1.tar.gz
# patch -p0 < xrdp-0.4.0-ja.gdiff
# cd xrdp-0.4.1
# make
# make install

xrdp_control.sh が起動・終了用スクリプトになっているので、/etc/init.d にコピーし、 サービスとして登録。 (スクリプト内のチェックの関係で xrdp,sesman に変更してしまうとちゃんと動かなくなります。そのため xrdesktop という名称にしています。)

# ln /usr/local/xrdp/xrdp_control.sh /etc/init.d/xrdesktop
# chkconfig --add xrdesktop
# chkconfig --list | grep xrdesktop
xrdesktop            0:off   1:off   2:on    3:on    4:on    5:on    6:off

あとは必要に応じて /usr/local/xrdp/startwm.sh を変更します。
ファイアーウォールを変更し、 3350,3389 (rdp),5910 など必要に応じて アクセスできるようにするのも忘れずに。

http://blogs.sun.com/thaniwa/date/20081112 2008年 11月 12日 水曜日

(JA) Ubuntu Linux 8.04 on Sun Fire X4600M2

先週の続きです。
タイミングとしては 8.10 でテストできれば良かったのかもしれませんが、 記事とテストの間にタイムラグがあるもので…。 ということで、今回は Ubuntu Linux 8.04 Server です。

[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.24-16-server (buildd@yellow) (gcc version 
4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Thu Apr 10 13:15:38 UTC 2008 (Ubuntu 
2.6.24-16.30-server)
[    0.000000] Command line: root=UUID=3d184a72-aa7b-4747-9bdc-e0d86f233e7f ro 
console=tty0 console=ttyS0,9600
[    0.000000] BIOS-provided physical RAM map:

...(省略)...

[    0.000000] Initializing CPU#0
[    0.000000] PID hash table entries: 4096 (order: 12, 32768 bytes)
[    0.000000] Extended CMOS year: 2000
[    0.000000] TSC calibrated against HPET
[  448.076109] Marking TSC unstable due to TSCs unsynchronized
[  448.076111] time.c: Detected 2293.903 MHz processor.
[  448.077916] Console: colour VGA+ 80x25
[  448.077924] console [tty0] enabled
[  448.092787] console [ttyS0] enabled
[  461.429933] Checking aperture...
[  461.468453] CPU 0: aperture @ 4000000 size 32 MB
[  461.523605] Aperture too small (32 MB)
[  461.574112] No AGP bridge found
[  461.611606] Your BIOS doesn't leave a aperture memory hole
[  461.677138] Please enable the IOMMU option in the BIOS setup
[  461.744755] This costs you 64 MB of RAM
[  461.819054] Mapping aperture over 65536 KB of RAM @ 4000000
[  464.463015] Memory: 264675400k/268959744k available (2523k kernel code, 
3759256k reserved, 1328k data, 328k init)
[  464.585911] SLUB: Genslabs=12, HWalign=64, Order=0-1, MinObjects=4, CPUs=32, Nodes=8
[  464.821003] Calibrating delay using timer specific routine.. 4595.15 BogoMIPS (lpj=22975782)
[  464.922044] Security Framework initialized
[  464.970964] SELinux:  Disabled at boot.
[  465.016781] AppArmor: AppArmor initialized
[  465.065697] Failure registering capabilities with primary security module.
[  465.187223] Dentry cache hash table entries: 33554432 (order: 16, 268435456 bytes)
[  465.455895] Inode-cache hash table entries: 16777216 (order: 15, 134217728 bytes)
[  465.624736] Mount-cache hash table entries: 256
[  465.679595] Initializing cgroup subsys ns
[  465.727485] Initializing cgroup subsys cpuacct
[  465.780615] CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
[  465.865905] CPU: L2 Cache: 512K (64 bytes/line)
[  465.920017] CPU 0/4 -> Node 0
[  465.955420] CPU: Physical Processor ID: 1
[  466.003285] CPU: Processor Core ID: 0
[  466.047032] SMP alternatives: switching to UP code
[  466.105011] Early unpacking initramfs... done
[  466.445831] ACPI: Core revision 20070126
[  466.492761] ACPI: Looking for DSDT in initramfs... error, file /DSDT.aml not found.
[  466.688387] Using local APIC timer interrupts.
[  466.785022] Detected 12.466 MHz APIC timer.
[  466.835088] SMP alternatives: switching to SMP code
[  466.894028] Booting processor 1/32 APIC 0x5
[  466.955357] Initializing CPU#1
[  467.104747] Calibrating delay using timer specific routine.. 4592.19 BogoMIPS (lpj=22960977)
[  467.104756] CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
[  467.104757] CPU: L2 Cache: 512K (64 bytes/line)
[  467.104760] CPU 1/5 -> Node 0
[  467.104762] CPU: Physical Processor ID: 1
[  467.104763] CPU: Processor Core ID: 1
[  467.105057] Quad-Core AMD Opteron(tm) Processor 8356 stepping 03
[  467.105234] SMP alternatives: switching to SMP code
[  467.639310] Booting processor 2/32 APIC 0x6
[  467.699574] Initializing CPU#2
[  467.844114] Calibrating delay using timer specific routine.. 4590.77 BogoMIPS (lpj=22953893)
[  467.844127] CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
[  467.844128] CPU: L2 Cache: 512K (64 bytes/line)
[  467.844131] CPU 2/6 -> Node 0
[  467.844134] CPU: Physical Processor ID: 1
[  467.844135] CPU: Processor Core ID: 2
[  467.844437] Quad-Core AMD Opteron(tm) Processor 8356 stepping 03
[  467.844599] SMP alternatives: switching to SMP code

...(省略)...


/proc/cpuinfo です。Debian の場合と同じですが。 とりあえず、0番と31番のみを抜き出しています。

processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 16
model		: 2
model name	: Quad-Core AMD Opteron(tm) Processor 8356
stepping	: 3
cpu MHz		: 2293.903
cache size	: 512 KB
physical id	: 1
siblings	: 4
core id		: 0
cpu cores	: 4
fpu		: yes
fpu_exception	: yes
cpuid level	: 5
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
 pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb 
rdtscp lm 3dnowext 3dnow constant_tsc rep_good pni cx16 popcnt lahf_lm 
cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs
bogomips	: 4595.15
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

...(省略)...

processor	: 31
vendor_id	: AuthenticAMD
cpu family	: 16
model		: 2
model name	: Quad-Core AMD Opteron(tm) Processor 8356
stepping	: 3
cpu MHz		: 2293.903
cache size	: 512 KB
physical id	: 8
siblings	: 4
core id		: 3
cpu cores	: 4
fpu		: yes
fpu_exception	: yes
cpuid level	: 5
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
 pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb 
rdtscp lm 3dnowext 3dnow constant_tsc rep_good pni cx16 popcnt lahf_lm 
cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs
bogomips	: 4587.92
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

/proc/meminfo です。

MemTotal:     264683316 kB
MemFree:      263970364 kB
Buffers:          6156 kB
Cached:          77212 kB
SwapCached:          0 kB
Active:          83724 kB
Inactive:        57844 kB
SwapTotal:     5855652 kB
SwapFree:      5855652 kB
Dirty:               0 kB
Writeback:           0 kB
AnonPages:       58364 kB
Mapped:          21180 kB
Slab:            28588 kB
SReclaimable:    10540 kB
SUnreclaim:      18048 kB
PageTables:       3544 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:  138197308 kB
Committed_AS:   122676 kB
VmallocTotal: 34359738367 kB
VmallocUsed:    505508 kB
VmallocChunk: 34359228923 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
HugePages_Surp:      0
Hugepagesize:     2048 kB

freeコマンドとtopコマンドの出力結果。

$ free
             total       used       free     shared    buffers     cached
Mem:     264683316     713136  263970180          0       6172      77248
-/+ buffers/cache:     629716  264053600
Swap:      5855652          0    5855652

$ top
top - 16:45:17 up 6 min,  1 user,  load average: 0.04, 0.63, 0.42
Tasks: 326 total,   1 running, 325 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.1%us,  2.1%sy,  0.0%ni, 97.6%id,  0.1%wa,  0.0%hi,  0.1%si,  0.0%st
Mem:  264683316k total,   713440k used, 263969876k free,     6176k buffers
Swap:  5855652k total,        0k used,  5855652k free,    77260k cached
...(省略)...

lspci の抜粋です。
Sun Fire X4600M2 には X1027A (Dual 10Gbit Ethernet Card) を挿していたのですが、Ubuntu Linux は下記のように認識しています。
特にドライバをインストールすることもなく、ifconfig を使って、 eth4,eth5 として設定できました。

03:00.0 Ethernet controller: Sun Microsystems Computer Corp. Unknown device abcd (rev 01)
03:00.1 Ethernet controller: Sun Microsystems Computer Corp. Unknown device abcd (rev 01)
03:00.2 Ethernet controller: Sun Microsystems Computer Corp. Unknown device abcd (rev 01)
03:00.3 Ethernet controller: Sun Microsystems Computer Corp. Unknown device abcd (rev 01)
05:01.0 Ethernet controller: Intel Corporation 82546EB Gigabit Ethernet Controller (Copper) (rev 03)
05:01.1 Ethernet controller: Intel Corporation 82546EB Gigabit Ethernet Controller (Copper) (rev 03)
05:02.0 Ethernet controller: Intel Corporation 82546EB Gigabit Ethernet Controller (Copper) (rev 03)
05:02.1 Ethernet controller: Intel Corporation 82546EB Gigabit Ethernet Controller (Copper) (rev 03)



恒例?の gnome-system-monitor のスクリーンショットです。 ちゃんと認識していることがわかります。
こちらは Debian の時と異なり、CPUが32個、ちゃんと折り返し表示されます。 ただ、グラフを見てもほとんどわかりませんが…。