[linux-lvm] Bad disk removal

Fredrik Tolf fredrik at dolda2000.com
Thu Apr 6 03:51:35 UTC 2006

On Wed, 2006-04-05 at 14:41 -0400, Barnaby Claydon wrote:
> Hey all,
> So after lots of scans and log review, turns out 1 of the 8 IDE disks in 
> my LVM is bad. (I know, IDE, yeahyeah...)

When this happened to me, I got a replacement drive as large as that
drive, and used dd to copy the PV data bit-by-bit to the new disk, and
then zeroed the sectors corresponding to the old bad sectors. It worked
fairly well, but the bad sectors were probably only file data blocks for

As far as I managed to find out, pvmove will not handle bad sectors at
all, and abort when it finds any. It would be great if anyone could
correct me on that, though...

Fredrik Tolf

More information about the linux-lvm mailing list