Sunday, December 23, 2007

hp Proliant ML110G5 続き

SATAケーブルを買ってきて HDD を追加。一応 diagnostics toolsでテストしたが、すごい時間かかるな。diagnostics toolsをいろいろみていたら BIOS characteristics の中に NEC PC-98 とかいう項目があることに気付いた。まだあるのかー。
ata1.01: ATA-8: Hitachi HDP725050GLA360, GM4OA52A, max UDMA/133
ata1.01: 976773168 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata1.01: configured for UDMA/133
usb 4-2: device not accepting address 2, error -71
ata2.00: ATA-8: Hitachi HDP725050GLA360, GM4OA52A, max UDMA/133
ata2.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata2.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access     ATA      FB080C4080       n/a  PQ: 0 ANSI: 5
scsi 0:0:1:0: Direct-Access     ATA      Hitachi HDP72505 GM4O PQ: 0 ANSI: 5
scsi 1:0:0:0: Direct-Access     ATA      Hitachi HDP72505 GM4O PQ: 0 ANSI: 5

sd 0:0:1:0: [sdb] 976773168 512-byte hardware sectors (500108 MB)
sd 0:0:1:0: [sdb] Write Protect is off
sd 0:0:1:0: [sdb] Mode Sense: 00 3a 00 00
sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sdb: unknown partition table
sd 0:0:1:0: [sdb] Attached SCSI disk
sd 1:0:0:0: [sdc] 976773168 512-byte hardware sectors (500108 MB)
sd 1:0:0:0: [sdc] Write Protect is off
sd 1:0:0:0: [sdc] Mode Sense: 00 3a 00 00
sd 1:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sdc: unknown partition table
sd 1:0:0:0: [sdc] Attached SCSI disk
cfdisk で Linux auto raid detect type な partition を作成。
# mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1
# mdadm -q /dev/md0
/dev/md0: 465.76GiB raid1 2 devices, 0 spares. Use mdadm --detail for more detail.
# mdadm --detail /dev/md0 
/dev/md0:
        Version : 00.90.03
  Creation Time : Sun Dec 23 21:24:48 2007
     Raid Level : raid1
     Array Size : 488383936 (465.76 GiB 500.11 GB)
    Device Size : 488383936 (465.76 GiB 500.11 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Sun Dec 23 21:24:48 2007
          State : clean, resyncing
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

 Rebuild Status : 13% complete

           UUID : cd2886dc:4789c813:49ae4a93:87ed48f6 (local to host mango)
         Events : 0.1

    Number   Major   Minor   RaidDevice State
       0       8       17        0      active sync   /dev/sdb1
       1       8       33        1      active sync   /dev/sdc1
# mkfs -j /dev/md0 
mke2fs 1.40-WIP (14-Nov-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
61063168 inodes, 122095984 blocks
6104799 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
3727 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
        102400000

Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
serial consoleの設定はこうしておけばOKかな。 まず BIOS の Advanced Console Redirection で
  • Console Redirection: Enabled
  • EMS Console: Enabled
  • Baud rate: 115.2K
  • Console Type: VT100
  • FLow Control: CTS/RTS
  • Continue C.R After POST: Disabled
なんか「Continue C.R. After POST」をEnabledにしておくと grub の serial設定でささった。罠ぽい。 で GRUB の設定は次を追加
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
terminal --timeout=3 serial console
さらに/etc/inittab
T0:23:respawn:/sbin/getty -L ttyS0 115200 vt102
こうしておくと Lights-Out 100 に telnet で login して、このserial経由でオペレーションできる。
% telnet aaa.bbb.ccc.ddd
Trying aaa.bbb.ccc.ddd...
Connected to aaa.bbb.ccc.ddd.
Escape character is '^]'.

*** IPCOM ***
login: foo
Password: 

Lights-Out 100 Management
Copyright 2005-2007 ServerEngines LLC
Copyright 2006-2007 Hewlett-Packard Development Company, L.P.

/./-> 
ここで cd system1してresetで電源リセット、startで電源オン、stopで電源オフ など。 ESC-Q で serial consoleに attach。抜ける時は ESC-(。

No comments:

Post a Comment