Hi all, I have some questions about raid1 superblock and bad block.
When I create raid1 with two disks, the md will write superblock to
the disk, if the location of superblock is bad, what will happens?
Just report create error or add the block to bad-block-list and
redirect superblock to another place?
another question, how many bad blocks can be added to bad-block-list,
when the bad-block-list is full, the raid will degrade?
Thand you
Wu Dong
On Tue, 6 Aug 2013 09:14:05 +0800 Dong Wu [off-list ref] wrote:
Hi all, I have some questions about raid1 superblock and bad block.
When I create raid1 with two disks, the md will write superblock to
the disk, if the location of superblock is bad, what will happens?
The drive will be removed from the array.
Just report create error or add the block to bad-block-list and
redirect superblock to another place?
No. That would be nice but it isn't implemented.
another question, how many bad blocks can be added to bad-block-list,
when the bad-block-list is full, the raid will degrade?
512 ranges of badblocks. When it is full the array will degrade.
NeilBrown
Thand you
Wu Dong
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
another question, that i'm thinking now after this email...
i never read about, but... what's the size of super block?
could it be mirrored inside the disk like a raid1 inside the device
being used? if the first image of superblock is broken try to read the
next one