Software RAID1 problems
Well since I had some trouble with raidtools giving me a Segfault when I tried to create an array, I decided to try mdadm, I can create an array and format it and mount it afterwards but after I unmount it I can't mount it again. I get an error saying unknown FS type or something like that. When I do an mdadm --detail /dev/md0 in the state it says dirty, no-error, shouldn't that be clean, no-error? How can I get that array to that state? I tried recreating that array like 5 times already and still the same thing. btw I'm running Linux 2.4.20 with glibc-2.3.1 if that changes anything.
Jean-Rene Cormier
Quoted 9 lines · On February 20, [email protected] wrote:
Well since I had some trouble with raidtools giving me a Segfault when I tried to create an array, I decided to try mdadm, I can create an array and format it and mount it afterwards but after I unmount it I can't mount it again. I get an error saying unknown FS type or something like that. When I do an mdadm --detail
/dev/md0in the state it says dirty, no-error, shouldn't that be clean, no-error? How can I get that array to that state? I tried recreating that array like 5 times already and still the same thing. btw I'm running Linux 2.4.20 with glibc-2.3.1 if that changes anything.
It is always dirty when assembled and writable. This is normal.
If you switch to read-only, it should should clean.
If you stop the array and use --examine on the devices, they should show clean.
I cannot explain the mounting problem. Maybe if you give more specifics....
NeilBrown
----- Original Message -----
From: "Neil Brown" <[email protected]>
To: "Jean-Rene Cormier" <[email protected]>
Cc: <[email protected]>
Sent: Thursday, February 20, 2003 8:11 PM
Subject: Re: Software RAID1 problems
Quoted 11 lines · On February 20, [email protected] wrote:
Quoted 9 lines
Well since I had some trouble with raidtools giving me a Segfault when I tried to create an array, I decided to try mdadm, I can create an array and format it and mount it afterwards but after I unmount it I can't mount it again. I get an error saying unknown FS type or something like that. When I do an mdadm --detail
/dev/md0in the state it says dirty, no-error, shouldn't that be clean, no-error? How can I get that array to that state? I tried recreating that array like 5 times already and still the same thing. btw I'm running Linux 2.4.20 with glibc-2.3.1 if that changes anything.
Quoted 8 lines
It is always dirty when assembled and writable. This is normal.
If you switch to read-only, it should should clean.
If you stop the array and use --examine on the devices, they should show clean.I cannot explain the mounting problem. Maybe if you give more specifics....
Well what I did was:
mdadm -Cv -l2 -n2 /dev/hde1 /dev/hdg1 /dev/md0
mke2fs -j /dev/md0
mount /dev/md0 /home
then I unmounted it and when I tried to mount it again right after unmounting it I got the Wrong FS type error and I get a bunch of error message on the console.
Jean-Rene Cormier
Quoted 6 lines · On Thursday February 20, [email protected] wrote:
Quoted 3 lines
I cannot explain the mounting problem. Maybe if you give more specifics....
Well what I did was:
Quoted 7 lines
mdadm -Cv -l2 -n2
/dev/hde1/dev/hdg1/dev/md0
mke2fs -j/dev/md0
mount/dev/md0/homethen I unmounted it and when I tried to mount it again right after unmounting it I got the Wrong FS type error and I get a bunch of error message on the console.
If that is really what you did, no wonder it didn't work. The md device must be listed first, not last.
However if it is a typo, and you really listed /dev/md0 first, it is strange. Maybe if you could include the 'bunch of error messages' -
dmesg > /tmp/afile
should get them for you.
NeilBrown
----- Original Message -----
From: "Neil Brown" <[email protected]>
To: "Jean-Rene Cormier" <[email protected]>
Cc: <[email protected]>
Sent: Sunday, February 23, 2003 6:40 PM
Subject: Re: Software RAID1 problems
Quoted 15 lines · On Thursday February 20, [email protected] wrote:
Quoted 6 lines
Quoted 3 lines
I cannot explain the mounting problem. Maybe if you give more specifics....
Well what I did was:
Quoted 7 lines
mdadm -Cv -l2 -n2
/dev/hde1/dev/hdg1/dev/md0
mke2fs -j/dev/md0
mount/dev/md0/homethen I unmounted it and when I tried to mount it again right after unmounting it I got the Wrong FS type error and I get a bunch of error message on the console.
Quoted 7 lines
If that is really what you did, no wonder it didn't work. The md device must be listed first, not last.
However if it is a typo, and you really listed
/dev/md0first, it is strange. Maybe if you could include the 'bunch of error messages' -
dmesg >/tmp/afile
should get them for you.
Yes that was a typo sorry. I did reformat /dev/md0 and a when it started formating it gave me those errors again. I did a little searching and the problem is not in the raid array, but I'm still not sure what is causing the problem. The error was:
hde: status error: status=0x58 { DriveReady SeekComplete DataRequest }
hde: drive not ready for command
hde: status timeout: status=0xf0 { Busy }
hde: drive not ready for command
ide2: reset: success
I get a bunch of those. I removed the drive and I reformated the array and it works fine but I guess that if I put that drive back in it'll start doing it again. Could it be a bad drive or something? If it is what's the use of having a RAID-1 array if it corrupts your file system when a drive is bad?
Jean-Rene Cormier
Quoted 10 lines · Jean-Rene Cormier
Yes that was a typo sorry. I did reformat
/dev/md0and a when it started formating it gave me those errors again. I did a little searching and the problem is not in the raid array, but I'm still not sure what is causing the problem. The error was:hde: status error: status=0x58 { DriveReady SeekComplete DataRequest }
hde: drive not ready for command
hde: status timeout: status=0xf0 { Busy }
hde: drive not ready for command
ide2: reset: success
make sure you have the same speed disks on the same ide cable
- best to use only one ide drive per cable
- do NOT mix ata-33 w/ ata-66 w/ ata-100 w/ ata-133 on the same cable
use better and SHORTER ide cables ?? ( should be 80 conductor )
make sure you do NOT have kinks in the ide cable ( keep it straight )
make sure your kernel has the ide chipset support enabled for your motherboard
-- otherwise... you have a failing or dead disk drive...
-- if its an ibm deskstar... get rid of it...
c ya
alvin
----- Original Message -----
From: "Alvin Oga" <[email protected]>
To: "Jean-Rene Cormier" <[email protected]>
Cc: <[email protected]>
Sent: Saturday, March 01, 2003 9:08 PM
Subject: Re: Software RAID1 problems
Quoted 5 lines · Jean-Rene Cormier
Quoted 3 lines
Yes that was a typo sorry. I did reformat
/dev/md0and a when it started formating it gave me those errors again. I did a little searching and
the
Quoted 1 line
Quoted 1 line
problem is not in the raid array, but I'm still not sure what is causing
the
Quoted 8 lines
Quoted 7 lines
problem. The error was:
hde: status error: status=0x58 { DriveReady SeekComplete DataRequest }
hde: drive not ready for command
hde: status timeout: status=0xf0 { Busy }
hde: drive not ready for command
ide2: reset: success
Quoted 4 lines
make sure you have the same speed disks on the same ide cable
- best to use only one ide drive per cable
- do NOT mix ata-33 w/ ata-66 w/ ata-100 w/ ata-133 on the same cable
Both drives are new 60Gb Maxtor DiamondMax Plus 9 on separate IDE channels on a Promise Ultra TX2 IDE card
Quoted 1 line
use better and SHORTER ide cables ?? ( should be 80 conductor )
I did switch the cable on the drives to see if it would make a difference and it's still the same drive who gave me those errors so I guess it's not the cables.
Quoted 4 lines
make sure you do NOT have kinks in the ide cable ( keep it straight )
make sure your kernel has the ide chipset support enabled for your motherboard
I noticed yesterday that my kernel didn't have IDE support for the Promise Ultra compiled in so I recompiled the kernel with it. I'll put the drive back in the computer and try it again to see if it works better
Quoted 2 lines
-- otherwise... you have a failing or dead disk drive... -- if its an ibm deskstar... get rid of it...
I'll try this drive in another computer to see what it'll say.
Thanks
Jean-Rene Cormier