はせ@SKIER's blog

自作パソコン&電子工作、車とスキーが好きー

2007/2008 Part 1 尾瀬岩鞍

2008-01-21 00:56:24 | スキーレポート

2008.1.10 木

 20:45 自宅出発

・高速道路、国道120号/401号~路面は凍結なし。

 23:30 第一駐車場着、「岩鞍ハウス」チェックイン

・板とストックを入り口前にある離れの乾燥室になっているプレハブ小屋に入れさせてもらいました。小屋入り口は夜間施錠されているようです。板とストックの収納場所が部屋毎に決まっていて、部屋の鍵についているもうひとつの鍵でロック解除できるようになっています。

2008.1.11 金

 08:00 宿の朝食

・パン食でした。パンはおかわりできるようです。

 09:00 会社のレク割引で、2000円で1日券取得。

 09:30 滑走開始

天候:晴れ

雪質状況:午前良好、午後気温上昇により緩み気味

・午前中は、初滑りのため緩斜面のロマンスコースでフォームチェックをしながら繰り返し滑走。

・午後は、体調不良のためコブを避けて、中斜面のエキスパート下部をマラソン程度に繰り返し滑走。

 14:30 滑走終了(早っ!)

 15:00 一番風呂につかる。そのあと寝る。

 18:30 宿の夕食

・和食でした。うまいですが、例えるとわかる人が少ないですが、志賀高原・NTT望雲閣(現在廃止)の夕食にメニューやボリュームが似ています。

 21:00 就寝

・寝る前の部屋の様子です。

2008.1.12 土

 07:30 宿の朝食

・和食でした。1日毎にパン食とのローテーションなのでしょうか。

 10:00 チェックアウト、帰宅

・雨交じりの雪だったので、滑走をあきらめて帰宅しました。

・スキー場を下ったところから完全に雨でした。

・路面は凍結なしだったと思うのですが、椎坂峠下りカーブでABSが作動しました。

 14:00 自宅着

 


IOデータ HDL-GX160R※ のHDD(160GB)の500GBへの換装(続き)

2008-01-19 15:07:05 | 作業ログ

<リブート後の確認>

landisk.VoIP-ADAPTOR login: hase
Password:
warning: cannot change to home directory
Linux landisk 2.6.12.6-arm1 #1 Mon Mar 5 10:28:02 JST 2007 armv5tejl GNU/Linux

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

hase@landisk:/$ dmesg
Linux version 2.6.12.6-arm1 (root@devsrv) (gcc version 3.4.4 20041218 (prerelease) (Debian 3.4.3-1)) #1 Mon Mar 5 10:28:02 JST 2007
CPU: ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ)
CPU0: D VIVT write-back cache
CPU0: I cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
CPU0: D cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
Machine: MV-88fxx81
Using UBoot passing parameters structure
Sys Clk = 200000000, Tclk = 166666667
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 32768
DMA zone: 32768 pages, LIFO batch:15
Normal zone: 0 pages, LIFO batch:1
HighMem zone: 0 pages, LIFO batch:1
Built 1 zonelists
Kernel command line: root=/dev/md2 initrd=0x2000040,16M rw console=ttyS0,115200
PID hash table entries: 1024 (order: 10, 16384 bytes)
mvTclk = 166666667, timer_reload = 1666667
Console: colour dummy device 80x30
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 128MB 0MB 0MB 0MB = 128MB total
Memory: 109824KB available (2779K code, 479K data, 104K init)
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 16384K
NET: Registered protocol family 16

Marvell Development Board (LSP Version 1.7.8_NAS)-- I-O DATA HDL-GXR NAS

