H340 ubuntu install

* H340 に Ubuntu 11.10 Server をインストール
画面の指示に従いインストール
(SSHサーバはインストールしておくこと)
* H340から取り外したHDDをディスプレイ付きのPCに接続してインストール。
* インストール後、 PCでUbuntuを起動後、デバイス定義ファイルを削除
# rm /etc/udev/rules.d/70-persistent-net.rules
* ネットワークの設定
# vi /etc/network/interfaces
* H340にHDDを接続して電源投入
* ssh でログインできれば終了

* 電源ボタンでshutdownするように、ACPIデーモンのインストール
# apt-get install acpid

* 温度管理が出来るように、lm-sensors とモジュールのインストールと設定
# apt-get install lm-sensors
# vi /etc/modules (追加)
coretemp
dme1737

* Led制御のモジュールのインストール
http://www.mediasmartserver.net/forums/viewtopic.php?t=7720
Download leds-h340-0.2.tar.gz
# insmod leds_h340.ko

# parted /dev/sda
GNU Parted 2.3
/dev/sda を使用
GNU Parted へようこそ! コマンド一覧を見るには 'help' と入力してください。
(parted) p                                                                
モデル: ATA ST32000542AS (scsi)
ディスク /dev/sda: 2000GB
セクタサイズ (論理/物理): 512B/512B
パーティションテーブル: gpt

番号  開始    終了    サイズ  ファイルシステム  名前  フラグ
 1    1049kB  2097kB  1049kB                          bios_grub
 2    2097kB  80.0GB  80.0GB  ext4                    raid
 3    80.0GB  2000GB  1920GB                          raid

# 
# pvdisplay 
  --- Physical volume ---
  PV Name               /dev/md1
  VG Name               raidVG1
  PV Size               1.75 TiB / not usable 960.00 KiB
  Allocatable           yes 
  PE Size               4.00 MiB
  Total PE              457858
  Free PE               4348
  Allocated PE          453510
  PV UUID               FsCDQ3-TJoS-t029-Zm4z-S2lD-Wtfn-sBBkFi
   
# vgdisplay 
  --- Volume group ---
  VG Name               raidVG1
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  2
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               1.75 TiB
  PE Size               4.00 MiB
  Total PE              457858
  Alloc PE / Size       453510 / 1.73 TiB
  Free  PE / Size       4348 / 16.98 GiB
  VG UUID               sz1JgL-TiIr-KLjz-lz1F-UPn6-2OQb-Rk8xec
   
# lvdisplay 
  --- Logical volume ---
  LV Name                /dev/raidVG1/homeLV1
  VG Name                raidVG1
  LV UUID                iV8jBm-30mQ-RAq8-ZeNi-np0l-nVvW-14DVfA
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.73 TiB
  Current LE             453510
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
   
# 

# mdadm --detail /dev/md0
/dev/md0:
        Version : 0.90
  Creation Time : Tue Nov  1 08:56:12 2011
     Raid Level : raid1
     Array Size : 78124992 (74.51 GiB 80.00 GB)
  Used Dev Size : 78124992 (74.51 GiB 80.00 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Wed Nov  9 18:37:12 2011
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : c65c33f9:9b90d5a1:7555ab88:6437f9d4 (local to host qube)
         Events : 0.4173

    Number   Major   Minor   RaidDevice State
       0       8       18        0      active sync   /dev/sdb2
       1       8        2        1      active sync   /dev/sda2
# mdadm --detail /dev/md1
/dev/md1:
        Version : 0.90
  Creation Time : Tue Nov  1 10:11:22 2011
     Raid Level : raid1
     Array Size : 1875387328 (1788.51 GiB 1920.40 GB)
  Used Dev Size : 1875387328 (1788.51 GiB 1920.40 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1
    Persistence : Superblock is persistent

    Update Time : Wed Nov  9 18:37:11 2011
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 8fe58082:3ff3f4ef:7555ab88:6437f9d4 (local to host qube)
         Events : 0.569

    Number   Major   Minor   RaidDevice State
       0       8        3        0      active sync   /dev/sda3
       1       8       19        1      active sync   /dev/sdb3
# 
# sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +33.0°C  (high = +70.0°C, crit = +90.0°C)

sch5127-isa-0870
Adapter: ISA adapter
in0:          +1.79 V  (min =  +0.00 V, max =  +3.32 V)
in1:          +1.20 V  (min =  +0.00 V, max =  +2.99 V)
+3.3V:        +3.35 V  (min =  +2.97 V, max =  +3.63 V)
in3:          +1.13 V  (min =  +0.00 V, max =  +1.49 V)
in4:          +1.49 V  (min =  +0.00 V, max =  +1.49 V)
3VSB:         +3.32 V  (min =  +2.97 V, max =  +3.63 V)
Vbat:         +3.26 V  (min =  +2.70 V, max =  +3.30 V)
in7:          +1.44 V  (min =  +0.00 V, max =  +1.99 V)
fan1:         771 RPM  (min =    0 RPM)  ALARM
fan2:           0 RPM  (min =    0 RPM)
fan3:           0 RPM  (min =    0 RPM)  ALARM
temp1:        +58.6°C  (low  = -127.0°C, high = +127.0°C)
temp2:       +103.5°C  (low  = -127.0°C, high = +127.0°C)
temp3:        +37.5°C  (low  = -127.0°C, high = +127.0°C)

* Swapファイルの設定(パーティションに追加せずファイルとして追加)
# dd if=/dev/zero of=/var/swap0 bs=1024000 count=2048
# mkswap /var/swap0
# swapon /var/swap0
# vi /etc/fstab (追加)
/var/swap0 swap swap defaults 0 0