* invalud argument when replacing disk of raid 5 set
@ 2003-11-08 2:17 Dan Egli
2003-11-08 16:24 ` Juri Haberland
0 siblings, 1 reply; 4+ messages in thread
From: Dan Egli @ 2003-11-08 2:17 UTC (permalink / raw)
To: linux-raid
Ok, this may be a smple question, but hear me out. I've looked and
cannot find the answer anywhere.
I have a machine with a 3 disk raid 5 set. One of the disks has
developed bad sectors in the parity block (I'm assuming it is in the
block because badblocks /dev/hdb shows bad areas, badblocks /dev/md0
does not), which causes it to randomly get kicked out of the set. I got
a drive to replace it with today. It's not the exact same model, but
it's the same physical dimentions (C/H/S & capasity are identical). It's
just a little faster than the others, with a little more cache on the
drive. But when I repalce the bad drive with the good drive, I get
invalid arguments when trying to bring up the array. I don't get it.
There is a perfectly valid linux partition on the drive, /dev/hdb1 which
meeds the same specs as /dev/hdc1 and /dev/hdd1, but replacing hdb with
a drive showing no bad blocks won't work.
Help?
The existing drives are IBM DTLA-305020 drives, and my replacemt is a
DTLA-307020. Both show their physical dimentions as:
Capasity: 20.5GB
CHS: 16383/16/63
--- Dan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: invalud argument when replacing disk of raid 5 set
2003-11-08 2:17 invalud argument when replacing disk of raid 5 set Dan Egli
@ 2003-11-08 16:24 ` Juri Haberland
2003-11-08 16:39 ` Dan Egli
0 siblings, 1 reply; 4+ messages in thread
From: Juri Haberland @ 2003-11-08 16:24 UTC (permalink / raw)
To: linux-raid
Dan Egli <dan@eglifamily.dnsalias.net> wrote:
> I have a machine with a 3 disk raid 5 set. One of the disks has
> developed bad sectors in the parity block (I'm assuming it is in the
> block because badblocks /dev/hdb shows bad areas, badblocks /dev/md0
> does not), which causes it to randomly get kicked out of the set. I got
> a drive to replace it with today. It's not the exact same model, but
> it's the same physical dimentions (C/H/S & capasity are identical). It's
> just a little faster than the others, with a little more cache on the
> drive. But when I repalce the bad drive with the good drive, I get
> invalid arguments when trying to bring up the array. I don't get it.
> There is a perfectly valid linux partition on the drive, /dev/hdb1 which
> meeds the same specs as /dev/hdc1 and /dev/hdd1, but replacing hdb with
> a drive showing no bad blocks won't work.
What commands do you exactly type and what error messages do you
exactly get?
Juri
--
Juri Haberland <juri@koschikode.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: invalud argument when replacing disk of raid 5 set
2003-11-08 16:24 ` Juri Haberland
@ 2003-11-08 16:39 ` Dan Egli
2003-11-08 17:23 ` Juri Haberland
0 siblings, 1 reply; 4+ messages in thread
From: Dan Egli @ 2003-11-08 16:39 UTC (permalink / raw)
To: linux-raid
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Juri Haberland wrote:
| Dan Egli <dan@eglifamily.dnsalias.net> wrote:
|
|
|>I have a machine with a 3 disk raid 5 set. One of the disks has
|>developed bad sectors in the parity block (I'm assuming it is in the
|>block because badblocks /dev/hdb shows bad areas, badblocks /dev/md0
|>does not), which causes it to randomly get kicked out of the set. I got
|>a drive to replace it with today. It's not the exact same model, but
|>it's the same physical dimentions (C/H/S & capasity are identical). It's
|>just a little faster than the others, with a little more cache on the
|>drive. But when I repalce the bad drive with the good drive, I get
|>invalid arguments when trying to bring up the array. I don't get it.
|>There is a perfectly valid linux partition on the drive, /dev/hdb1 which
|>meeds the same specs as /dev/hdc1 and /dev/hdd1, but replacing hdb with
|>a drive showing no bad blocks won't work.
|
|
| What commands do you exactly type and what error messages do you
| exactly get?
|
| Juri
|
This is from memory because I"m at home and the machine is at the
office. But it should be close enough.
# raidstart /dev/md0
raidstart: Invalid Argument
if I let the system auto-start it during boot, it looks like this:
Starting Raid Devices: /dev/md0
raidstart: Invalid Argument
/dev/md0 is not a RAID0 or LINEAR set
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD4DBQE/rRwutwT22Jak4/4RAv1QAJdyw4dR732+FuonhE9EM+VudpZKAKCSMa7/
ljORujPwHAoD6127OmNbcQ==
=qA9k
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: invalud argument when replacing disk of raid 5 set
2003-11-08 16:39 ` Dan Egli
@ 2003-11-08 17:23 ` Juri Haberland
0 siblings, 0 replies; 4+ messages in thread
From: Juri Haberland @ 2003-11-08 17:23 UTC (permalink / raw)
To: linux-raid
Dan Egli <dan@eglifamily.dnsalias.net> wrote:
> Juri Haberland wrote:
> | What commands do you exactly type and what error messages do you
> | exactly get?
> |
> This is from memory because I"m at home and the machine is at the
> office. But it should be close enough.
>
> # raidstart /dev/md0
> raidstart: Invalid Argument
>
> if I let the system auto-start it during boot, it looks like this:
>
> Starting Raid Devices: /dev/md0
> raidstart: Invalid Argument
> /dev/md0 is not a RAID0 or LINEAR set
I think you should use mdadm:
mdadm --assemble /dev/md0 /dev/hdc1 /dev/hdd1 --run
mdadm --manage /dev/md0 --add /dev/hdb1
Cheers,
Juri
--
Juri Haberland <juri@koschikode.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-11-08 17:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-08 2:17 invalud argument when replacing disk of raid 5 set Dan Egli
2003-11-08 16:24 ` Juri Haberland
2003-11-08 16:39 ` Dan Egli
2003-11-08 17:23 ` Juri Haberland
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox