[linux-lvm] Newbie question: ERROR "pv_move_pe(): PE lock"

Heinz J. Mauelshagen Mauelshagen at sistina.com
Tue Feb 20 23:21:58 UTC 2001


It will show up in the next release.
Added the check Andreas recommended for destination PVs as well.

On Tue, Feb 20, 2001 at 11:24:10AM -0700, Andreas Dilger wrote:
> It looks like the fix for this problem is not yet in CVS.  I'm pretty sure
> Heinz has taken a look at the patch already as well (at least he commented
> on this thread).  This fixes a BUG where it is not possible to do pvmove
> on an MD device.
> 
> > > In any case, try the below patch, and it should fix this problem.
> > 
> > # pvmove /dev/md7
> > pvmove -- moving physical extents in active volume group "vg01"
> > pvmove -- WARNING: moving of active logical volumes may cause data loss!
> > pvmove -- do you want to continue? [y/n] y
> > pvmove -- doing automatic backup of volume group "vg01"
> > pvmove -- 76 extents of physical volume "/dev/md7" successfully moved
> >
> > Many thanks -- seems to work a treat !
> 
> Here is the patch again.
> 
> Cheers, Andreas
> ============================================================================
> diff -u -u -r1.3.2.5 pvmove.c
> --- tools/pvmove.c	2001/02/14 14:48:01	1.3.2.5
> +++ tools/pvmove.c	2001/02/20 18:16:22
> @@ -234,7 +234,8 @@
>  
>     if ( opt_v > 0) printf ( "%s -- reading data of source physical volume "
>                              "from \"%s\"\n", cmd, src_pv_name);
> -   if ( ( ret = pv_read ( src_pv_name, &pv, NULL)) < 0) {
> +   if ( ( ret = pv_read ( src_pv_name, &pv, NULL)) < 0 &&
> +	ret != -LVM_EPV_READ_MD_DEVICE) {
>        if ( ret == -LVM_EPV_READ_OPEN) {
>           fprintf ( stderr, "%s -- source physical volume \"%s\" "
>                             "doesn't exist\n\n",
> 
> -- 
> Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
>                  \  would they cancel out, leaving him still hungry?"
> http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm

-- 

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



More information about the linux-lvm mailing list