LVM 0.9.1 Beta 6, lockup during pvmove
Hi,
i'm playing around with LVM 0.9.1 Beta 6 on my test box and have noticed a lockup that i can reproduce quite easily.
I use linux-2.4.2 on a new Debian 2.2r2 installation, but i also tested linux-2.4.3pre4.
Here is what i do:
create two PV's on two disks
create a VG with these (/dev/hda10, /dev/hdc5). create a LV that is small enougth to fit on one PV create ext2 filesystem on the LV and mount it
Now i begin to copy some stuff from a nfs mount to this LV, and while the copying is done, i do pvmove /dev/hda10, so that the PE's are transfered to the other PV, /dev/hdc5.
And this is where my system locks up. Well, the processes continue to run, but they lock up once they try to do stuff on the disk (read, write).
All disk activity stops the moment pvmove starts to move the first PE. Using grep and pvmove -d (the lvm code makes this quite easy, nice work) i found pvmove locks up in tools/lib/pv_move.c, line 522
if ( read ( in, buffer, size) != size) {
Using strace on cp, i find that it locks up during another read ( the last thing strace prints is "read(3,", where 3 was opened readonly on the NFS mount), so this may be independent of lvm, but i was unable to lock my box up without lvm.
I would really like to track this down, but my knowledge is rather limited so any help is appreciated.
thanks,
Nils
Quoted 3 lines
Nils Juergens | [email protected] | icq 7090774 < If we all work hard, we can turn this company < around 360 degrees -- gruntbert(LOTD) <
Quoted 8 lines · Nils Juergens
Using strace on cp, i find that it locks up during another read ( the last thing strace prints is "
read(3,", where 3 was opened readonly on the NFS mount), so this may be independent of lvm, but i was unable to lock my box up without lvm.I would really like to track this down, but my knowledge is rather limited so any help is appreciated.
It doesn't seem to be NFS related, I can reproduce it with purely local I/O. It looks to be the new locking that went in to beta6 to fix some races.
patrick
Quoted 4 lines · Patrick Caulfield
It doesn't seem to be NFS related, I can reproduce it with purely local I/O. It looks to be the new locking that went in to beta6 to fix some races.
I just tried the same with beta5 and beta4 with similar results, but (at least sometimes) locking up at write instead of read, so it seems this bug was present before beta6.
Tell me if you want me to do some more testing :)
cu,
Nils
Quoted 3 lines
Nils Juergens | [email protected] | icq 7090774 < If we all work hard, we can turn this company < around 360 degrees -- gruntbert(LOTD) <