Detected Tclk 166666667 and SysClk 200000000
Marvell USB EHCI Host controller #0: c3003a40
Marvell USB EHCI Host controller #1: c30038c0
pexBarOverlapDetect: winNum 2 overlap current 0
mvPexInit:Warning :Bar 2 size is illigal
it will be disabled
please check Pex and CPU windows configuration
PCI: bus0: Fast back to back transfers enabled
PCI: bus1: Fast back to back transfers enabled
Marvell TWSI i2c bus controller
hdlgl_poweroff_init: poweroff function registered.
LED driver succesfully initialized.
Button driver succesfully initialized.
Buzzer driver succesfully initialized.
Start button interrupt.
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
use IDMA acceleration in copy to/from user buffers. used channels 2 and 3
Done.
Fast Floating Point Emulator V0.9 (c) Peter Teichmann.
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
SGI XFS with ACLs, realtime, no debug enabled
Initializing Cryptographic API
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
ttyS0 at MMIO 0x0 (irq = 3) is a 16550A
io scheduler noop registered
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
Marvell Gigabit Ethernet Driver 'egiga':
o Ethernet descriptors in DRAM
o DRAM SW cache-coherency
o Checksum offload enabled
o Loading network interface 'eth0'
ipddp.c:v0.01 8/28/97 Bradford W. Johnson <johns393@maroon.tc.umn.edu>
ipddp0: Appletalk-IP Encap. mode by Bradford W. Johnson <johns393@maroon.tc.umn.edu>
Intergrated Sata device found
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
Vendor: Hitachi Model: HDT725050VLA360 Rev: V56O
Type: Direct-Access ANSI SCSI revision: 03
SCSI device sda: 976773168 512-byte hdwr sectors (500108 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 976773168 512-byte hdwr sectors (500108 MB)
SCSI device sda: drive cache: write back
/dev/scsi/host0/bus0/target0/lun0: p1 p2 p3 p4 < p5 p6 >
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0
physmap flash device: 80000 at fff80000
phys_mapped_flash: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
phys_mapped_flash: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
RedBoot partition parsing not available
ehci_platform ehci_platform.4523: EHCI Host Controller
ehci_platform ehci_platform.4523: new USB bus registered, assigned bus number 1
ehci_platform ehci_platform.4523: irq 17, io mem 0x00000000
ehci_platform ehci_platform.4523: park 0
ehci_platform ehci_platform.4523: USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ehci_platform ehci_platform.16781: EHCI Host Controller
ehci_platform ehci_platform.16781: new USB bus registered, assigned bus number 2
ehci_platform ehci_platform.16781: irq 12, io mem 0x00000000
ehci_platform ehci_platform.16781: park 0
ehci_platform ehci_platform.16781: USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.01:USB HID core driver
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
I2C: RS5C372A RTC driver successfully loaded
md: linear personality registered as nr 1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: raid5 personality registered as nr 4
raid5: measuring checksumming speed
arm4regs : 309.200 MB/sec
8regs : 269.200 MB/sec
32regs : 274.800 MB/sec
raid5: using function: arm4regs (309.200 MB/sec)
md: md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27
NET: Registered protocol family 2
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 5
devfs_mk_dev: could not append to parent for md/0
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
devfs_mk_dev: could not append to parent for md/1
md: md1 stopped.
md: bind<sda1>
raid1: raid set md1 active with 1 out of 2 mirrors
RAID Softlock Extension
Copyright 2006 by I-O DATA DEVICE, INC.
This patch is released under GPLv2.
devfs_mk_dev: could not append to parent for md/2
md: md2 stopped.
md: bind<sda2>
raid1: raid set md2 active with 1 out of 2 mirrors
RAID Softlock Extension
Copyright 2006 by I-O DATA DEVICE, INC.
This patch is released under GPLv2.
devfs_mk_dev: could not append to parent for md/5
md: md5 stopped.
md: bind<sda5>
raid1: raid set md5 active with 1 out of 2 mirrors
RAID Softlock Extension
Copyright 2006 by I-O DATA DEVICE, INC.
This patch is released under GPLv2.
devfs_mk_dev: could not append to parent for md/6
md: md6 stopped.
md: bind<sda6>
raid1: raid set md6 active with 1 out of 2 mirrors
RAID Softlock Extension
Copyright 2006 by I-O DATA DEVICE, INC.
This patch is released under GPLv2.
kjournald starting. Commit interval 5 seconds
EXT3 FS on md5, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
EXT2-fs warning (device md1): ext2_fill_super: mounting ext3 filesystem as ext2

EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
Uniform CD-ROM driver unloaded
kjournald starting. Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS on md2, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem).
Trying to move old root to /initrd ... okay
Freeing init memory: 104K
Adding 530136k swap on /dev/sda3. Priority:-1 extents:1
EXT3 FS on md2, internal journal
EXT2-fs warning (device md1): ext2_fill_super: mounting ext3 filesystem as ext2

EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
kjournald starting. Commit interval 5 seconds
EXT3 FS on md5, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on md6, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
restart_autoneg:2731
eth0: link down
PHY 0x00: 1140 7949 0141 0cc2 01e1 0000 0006 2001
PHY 0x08: 0000 0300 0000 0000 0000 0000 0000 3000
PHY 0x10: 0068 9140 0000 1c40 0ce2 0000 0000 0000
PHY 0x18: 4111 0000 000a 808b 0000 0000 0000 0000
eth0: link up<5>, full duplex<5>, speed 1 Gbps<5>
PHY 0x00: 1140 796d 0141 0cc2 01e1 cde1 000f 2001
PHY 0x08: 4195 0300 3800 0000 0000 0000 0000 3000
PHY 0x10: 0068 bc40 0000 1c40 0ce2 0000 0000 0000
PHY 0x18: 4111 0000 000a 808b 0000 0000 0000 0000
EXT3 FS on md2, internal journal
EXT3 FS on md2, internal journal
EXT3 FS on md2, internal journal
EXT3 FS on md2, internal journal
EXT3 FS on md2, internal journal
EXT3 FS on md2, internal journal
EXT3 FS on md2, internal journal
EXT3 FS on md2, internal journal
EXT3 FS on md2, internal journal
EXT3 FS on md2, internal journal
EXT3 FS on md2, internal journal
EXT3 FS on md2, internal journal
EXT3 FS on md2, internal journal
EXT3 FS on md2, internal journal
EXT3 FS on md2, internal journal
EXT3 FS on md2, internal journal
EXT3 FS on md2, internal journal


hase@landisk:/$ cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid5]
md6 : active raid1 sda6[1]
486255296 blocks [2/1] [_U]

md5 : active raid1 sda5[1]
208704 blocks [2/1] [_U]

md2 : active raid1 sda2[1]
409536 blocks [2/1] [_U]

md1 : active raid1 sda1[1]
208768 blocks [2/1] [_U]

unused devices: <none>
hase@landisk:/$

6.作業完了後気になること

(1)換装前にブート完了後「ピッ」といった動作完了音が、なぜだか鳴らなくなりました。

とくにそれ以外はいまのところまったく問題なしです。

 


IOデータ HDL-GX160R※ のHDD(160GB)の500GBへの換装

2008-01-19 08:58:27 | 作業ログ

※ギガビットLAN対応 160GB 外付けハードディスク

1.使用した機器

(1)LANDISK IOデータ HDL-GX160R
  ムラウチドットコムで税送料込みで10,348円にて購入。(2007/12/14)
(2)500GB SATA 3.5HDD
  HITACHI 
HDT725050VLA360
  クレバリー店頭でだいぶ前に購入。(購入時期忘れた)
(3)eSATA HDDケース
  Century 裸族の一戸建て 
CRIS35EU2。(最近購入)

2.外付けeSATA HDD(500GB)へのミラーリング

ここでは、HDL-GX160Rのミラーリング機能を使用した。
(1)eSATA HDDケース(500GB内蔵)をHDL-GX160RにeSATA接続した後PowerOnで起動して、
  http://landisk/ でWeb接続し、「管理者用設定ページを開く」から
  「詳細メニュー」→「ディスク」→「ミラーリング」で
  「内蔵HDDからeSATA HDD1へミラーリング開始」ボタンによりミラーリング実施
(2)ミラーリング完了後、同メニューにて「ミラーディスクの保管」ボタンを実施して
  自動シャットダウン後、外付けeSATA HDDを切り離す。

