Is it possible to use bad_blocks to simulate write_error and activate hot-replace?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I want to test hot-replace when a write error is recorded in a
bad-block log. Here is my steps:

1. create raid5 with 3 disks (sdb sdc sdd), and 1 spare (sde)

2. echo 2097152 512 > /sys/block/md192/md/dev-sdb/bad_blocks  /* set 1
badblock from 1G of sdb*/

3. dd if=/dev/zero of=/dev/md192 bs=1M count=1024 seek=2048 /* from 2G of md */
    dd if=/dev/zero of=/dev/md192 bs=1M count=1024 seek=2000 /* near to 2G */


No write error happen, sdb is not marked as want_replacement and not
start the rebuild. Anyone help ?
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux