debian 化(13)mdadm のインストール

LS-WSGL/R1

パッケージを探す

mdadm をインストールにはどのパッケージをインストールすればよい?
apt-cache search する。
mini:~# apt-cache search mdadm
mdadm - tool to administer Linux MD arrays (software RAID)
mini:~#
こんなに簡単にはなかなか見つからない。

mdadm のインストール

mini:~# apt-get install mdadm
Reading package lists... Done
Building dependency tree... Done
Recommended packages:
  module-init-tools
The following NEW packages will be installed:
  mdadm
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 230kB of archives.
After unpacking 484kB of additional disk space will be used.
Get:1 http://ftp2.jp.debian.org etch/main mdadm 2.5.6-9 [230kB]
Fetched 230kB in 0s (439kB/s)
Preconfiguring packages ...









Package configuration
 lqqqqqqqqqqqqqqqqqqqqqqqqqqqu Configuring mdadm tqqqqqqqqqqqqqqqqqqqqqqqqqqqk
 x                                                                           x
 x If your system has its root filesystem on an MD array (RAID), it needs
 x to be started early during the boot sequence. If your root filesystem is
 x on a logical volume (LVM), which is on MD, all constituent arrays need    a
 x to be started.                                                            a
 x                                                                           a
 x If you know exactly which arrays are needed to bring up the root          a
 x filesystem, and you want to postpone starting all other arrays to a       a
 x later point in the boot sequence, enter the arrays to start here.         a
 x Alternatively, enter 'all' to simply start all available arrays.          a
 x                                                                           a
 x If you do not need or want to start any arrays for the root filesystem,   a
 x leave the answer blank (or enter 'none'). This may be the case if you     a
 x are using kernel autostart or do not need any arrays to boot.             a
 x                                                                           a
 x Please enter a space-separated list of devices, 'all', or 'none'. You
 x
 x                                  
 x                                                                           x
 mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj










Package configuration







                 lqqqqqqqqqqqu Configuring mdadm tqqqqqqqqqqqqk
                 x MD arrays needed for the root filesystem:  x
                 x                                            x
                 x all_______________________________________ x
                 x                                            x
                 x                                        x
                 x                                            x
                 mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
















Package configuration


 lqqqqqqqqqqqqqqqqqqqqqqqqqqqu Configuring mdadm tqqqqqqqqqqqqqqqqqqqqqqqqqqqk
 x                                                                           x
 x If your kernel supports it (>> 2.6.14), mdadm can periodically check the  x
 x redundancy of your MD arrays (RAIDs). This may be a resource-intensive    x
 x process, depending on your setup, but it could help prevent rare cases    x
 x of data loss. Note that this is a read-only check unless errors are       x
 x found; if errors are found, mdadm will try to correct them, which may     x
 x result in write access to the media.                                      x
 x                                                                           x
 x The default, if turned on, is to run the checks on the first Sunday of    x
 x every month at 01:06 o'clock.                                             x
 x                                                                           x
 x Should mdadm run monthly redundancy checks of the MD arrays?              x
 x                                                                           x
 x                                                                  x
 x                                                                           x
 mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj












Package configuration





  lqqqqqqqqqqqqqqqqqqqqqqqqqqu Configuring mdadm tqqqqqqqqqqqqqqqqqqqqqqqqqqk
  x                                                                         x
  x The MD (RAID) monitor daemon sends email notifications in response to   x
  x important MD events (such as a disk failure). You probably want to      x
  x enable it.                                                              x
  x                                                                         x
  x Do you want to start the MD monitoring daemon?                          x
  x                                                                         x
  x                                                                x
  x                                                                         x
  mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj















Package configuration





   lqqqqqqqqqqqqqqqqqqqqqqqqqu Configuring mdadm tqqqqqqqqqqqqqqqqqqqqqqqqqk
   x Please enter the email address of the user who should get the email   x
   x notification for important MD events.                                 x
   x                                                                       x
   x Recipient for email notifications:                                    x
   x                                                                       x
   x root_________________________________________________________________ x
   x                                                                       x
   x                                                                   x
   x                                                                       x
   mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj






Selecting previously deselected package mdadm.
(Reading database ... 10160 files and directories currently installed.)
Unpacking mdadm (from .../archives/mdadm_2.5.6-9_arm.deb) ...
Setting up mdadm (2.5.6-9) ...









Package configuration




 lqqqqqqqqqqqqqqqqqqqqqqqqqqqu Configuring mdadm tqqqqqqqqqqqqqqqqqqqqqqqqqqqk
 x                                                                           x
 x Once the base system has come up, mdadm can start all MD arrays (RAIDs)   x
 x specified in /etc/mdadm/mdadm.conf, which have not yet been started.      x
 x Unless you have compiled multiple device (MD) support into the kernel     x
 x and marked all partitions part of MD arrays with type 0xfd (as those and  x
 x only those will be started automatically by the kernel), this is          x
 x probably what you want.                                                   x
 x                                                                           x
 x Do you want to start MD arrays automatically?                             x
 x                                                                           x
 x                                                                  x
 x                                                                           x
 mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj




Generating mdadm.conf... done.
Starting MD monitoring service: mdadm --monitor.
Generating udev events for MD arrays...done.

mini:~#
とりあえず、全部デフォルトで答える。

LS-WSGL debian 化の残課題まとめ

1.debian がまともに動くようにする

1)起動時のエラーつぶし
(1)md0 のマウント
・ネットワークの設定
・パッケージリストのアップデート
・mdadm のインストール
2)標準ファームによる RAID 化(md0, md1, md10)
3)電源スイッチによる電源OFF実現
4)LED の点滅解除
5)パッケージのアップデート
6)swap の有効化

2.手順化、ハックキット化

1)シリアルコンソールを使わないインストール方法の検討
2)インストーラ作成


LinkStation Mini
LS-WSGL
楽天市場
Amazon
Yahoo!ショッピング
Livedoor デパート
Sofmap
TSUKUMO ネットショップ
ムラウチドットコム
ヤマダ電機WEB
パソQ


debian 化(12)パッケージリストのアップデート
ハックの記録
LinkStation/玄箱 をハックしよう

debian 化(14)md の様子を見る

Copyright (C) 2003-2008 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市