HDL-GX160RのHDDを取り出し、500GBのHDDといっしょにパソコンに接続し、
knoppixのCDかDVDを使ってブートして、たとえば、HDL-GX160Rから取り出した原本HDDが
/dev/sdaと認識されている場合、
dd if=/dev/sda of=/dev/sdb bs=1024k
(HDL-GX160Rから取り出した原本HDDが/dev/sdbで認識の場合は元を消してしまうので注意!)
でもよい。

3.500GBのHDDに換装する

(1)換装

   取り出したものは原本HDDとして大事に保管。

(2)LANDISKが無事ブートすることを確認する。

4.telnetを使用できるようにして、自分用のユーザを追加

(1)以下HPを参考に作業を実施した。ほぼ、そのまんま実行してうまくいきました。

http://www.tuins.ac.jp/~takao/mt/archives/2007_01/19_0026.html
※自分のはファームのバージョンが1.12だったので、1.12→1.13にアップするようなパッケージに化かしました。
※メモ:書き込み可で再マウント:"mount -o remount -w /" はよく使用する。

(2)先のHP内の下のほうに記述がある

「rc.localファイルのHDLモデル名HDL-GXRでhtmextが設定されていないとブラウザからアクセスできなくなる。」の件について実施。

5.ディスクの再構成

ミラーリング先の500GB HDDは160GB用にパーティションが切られているいるため、500GB用に再作成します。

<作成した自分のユーザでログインして、スーパーユーザになる>

landisk.VoIP-ADAPTOR login: hase
Password:
warning: cannot change to home directory
Linux landisk 2.6.12.6-arm1 #1 Mon Mar 5 10:28:02 JST 2007 armv5tejl GNU/Linux

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
hase@landisk:/$ su -
Password:

<sambaの停止>

landisk:~# cd /etc
landisk:/etc# cd init.d
landisk:/etc/init.d# ./samba stop
Stopping Samba daemons: nmbd smbd.

<再作成するファイルシステムデータのバックアップ>

landisk:/etc/init.d# df -k
Filesystem 1K
rootfs 396608 278260 114253 71% /
/dev/root 396608 278260 114253 71% /
/dev/shm 63264 4092 59172 7% /mnt/ram0
tmpfs 63264 0 63264 0% /dev/shm
/dev/md1 202208 21784 178340 11% /boot
/dev/md5 202175 5244 194844 3% /mnt/hda5
/dev/md6 152451708 32844 150870040 1% /mnt/hda6
landisk:/etc/init.d# cd /mnt/hda5
landisk:/mnt/hda5# tar czvf /tmp/hda5.tgz .
landisk:/mnt/hda5# cd /mnt/hda6
landisk:/mnt/hda6# tar czvf /tmp/hda6.tgz .

<念のため自分のFTPサーバにアップ※/tmpはRAMDISKのため>

landisk:/tmp# ftp www6.plala.or.jp
Connected to www6.plala.or.jp.
220 ProFTPD 1.2.6 Server (WWW6 Server) [www6.plala.or.jp]
Name (www6.plala.or.jp:root): hasep
331 Password required for hasep.
Password:
230 User hasep logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> put hda5.tgz
local: hda5.tgz remote: hda5.tgz
200 PORT command successful
150 Opening BINARY mode data connection for hda5.tgz
226 Transfer complete.
479848 bytes sent in 0.90 secs (521.3 kB/s)
ftp> put hda6.tgz
local: hda6.tgz remote: hda6.tgz
200 PORT command successful
150 Opening BINARY mode data connection for hda6.tgz
226 Transfer complete.
230 bytes sent in 0.00 secs (1688.8 kB/s)
ftp> dir
200 PORT command successful
150 Opening ASCII mode data connection for file list
-rw-r--r-- 1 hasep www6_users 479848 Dec 30 16:07 hda5.tgz
-rw-r--r-- 1 hasep www6_users 230 Dec 30 16:08 hda6.tgz
226 Transfer complete.
ftp> quit
221 Goodbye.

<ファイルシステムのアンマウント>

