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

RE: [linux-lvm] Problem using lvreduce

That's the problem what I had.
I posted fix and waiting verification but 
mail traffic saying they are busy with 1.0 release and PE start point
And seems, this problem is also related to that PE start point problem.
Anyway, quick and no warranty fix is

--- pv_release_pe.c.old Thu Aug 16 09:23:35 2001
+++ pv_release_pe.c     Wed Aug 15 09:09:06 2001
@@ -85,7 +85,7 @@
          pe_index = ( vg->lv[l]->lv_current_pe[p].pe - 
                       LVM_VGDA_SIZE ( vg->pv[pv_num]) / SECTOR_SIZE) /
-                      vg->pe_size;
+                      vg->pe_size - 1;
          debug ( "pv_release_pe -- pv_name: %s  pe: %lu  sector: %lu\n",

-----Original Message-----
From: Faux Pas III [mailto:fauxpas trellisinc com]
Sent: Wednesday, August 15, 2001 7:50 PM
To: linux-lvm sistina com
Subject: [linux-lvm] Problem using lvreduce

I have been having a problem removing a drive from a running 
volume group.  I repeat this by creating a volume group from
/dev/sda, /dev/sdb (each 18gb), /dev/hde, and /dev/hdg (each
30gb).  I create an LV that spans all physical extents in 
this group.  I then try to use lvreduce to take 4400 PE's out
of the group (slightly more than occupy either of the two 
scsi drives).

Gryphon:~# lvreduce -l -4400 /dev/test_vg/test_lv 
lvreduce -- WARNING: reducing active logical volume to 72.62 GB
lvreduce -- THIS MAY DESTROY YOUR DATA (filesystem etc.)
lvreduce -- do you really want to reduce "/dev/test_vg/test_lv"? [y/n]: y
lvreduce -- ERROR "pv_check_consistency_all_pv(): PE" volume group "test_vg"
is inconsistent
lvreduce -- WARNING: you don't have an automatic backup of "test_vg"
lvreduce -- logical volume "/dev/test_vg/test_lv" successfully reduced

After this, all manner of badness ensues, including:

Gryphon:~# vgdisplay
vgdisplay -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run

In any event, I'm not able to pvmove or vgreduce to get the drive out of
the volume group as I would expect.   This is on 2.4.8 + LVM 1.0, and also
manifests on 2.4.7 + LVM 0.9.1beta8.  I can provide any other diagnostic
info that would be helpful, as I can reproduce this problem easily.

Josh Litherland (fauxpas trellisinc com)
 It is by caffeine alone that I set my mind in motion.
  It is by the juice of Mtn Dew that thoughts acquire speed.
linux-lvm mailing list
linux-lvm sistina com
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

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