(このシリーズの目次: ArchLinux インストール覚書)
続々・ArchLinux インストール覚書でインストールしたArchLinuxですが、折角RAID1構成にしたので、壊れた時のシミュレーションをしてみました。
2台あるHDDのうち片方のケーブルを引っこ抜いて、物理的に断線させてから電源を入れました。
starting version 232
Scanning for Btrfs filesystems
[ 3.795791] BTRFS error (device sda): failed to read the system array: -5
[ 3.810021] BTRFS error (device sda): open_ctree failed
mount: wrong fs type, bad option, bad superblock on /dev/sda,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
You are now being dropped into an emergency shell.
sh: can't access tty: job control turned off
[rootfs ]# pwd
/
[rootfs ]# ls /dev/sd*
/dev/sda
キーボード配列ですが、残念ながら日本語配列には出来ない模様。
[rootfs ]# loadkeys jp106
sh: loadkeys: not found
仕方が無いのでアメリカ式の英語配列で頑張りましょう。
mntディレクトリを作成して、生きてるHDDをマウント。
[rootfs ]# mkdir mnt
[rootfs ]# mount -o degraded /dev/sda /mnt
[rootfs ]# ls /mnt
@
[rootfs ]# ls -1 /mnt/@
bin
boot
dev
etc
home
lib
lib64
mnt
opt
proc
root
run
sbin
srv
sys
tmp
usr
var
とりあえず中身を見る事は出来るようです。やった
追伸:
もう片方のHDDだけをつないだ状態でも試してみました。全く同じでした。