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

Re: [linux-lvm] Bad disk removal




On Apr 5, 2006, at 10:51 PM, Fredrik Tolf wrote:

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
me.

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...


pvmove will ignore errors and copy as much as it can. It will not retry failed sectors though. pvmove basically mirrors the drives, so you can use the volume while the device is being copied. When the copy is complete, pvmove breaks the mirror and leaves you with the LV remapped to the new device.

 brassow


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