[linux-lvm] Removing PV with disk errors from VG

Heinz J . Mauelshagen mauelshagen at sistina.com
Mon Mar 11 09:35:02 UTC 2002


Kalle,

well that's a bug in 1.0.3 which will be fixed in 1.0.4.
If you wnat to try it at your own risk, check out LVM1 CVS and
try "pvmove -i" again.

1.0.4 will hopefully be released this week :)

Regards,
Heinz    -- The LVM Guy --


On Fri, Mar 08, 2002 at 04:40:19PM +0100, kalle at idlar.nu wrote:
> Hello
> 
> I have built a VG from a couple of disks and have now discovered that one 
> disk is not working right. Im getting a lot of theese kinds of errors:
> 
> end_request: I/O error, dev 03:03 (hdd), sector 2321462
> hdd: read_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
> hdd: read_intr: error=0x40 { UncorrectableError }, LBAsect=12571028, 
> sector=2321558
> 
> So I would like to move the data that still can be accessed from the bad 
> disk and remove the disk from the VG.
> When I run pvmove /dev/hdd1 I get theese errors:
> pvmove -- ERROR "Input/output error" reading sector 130688 from "/dev/hdd1"
> pvmove -- ERROR "Input/output error" reading sector 130689 from "/dev/hdd1"
> pvmove -- ERROR "Input/output error" reading sector 130690 from "/dev/hdd1"
> pvmove -- ERROR "Input/output error" reading sector 130691 from "/dev/hdd1"
> pvmove -- ERROR "Input/output error" reading sector 130692 from "/dev/hdd1"
> pvmove -- ERROR "Input/output error" reading sector 130693 from "/dev/hdd1"
> pvmove -- ERROR "Input/output error" reading sector 130694 from "/dev/hdd1"
> pvmove -- ERROR "Input/output error" reading sector 130695 from "/dev/hdd1"
> pvmove -- ERROR reading input physical volume "/dev/hdd1" (still 393216 
> bytes to read)
> pvmove -- ERROR "pv_move_pe(): read input PV" moving physical extents
> 
> I have tried to upgrade to the 1.0.3 tools and doing "pvmove -i /dev/hdd1" 
> but I still get the same errors.
> Im using lvm-mod version 1.0.1-rc4 with kernel 2.4.17.
> 
> Im willing to accept data loss, so is it possible to force the removal of 
> the  PV, even if its not empty?
> 
> Can I somehow display the files that occupies a PV? so that I know which 
> files will be lost.
> 
> What if I just remove the /dev/hdd1 partition with fdisk? will that mess up 
> the whole VG?
> 
> any help appreciateed!
> 
> 
> /Regards kalle...
> 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen at Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-




More information about the linux-lvm mailing list