landisk:/mnt/hda6# cd /tmp
landisk:/tmp# umount /mnt/hda6
landisk:/tmp# umount /mnt/hda5
landisk:/tmp# df -k
Filesystem 1K
rootfs 396608 278260 114253 71% /
/dev/root 396608 278260 114253 71% /
/dev/shm 63264 4576 58688 8% /mnt/ram0
tmpfs 63264 0 63264 0% /dev/shm
/dev/md1 202208 21784 178340 11% /boot

<パーティションの再作成(拡張)>

sda5は拡張パーティションにあるのでいったん消去する必要がある。
拡張パーティションを拡張して作成後、同じサイズで再作成する。
sda6は可能な限り拡張するように拡張パーティションサイズを作成する。

landisk:/tmp# fdisk /dev/sda

The number of cylinders for this disk is set to 60801.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 2 27 208845 83 Linux
/dev/sda2 28 78 409657+ 83 Linux
/dev/sda3 79 144 530145 82 Linux swap / Solaris
/dev/sda4 145 19452 155091510 5 Extended
/dev/sda5 145 170 208844+ 83 Linux
/dev/sda6 171 19452 154882664+ 83 Linux

Command (m for help): d
Partition number (1-6): 6

Command (m for help): d
Partition number (1-5): 5

Command (m for help): d
Partition number (1-5): 4

Command (m for help): p

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 2 27 208845 83 Linux
/dev/sda2 28 78 409657+ 83 Linux
/dev/sda3 79 144 530145 82 Linux swap / Solaris

Command (m for help): n
Command action
e extended
p primary partition (1-4)
e
Selected partition 4
First cylinder (1-60801, default 1): 145
Last cylinder or +size or +sizeM or +sizeK (145-60801, default 60801): 60706

Command (m for help): p

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 2 27 208845 83 Linux
/dev/sda2 28 78 409657+ 83 Linux
/dev/sda3 79 144 530145 82 Linux swap / Solaris
/dev/sda4 145 60706 486464265 5 Extended

Command (m for help): n
First cylinder (145-60706, default 145):
Using default value 145
Last cylinder or +size or +sizeM or +sizeK (145-60706, default 60706): 170

Command (m for help): p

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 2 27 208845 83 Linux
/dev/sda2 28 78 409657+ 83 Linux
/dev/sda3 79 144 530145 82 Linux swap / Solaris
/dev/sda4 145 60706 486464265 5 Extended
/dev/sda5 145 170 208813+ 83 Linux

Command (m for help): n
First cylinder (171-60706, default 171): 171
Last cylinder or +size or +sizeM or +sizeK (171-60706, default 60706): 60706

Command (m for help): p

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 2 27 208845 83 Linux
/dev/sda2 28 78 409657+ 83 Linux
/dev/sda3 79 144 530145 82 Linux swap / Solaris
/dev/sda4 145 60706 486464265 5 Extended
/dev/sda5 145 170 208813+ 83 Linux
/dev/sda6 171 60706 486255388+ 83 Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16:
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.

--以下ログが残っていないのでコマンドのみ記述--

<RAIDの停止(本当はアンマウント直後に実施)>

mdadm --stop /dev/md5
mdadm --stop /dev/md6

<ext3でフォーマット>

mke2fs -t ext3 /dev/sda5
mke2fs -t ext3 /dev/sda6

<RAIDの作成>

mdadm --create /dev/md5 --level=raid1 --raid-devices=2 missing /dev/sda5
mdadm --create /dev/md6 --level=raid1 --raid-devices=2 missing /dev/sda6

cat /proc/mdstat
で追加されたことを確認

<RAIDのフォーマット>

mke2fs -j -m1 /dev/md5
mke2fs -j -m1 /dev/md6

<マウント実施>

mount /mnt/hda5
mount /mnt/hda6

<バックアップから戻す>

cd /mnt/hda5
tar xzvf /tmp/hda5.tgz
cd /mnt/hda5
tar xzvf /tmp/hda6.tgz

<リブート>

shutdown -r now