error during raid config
the command worked for other md(1 - 4) and the cat /proc/mdstat looks like the following:
# cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md4 : active raid1 hdb7[0]
9687040 blocks [2/1] [U_]md3 : active raid1 hdb6[0]
9679040 blocks [2/1] [U_]
md2 : active raid1 hdb5[0]
9679040 blocks [2/1] [U_]
md1 : active raid1 hdb3[0]
2996032 blocks [2/1] [U_]
md0 : inactive
unused devices: <none>
Now when I use mkraid for md0 I get the following error:
# mkraid --really-force /dev/md0 DESTROYING the contents of /dev/md0 in 5 seconds, Ctrl-C if unsure! handling MD device /dev/md0 analyzing super-block disk 0: /dev/hdb1, 489951kB, raid superblock at 489856kB disk 1: /dev/hda1, failed mkraid: aborted, see the syslog and /proc/mdstat for potential clues.
the syslog shows this:
---Jan 16 14:16:17 adobea kernel: md: array md0 already exists!
I alos tried mounting it and I get the following error:
~# mount -t ext2 /dev/md0 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/md0,
or too many mounted file systems
(could this be the IDE device where you in fact use ide-scsi so that sr0 or sda or so is needed?)
Please help.. I am using procedure at: http://tldp.org/HOWTO/Boot+Root+Raid+LILO-4.html
Thanks
Gordon.
Quoted 21 lines · On Fri, Jan 16, 2004 at 06:18:07PM +0000, [email protected] wrote:
Quoted 10 lines
Hello,
I get the following error when I tried to setup my raid:
# mkraid /dev/md0 handling MD device /dev/md0 analyzing super-block disk 0: /dev/hda1, 489951kB, raid superblock at 489856kB /dev/hda1 is mounted mkraid: aborted, see the syslog and /proc/mdstat for potential clues.I use mdadm, not mkraid, but it appears the problem is right there:
"/dev/hda1is mounted". Probably if you have a mounted filesystem on/dev/hda1, you cannot add it to the raid array. Once you've created the raid array you can mount/dev/md0instead of/dev/hda1.-Steve
md1-4 all have 1 disk missing! Maybe that is a clue! Is your disk hda bad?
Most people say mkraid is bad. You should use mdadm. I agree.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of [email protected]
Sent: Friday, January 16, 2004 3:19 PM
To: Steven Ihde
Cc: [email protected]
Subject: Re: error during raid config
the command worked for other md(1 - 4) and the cat /proc/mdstat looks like the following:
# cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md4 : active raid1 hdb7[0]
9687040 blocks [2/1] [U_]md3 : active raid1 hdb6[0]
9679040 blocks [2/1] [U_]
md2 : active raid1 hdb5[0]
9679040 blocks [2/1] [U_]
md1 : active raid1 hdb3[0]
2996032 blocks [2/1] [U_]
md0 : inactive
unused devices: <none>
Now when I use mkraid for md0 I get the following error:
# mkraid --really-force /dev/md0 DESTROYING the contents of /dev/md0 in 5 seconds, Ctrl-C if unsure! handling MD device /dev/md0 analyzing super-block disk 0: /dev/hdb1, 489951kB, raid superblock at 489856kB disk 1: /dev/hda1, failed mkraid: aborted, see the syslog and /proc/mdstat for potential clues.
the syslog shows this:
---Jan 16 14:16:17 adobea kernel: md: array md0 already exists!
I alos tried mounting it and I get the following error:
~# mount -t ext2 /dev/md0 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/md0,
or too many mounted file systems
(could this be the IDE device where you in fact use ide-scsi so that sr0 or sda or so is needed?)
Please help.. I am using procedure at:
http://tldp.org/HOWTO/Boot+Root+Raid+LILO-4.html
Thanks
Gordon.
Quoted 12 lines · On Fri, Jan 16, 2004 at 06:18:07PM +0000, [email protected] wrote:
Quoted 10 lines
Hello,
I get the following error when I tried to setup my raid:
# mkraid /dev/md0 handling MD device /dev/md0 analyzing super-block disk 0: /dev/hda1, 489951kB, raid superblock at 489856kB /dev/hda1 is mounted mkraid: aborted, see the syslog and /proc/mdstat for potential clues.
Quoted 9 lines
I use mdadm, not mkraid, but it appears the problem is right there:
"/dev/hda1is mounted". Probably if you have a mounted filesystem on/dev/hda1, you cannot add it to the raid array. Once you've created the raid array you can mount/dev/md0instead of/dev/hda1.-Steve
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html