Koozali.org: home of the SME Server

Software Raid re-mirror failure

Mike Drummond

Software Raid re-mirror failure
« on: November 07, 2002, 02:45:38 PM »
I am attempting to repair a software mirror (SME 5.1.2) without success. (Logged in as root).  The errors arose after a power failure where I has to run fsck manually on dev/hda6 to be able to restart the server.

cat /etc/raidtab gives the following information

.......raiddev             /dev/md1
raid-level                  1
nr-raid-disks               2
chunk-size                  64k
persistent-superblock       1
#nr-spare-disks     0
    device          /dev/hda6
    raid-disk     0
    device          /dev/hdc6
    raid-disk     1.......

fstab
.....
/dev/md1                /                       ext2    usrquota,grpquota        1 1
.....

cat/proc/mdstat reports
Personalities : [raid1]
read_ahead 1024 sectors
md2 : active raid1 hdc1[1] hda1[0] 264960 blocks [2/2] [UU]
md0 : active raid1 hdc5[1] hda5[0] 15936 blocks [2/2] [UU]
md1 : active raid1 hda6[0] 19783936 blocks [2/1] [U_]
unused devices:

If I try to raidhotadd I get an error message ie
[root@LinuxServer /root]# raidhotadd /dev/hdc6 /dev/md1
/dev/hdc6: not an MD device!

I must be doing something wrong  Any ideas ?

By the way does this mean /dev/hdc6 is not mounted and may be damaged. perhaps I should be doing a fsck -f /dev/hdc6 before trying this ?  If I  try to run fsck on hdc6 it results in a warning of the damage that will occur it you try to fsck a mounted drive.  For this reason I did not proceed.

Cheers
Mike

Nathan Fowler

Re: Software Raid re-mirror failure
« Reply #1 on: November 07, 2002, 06:57:44 PM »
raidhotadd /dev/md1 /dev/hdc6

You have the partition and array transposed.

raidhotadd

Hope this helped,
Nathan

Mike Drummond

Re: Software Raid re-mirror failure
« Reply #2 on: November 09, 2002, 04:07:10 AM »
Thanks Nathan

I was following your post 05-07-02 in response to my original raid problems :-) I have noted the correct usage.  I really should get a UPS though then I would not have these problems in the first place.

Cheers
Mike