I ended up understanding the command but if I run it manually it
doesn't work. bad_block is cleared but the --examine-badblocks stills
shows it. and after stopping/assembling the md volume the bad block
shows up again.
root@nas3:~# mdadm --stop /dev/md0
mdadm: stopped /dev/md0
root@nas3:~# mdadm --assemble /dev/md0
mdadm: failed to get exclusive lock on mapfile - continue anyway...
mdadm: /dev/md0 has been started with 16 drives.
root@nas3:~# cat /sys/block/md0/md/dev-sdq/bad_blocks
211996592 128
root@nas3:~# echo "-211996592 128" > /sys/block/md0/md/dev-sdq/bad_blocks
root@nas3:~# cat /sys/block/md0/md/dev-sdq/bad_blocks
root@nas3:~# mdadm --examine-badblocks /dev/sdq
Bad-blocks on /dev/sdq:
211996592 for 128 sectors
root@nas3:~#
so "cat /sys/block/md0/md/dev-sdq/bad_blocks" shows now bad blocks,
but the --examine-badblocks still lists it.
________________________________________________________________________________
Mensagem enviada através do email grátis AEIOU
http://www.aeiou.pt
--
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