Hi,
I've been trying to play around with mdadm and software raid, but got
some problems, I have two sata disks(80gb) which Im trying to mirror, i
did it during the installation of debian testing. And it seems like it
worked well, but then I started testing to unplug one disk at the
time(with power off), to see if the server continued its operation and
it did, after that I plugged both back in and rebooted, but now it seems
like it doesnt do mirroring at all.
server:~# mdadm --detail /dev/md0
/dev/md0:
Version : 00.90.01
Creation Time : Wed Dec 21 09:02:46 2005
Raid Level : raid1
Array Size : 78148096 (74.53 GiB 80.02 GB)
Device Size : 78148096 (74.53 GiB 80.02 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Wed Dec 21 09:49:52 2005
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
UUID : 74e3bdd3:610be6a7:43944dbc:7ccc8c9f
Events : 0.8
Number Major Minor RaidDevice State
0 0 0 - removed
1 8 17 1 active sync /dev/.static/dev/sdb1
It seems like /dev/sda1 is removed from the array, but when trying to
add it I get the following:
server:~# mdadm /dev/md0 -a /dev/sda1
mdadm: hot add failed for /dev/sda1: Invalid argument
I also tried
server:~# mdadm /dev/md0 -a /dev/sda
mdadm: hot add failed for /dev/sda: Invalid argument
my /etc/mdadm/mdadm.conf looks like:
server:/etc/mdadm# cat mdadm.conf
DEVICE partitions
ARRAY /dev/md0 level=raid1 num-devices=2
UUID=74e3bdd3:610be6a7:43944dbc:7ccc8c9f
devices=/dev/sda1,/dev/sdb1
I have added one bootsection in grub for each disk,
title Debian GNU/Linux, kernel 2.6.12-1-686
root (hd0,0)
kernel /boot/vmlinuz-2.6.12-1-686 root=/dev/sda1 ro
initrd /boot/initrd.img-2.6.12-1-686
savedefault
boot
title Debian GNU/Linux, kernel 2.6.12-1-686
root (hd1,0)
kernel /boot/vmlinuz-2.6.12-1-686 root=/dev/sdb1 ro
initrd /boot/initrd.img-2.6.12-1-686
savedefault
boot
And then added this to fstab
/dev/md0 / ext3 defaults,errors=remount-ro 0 1
Any suggestions on my next approach to this?
Thanks in advance,
Eric
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]