All of lore.kernel.org
 help / color / mirror / Atom feed
* a bug in snapshots
@ 2010-02-10  0:07 Mikulas Patocka
  2010-02-10  0:39 ` Mike Snitzer
  0 siblings, 1 reply; 6+ messages in thread
From: Mikulas Patocka @ 2010-02-10  0:07 UTC (permalink / raw)
  To: lvm-devel

Hi

Try to make a snapshot that is so big that it spans more than one physical 
volume. Then, type "lvs" command. You get these errors:

[slunicko:/usr/src/LVM2.2.02.60]# lvs
  Number of segments in active LV lvol1 does not match metadata
  Number of segments in active LV lvol1 does not match metadata
  Number of segments in active LV lvol1 does not match metadata
  Number of segments in active LV lvol1 does not match metadata
  LV    VG   Attr   LSize  Origin Snap%  Move Log Copy%  Convert
  lvol0 vg1  owi-a- 16.00m
  lvol1 vg1  Swi-I- 60.00m lvol0  100.00
  m     vg1  -wi-a- 64.00m

This bug was introduced in LVM2.2.02.59 with this change:

--- ./LVM2.2.02.58/lib/activate/dev_manager.c   2010-01-13 
02:55:44.000000000 +0100
+++ ./LVM2.2.02.59/lib/activate/dev_manager.c   2010-01-15 
23:58:25.000000000 +0100
@@ -584,7 +593,7 @@ int dev_manager_snapshot_percent(struct
         * Try and get some info on this device.
         */
        log_debug("Getting device status percentage for %s", name);
-       if (!(_percent(dm, name, dlid, "snapshot", 0, NULL, percent,
+       if (!(_percent(dm, name, dlid, "snapshot", 0, lv, percent,
                       percent_range, NULL)))
                return_0;


Mikulas



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-02-10 21:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-10  0:07 a bug in snapshots Mikulas Patocka
2010-02-10  0:39 ` Mike Snitzer
2010-02-10  1:57   ` Mikulas Patocka
2010-02-10  4:01     ` Mike Snitzer
2010-02-10 13:40       ` Mike Snitzer
2010-02-10 21:39         ` Mikulas Patocka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.