invalud argument when replacing disk of raid 5 set
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
Quoted 4 lines · Dan Egli
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/hdbshows bad areas, badblocks/dev/md0does not), which causes it to randomly get kicked out of the set. I got
Quoted 8 lines
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/hdb1which meeds the same specs as/dev/hdc1and/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
Signature · 1 line
Juri Haberland <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Juri Haberland wrote:
| Dan Egli <[email protected]> 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-----
Quoted 8 lines · Dan Egli
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.
Quoted 8 lines
# raidstart /dev/md0 raidstart: Invalid Argumentif I let the system auto-start it during boot, it looks like this:
Starting Raid Devices:
/dev/md0
raidstart: Invalid Argument/dev/md0is 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
Signature · 1 line
Juri Haberland <[email protected]>