[linux-lvm] LVM 1.0.4 pvmove is broken

Poul Petersen petersp at roguewave.com
Fri May 10 19:12:02 UTC 2002


	I must be doing something wrong. I've tried this on a second machine
(a PII-333 running RedHat 7.1), with a single processor to rule out SMP
issues, and I had the same results. I also tried using a local IDE disk to
rule out any SCSI/SAN driver issues (both of these machines are connected to
a Zzyzx Raid Head via Qlogic 2200 Fibre Channel cards). I'm basically
unpacking the 2.4.18 kernel, applying the LVM patch, making a few small
changes to the kernel configuration to add network drivers, etc, and then
building. Nothing fancy. I have discovered that as long as the VG is not
active, the pvmove will function. If the VG is active, it will fail every
time on while moving the second PE. 

	I ran pvmove with strace and this is where it hangs (The "..."
represents the llseek/read/write blocks that I removed)

write(1, "pvmove -- /dev/sdb [PE 305 [lv0 "..., 67pvmove -- /dev/sdb [PE 305
[lv0
[LE 0]] -> /dev/sdc [PE 0] [1/306]
) = 67
open("/dev/vg0/group", O_RDONLY)        = 6
ioctl(6, 0x4004fe50, 0xbffff1e0)        = 0
close(6)                                = 0
_llseek(4, 0, [1283719168], SEEK_CUR)   = 0
read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 65536)
= 65536
write(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 65536)
= 65536
...
read(4, "\306\35\2\206\241\353?;\202\303ED\2306s\16\217\10\236\241"...,
65536) = 65536
write(5, "\306\35\2\206\241\353?;\202\303ED\2306s\16\217\10\236\241"...,
65536) = 65536
fsync(5)                                = 0
open("/dev/vg0/group", O_RDWR)          = 6
ioctl(6, 0x4004fe2b

	I'm going to try a different kernel - I was using 2.4.18 because I
wanted to eventually use XFS-1.1.

Thanks for any help,

-poul

> -----Original Message-----
> From: Heinz J . Mauelshagen [mailto:mauelshagen at sistina.com]
> Sent: Friday, May 10, 2002 6:39 AM
> To: linux-lvm at sistina.com
> Subject: Re: [linux-lvm] LVM 1.0.4 pvmove is broken
> 
> 
> 
> Poul,
> 
> couldn't reproduce this directly here.
> Need to investigate more...
> 
> On Thu, May 09, 2002 at 02:49:40PM -0700, Poul Petersen wrote:
> > 	I posted a day or two ago, and as near as I can tell 
> pvmove in LVM
> > 1.0.4 with kernel 2.4.18 is broken. If I apply the 1.0.4 
> patch generated by
> > PATCHES/Makefile to a stock 2.4.18 kernel, pvmove will 
> crash after moving
> > one PE, every time, regardless of the arrangement of 
> physical volumes,
> > filesystems, etc. Notice that this failure occurs even 
> without a filesystem
> > present in the logical volume, that is I can make a volume 
> group with two
> > disks, create a small LV and pvmove will crash trying to 
> move the PEs. If I
> > follow the exact same installation procedure for LVM 1.0.3, 
> everything works
> > fine. If I use the 1.0.4 toolset with an unpatched stock 
> 2.4.18 kernel,
> > everything works fine. The problem with pvmove is 
> definitely precipitated by
> > installing the auto-generated patch from 1.0.4. 
> > 
> > 	Is this working for anyone else? I didn't want to attach the
> > auto-generated patch since it is 70k, but I can provide it 
> if it would help.
> > 
> > Thanks,
> > 
> > -poul
> > 
> > System Specs:
> > RedHat 7.2 w/ 2.4.18 kernel
> > Dual P-II 400 
> > 
> > 
> > _______________________________________________
> > 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
> 
> -- 
> 
> Regards,
> Heinz    -- The LVM Guy --
> 
> *** 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
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> =-=-=-=-=-=-=-=-
> 
> _______________________________________________
> 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
> 




More information about the linux-lvm mailing list