Bugzilla – Bug 556177
lvcreate --snapshot .. results in scary messages to console and /var/log/messages
Last modified: 2016-04-15 10:32:32 UTC
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4) Gecko/20091016 SUSE/3.5.4-1.1.2 Firefox/3.5.4 I created a snapshot volume for testing purposes and this is what I got on the console: raid-mm2: event registration failed: 25948:3 libdevmapper-event-lvm2snapshot.so.2.02 dlopen failed: /lib64/libdevmapper-event-lvm2snapshot.so.2.02: undefined symbol: lvm2_run raid/snapshot0: snapshot segment monitoring function failed. Logical volume "mm2" created and in /var/log/messages: Nov 17 10:04:15 turnip dmeventd[26002]: dmeventd ready for processing. Nov 17 10:04:15 turnip dmeventd[26002]: dmeventd libdevmapper-event-lvm2snapshot.so.2.02 dlopen failed: /lib64/libdevmapper-event-lvm2snapshot.so.2.02: undefined symbol: lvm2_run None of which looks very reassuring. Reproducible: Always Steps to Reproduce: 1. 2. 3.
The libdevmapper-event-lvm2snapshot.so.2.02 should link to lvm2cmd.so, where lvm2_run can be found. It doesn't ;( Thanks for reporting this, I'm working on it now. As a workaround for now, if you are in a hurry, I think you can use the LD_PRELOAD trick to load /lib64/liblvm2cmd.so.
FWIW, The same happens on my 32bit system: $ sudo lvcreate -s --size=5G --name=varlibmysql_snapshot /dev/system/varlibmysql system-varlibmysql_snapshot: event registration failed: 23306:3 libdevmapper-event-lvm2snapshot.so.2.02 dlopen failed: /lib/libdevmapper-event-lvm2snapshot.so.2.02: undefined symbol: lvm2_run system/snapshot0: snapshot segment monitoring function failed. Logical volume "varlibmysql_snapshot" created
Hi all, The latest package in opensuse build service should fix this already. Check the latest changelog: ------------------------------------------------------------------- Fri Nov 27 20:39:20 CST 2009 - xwhu@novell.com - Link liblvm2cmd.so to libdevmapper-event.so (bnc#556177) Please test and feedback. Thanks a lot.
(In reply to comment #3) > Hi all, > > The latest package in opensuse build service should fix this already. > Check the latest changelog: > ------------------------------------------------------------------- > Fri Nov 27 20:39:20 CST 2009 - xwhu@novell.com > > - Link liblvm2cmd.so to libdevmapper-event.so (bnc#556177) > > Please test and feedback. > Thanks a lot. I have created the link, I tried the LD_PRELOAD trick and last I installed the version lvm2-2.02.45-15.1.x86_64 but nothing works. The scary messages are still remaining. Also the link is not created during installation of the a.m. version.
(In reply to comment #4) > (In reply to comment #3) > > Hi all, > > > > The latest package in opensuse build service should fix this already. > > Check the latest changelog: > > ------------------------------------------------------------------- > > Fri Nov 27 20:39:20 CST 2009 - xwhu@novell.com > > > > - Link liblvm2cmd.so to libdevmapper-event.so (bnc#556177) > > > > Please test and feedback. > > Thanks a lot. > I have created the link, I tried the LD_PRELOAD trick and last I installed the > version lvm2-2.02.45-15.1.x86_64 but nothing works. The scary messages are > still remaining. Also the link is not created during installation of the a.m. > version. It's not about creating symbolic link from liblvm2cmd.so to libdevmapper-event.so, but linking liblvm2cmd.so with libdevmapper-event.so while compiling the package. Sorry about the confusion. Have you checked the changelog of lvm2? (using rpm -q --changelog lvm2). I'm not sure about the version number.
(In reply to comment #5) > (In reply to comment #4) > > (In reply to comment #3) > > > Hi all, > > > > > > The latest package in opensuse build service should fix this already. > > > Check the latest changelog: > > > ------------------------------------------------------------------- > > > Fri Nov 27 20:39:20 CST 2009 - xwhu@novell.com > > > > > > - Link liblvm2cmd.so to libdevmapper-event.so (bnc#556177) > > > > > > Please test and feedback. > > > Thanks a lot. > > I have created the link, I tried the LD_PRELOAD trick and last I installed the > > version lvm2-2.02.45-15.1.x86_64 but nothing works. The scary messages are > > still remaining. Also the link is not created during installation of the a.m. > > version. > > It's not about creating symbolic link from liblvm2cmd.so to > libdevmapper-event.so, > but linking liblvm2cmd.so with libdevmapper-event.so while compiling the > package. > Sorry about the confusion. > > Have you checked the changelog of lvm2? (using rpm -q --changelog lvm2). > I'm not sure about the version number. here are the latest entries in changelog: * Sun Nov 29 2009 xwhu@novell.com - Link liblvm2cmd.so to libdevmapper-event.so (bnc#556177) * Sun Nov 15 2009 meissner@suse.de - quilt refreshed all patches.
(In reply to comment #6) > (In reply to comment #5) > > (In reply to comment #4) > > > (In reply to comment #3) > > > > Hi all, > > > > > > > > The latest package in opensuse build service should fix this already. > > > > Check the latest changelog: > > > > ------------------------------------------------------------------- > > > > Fri Nov 27 20:39:20 CST 2009 - xwhu@novell.com > > > > > > > > - Link liblvm2cmd.so to libdevmapper-event.so (bnc#556177) > > > > > > > > Please test and feedback. > > > > Thanks a lot. > > > I have created the link, I tried the LD_PRELOAD trick and last I installed the > > > version lvm2-2.02.45-15.1.x86_64 but nothing works. The scary messages are > > > still remaining. Also the link is not created during installation of the a.m. > > > version. > > > > It's not about creating symbolic link from liblvm2cmd.so to > > libdevmapper-event.so, > > but linking liblvm2cmd.so with libdevmapper-event.so while compiling the > > package. > > Sorry about the confusion. > > > > Have you checked the changelog of lvm2? (using rpm -q --changelog lvm2). > > I'm not sure about the version number. > > here are the latest entries in changelog: > > * Sun Nov 29 2009 xwhu@novell.com > - Link liblvm2cmd.so to libdevmapper-event.so (bnc#556177) > > * Sun Nov 15 2009 meissner@suse.de > - quilt refreshed all patches. em. That's strange indeed. I got no error on my side. Would you please copy/paste the erorr message here again ? And also a result of 'ldd /lib/liblvm2cmd.so' is very helpful. Thanks.
(In reply to comment #7) > (In reply to comment #6) > > (In reply to comment #5) > > > (In reply to comment #4) > > > > (In reply to comment #3) > > > > > Hi all, > > > > > > > > > > The latest package in opensuse build service should fix this already. > > > > > Check the latest changelog: > > > > > ------------------------------------------------------------------- > > > > > Fri Nov 27 20:39:20 CST 2009 - xwhu@novell.com > > > > > > > > > > - Link liblvm2cmd.so to libdevmapper-event.so (bnc#556177) > > > > > > > > > > Please test and feedback. > > > > > Thanks a lot. > > > > I have created the link, I tried the LD_PRELOAD trick and last I installed the > > > > version lvm2-2.02.45-15.1.x86_64 but nothing works. The scary messages are > > > > still remaining. Also the link is not created during installation of the a.m. > > > > version. > > > > > > It's not about creating symbolic link from liblvm2cmd.so to > > > libdevmapper-event.so, > > > but linking liblvm2cmd.so with libdevmapper-event.so while compiling the > > > package. > > > Sorry about the confusion. > > > > > > Have you checked the changelog of lvm2? (using rpm -q --changelog lvm2). > > > I'm not sure about the version number. > > > > here are the latest entries in changelog: > > > > * Sun Nov 29 2009 xwhu@novell.com > > - Link liblvm2cmd.so to libdevmapper-event.so (bnc#556177) > > > > * Sun Nov 15 2009 meissner@suse.de > > - quilt refreshed all patches. > > em. That's strange indeed. I got no error on my side. > Would you please copy/paste the erorr message here again ? > And also a result of 'ldd /lib/liblvm2cmd.so' is very helpful. > > Thanks. Here the requested output: ldd /lib64/liblvm2cmd.so linux-vdso.so.1 => (0x00007fffbfd8e000) libdevmapper-event.so.1.02 => /lib64/libdevmapper-event.so.1.02 (0x00007f677f227000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f677f00b000) libdevmapper.so.1.02 => /lib64/libdevmapper.so.1.02 (0x00007f677edf1000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f677ebed000) libc.so.6 => /lib64/libc.so.6 (0x00007f677e892000) /lib64/ld-linux-x86-64.so.2 (0x00007f677f6f7000) libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f677e673000) lvcreate -L 1G -s -n mmsnap /dev/slr-big/data slr--big-mmsnap: event registration failed: 10055:3 libdevmapper-event-lvm2snapshot.so.2.02 dlopen failed: /lib64/libdevmapper-event-lvm2snapshot.so.2.02: undefined symbol: lvm2_run slr-big/snapshot0: snapshot segment monitoring function failed. Logical volume "mmsnap" created
I am seeing exactly the same problem. I would like to try the latest RPM, but am having no success locating it. Could someone please explain where this latest version from the build service can be located, please? The latest version I can locate anywhere from the OpenSUSE website is: lvm2-2.02.45-11.1 which is dated Mon Oct 19 21:21:46 2009. So it's obviously not the version in question. When I search via the page http://software.opensuse.org/search, which it titled "Get Software from the openSUSE Build Service", this is the latest version found. It's also the latest version found by the normal YaST online update service.
Have this bug too. My backup routine relies on lvm snapshots.
Not sure about the answer by reading this threat: Is there any workaround for this one? Is there any working rpm somewhere? Thank you.
I would like a fix for this as well, although it seems cosmetic. lvm2-2.02.45-11.1 does not fix it and I cannot find a more recent version.
I think, that this is not cosmetic. At the same time as i noticed these errors, i noticed, that lvm operations work sometimes and sometimes not. I filed a bug 581590 for that. Please vote for this bug, it is killing my backup scripts.
(In reply to comment #13) > I think, that this is not cosmetic. At the same time as i noticed these errors, > i noticed, that lvm operations work sometimes and sometimes not. I filed a bug > 581590 for that. Please vote for this bug, it is killing my backup scripts. Yes. It's definitely not cosmetic. I have found out it's some problem with build service(The local build with the source works, while the 'osc build' command produce the problematic package). Trying to fix this now. FYI.
Hi all, I submitted a update into Base:System days ago. It should be ready for download and test now. Any one can test on your side and give some feedback on this ? Thank you.
Could you be a little less cryptic about its location, please? If I could find it, I'd test it (the Internet is quite large...) The only location I can think of which might relate to "Base:System" is: http://download.opensuse.org/repositories/Base:/System/openSUSE_11.2 but there is no sign of any lvm2 package in there. I do see a package in openSUSE_Factory, but it was my understanding that that is for pre-release 11.3 packages, and if I 'rpm -i --test' the lvm2 package in there it won't install because of failed dependencies.
(In reply to comment #15) > Hi all, > > I submitted a update into Base:System days ago. It should be ready for > download and test now. > Any one can test on your side and give some feedback on this ? > > Thank you. Hi, I installed this. The scary messages are gone. A (simple) test shows that it now works as expected. @Nigel: The rpm can be found in the factory tree of Base:System Thanks
Yes, I know that an rpm can be found in the factory tree. I said that in my post. But as I also explained, that rpm won't install in 11.2 because of failed dependencies. Presumably because the factory tree is 11.3 pre-release. What's needed is a patch/update for 11.2, since this bug is posted against 11.2.
Install of said rpm via "zypper in" worked for me - no failed dependencies. And the messages are gone, BTW.
(In reply to comment #19) > Install of said rpm via "zypper in" worked for me - no failed dependencies. > > And the messages are gone, BTW. How have you configured the repo in zypper? I cannot get zypper to recognize the Base:System factory at all. I can install from http://download.opensuse.org/factory/repo/oss/, but that lvm2 package (2.02.45-15.7) still has the same problem.
(In reply to comment #20) > > How have you configured the repo in zypper? I cannot get zypper to recognize > the Base:System factory at all. > Simple: I did not. I just used "zypper in http://download.opensuse.org/repositories/Base:/System/openSUSE_Factory/x86_64/lvm2-2.02.45-43.1.x86_64.rpm" "factory" meant "openSUSE_Factory", not the one you tried. If you absolutely want to configure the repository, you'd have to use this URL, I suppose: http://download.opensuse.org/repositories/Base:/System/openSUSE_Factory/
Why is the corrected package not been in the stable branch http://download.opensuse.org/repositories/Base:/System/openSUSE_11.2/x86_64/ ? Not every production server are allowed to use "factory" rpm .
*** Bug 610194 has been marked as a duplicate of this bug. ***
Can we expect the fix in 11.2 updates some day? Is there anything missing?
(In reply to comment #24) > Can we expect the fix in 11.2 updates some day? Is there anything missing? I've submit a request against 11.2. Not sure when the update will be released yet. Thanks.
(In reply to comment #25) > (In reply to comment #24) > > Can we expect the fix in 11.2 updates some day? Is there anything missing? > > I've submit a request against 11.2. > Not sure when the update will be released yet. > > Thanks. after applying this lvm2 package, I first get an error telling me that device-mapper should be updated too (because some symbol is missing in a .so, sorry, have already closed the window) so that the version of this package or this .so should be added as a requirement to the lvm2 package. After having upgraded both, I get event registration failed: 31418:3 libdevmapper-event-lvm2snapshot.so.2.02 dlopen failed: /lib/liblvm2cmd.so.2.02: undefined symbol: dm_udev_set_sync_support so unfortunately there is another thing missing... It would be kind if this could be fixed before making it official
It is correct that the now-current version lvm2.0.67-something does not work any more, whereas the then-current 2.0.45-something did. So it seems, the once-working fix isn't available any more. This bug seems to be treated like an orphan. Considering how old it is and that a fix is (or at least was) available, it is disappointing see that we may more likely expect 11.3 released than a fix for 11.2.
(In reply to comment #26) > (In reply to comment #25) > > (In reply to comment #24) > > > Can we expect the fix in 11.2 updates some day? Is there anything missing? > > > > I've submit a request against 11.2. > > Not sure when the update will be released yet. > > > > Thanks. > > after applying this lvm2 package, I first get an error telling me that > device-mapper should be updated too (because some symbol is missing in a .so, > sorry, have already closed the window) so that the version of this package or > this .so should be added as a requirement to the lvm2 package. > > After having upgraded both, I get > > event registration failed: 31418:3 libdevmapper-event-lvm2snapshot.so.2.02 > dlopen failed: /lib/liblvm2cmd.so.2.02: undefined symbol: > dm_udev_set_sync_support > > so unfortunately there is another thing missing... > > It would be kind if this could be fixed before making it official The version in Base:System now is prepared for 11.3 now. It cannot work with 11.2. Sorry. I'm trying to figure out how to make any update for 11.2. still.
For openSUSE +1 (for an update)
would be fine by me. +1 (looks a bit like a --as-needed problem in the first comments)
The SWAMPID for this issue is 34407. This issue was rated as low. Please submit fixed packages as soon as possible. Also create a patchinfo file using this link: https://swamp.suse.de/webswamp/wf/34407
ok, update process started. Be so kind and submit a patchinfo.
The bug exists in 11.3, also! With another error message, but same monitoring fail: d1:~# lvcreate -s -L2G -n backup /dev/virtual/pandora virtual-backup: event registration failed: 5144:3 libdevmapper-event-lvm2snapshot.so.2.02 dlopen failed: /lib64/liblvm2cmd.so.2.02: undefined symbol: dm_event_register_handler virtual/snapshot0: snapshot segment monitoring function failed. Logical volume "backup" created The system is upgraded from 11.2 to 11.3 an hour ago. I REALLY NEED this working in 11.3! That's why I've upgraded.
(In reply to comment #35) > The bug exists in 11.3, also! > > With another error message, but same monitoring fail: > d1:~# lvcreate -s -L2G -n backup /dev/virtual/pandora > virtual-backup: event registration failed: 5144:3 > libdevmapper-event-lvm2snapshot.so.2.02 dlopen failed: > /lib64/liblvm2cmd.so.2.02: undefined symbol: dm_event_register_handler > virtual/snapshot0: snapshot segment monitoring function failed. > Logical volume "backup" created > > The system is upgraded from 11.2 to 11.3 an hour ago. > > I REALLY NEED this working in 11.3! That's why I've upgraded. This is a build service specific issue. I'm very sorry that this regression was skipped during RC phase. I've just submit an package into Base:System to fix this. Would you try that first ? Meanwhile, I'll provide another maintenance update for 11.3 asap. Thank you for bring this up and sorry for the inconvenient.
Hi Xin, you submitted a package for device mapper. Planned was an update for lvm2. Is an update of package device-mapper enough? If it is not fixed in 11.3, be so kind and submit also an update for it. Is sle also affected?
On 11.3 full updates success uname -a Linux walt 2.6.34-12-default #1 SMP 2010-06-29 02:39:08 +0200 x86_64 x86_64 x86_64 GNU/Linux lvcreate -v -s --size=5G --name=snaptmp /dev/vgsystem/lvtmp Setting chunksize to 8 sectors. Setting logging type to disk Finding volume group "vgsystem" Archiving volume group "vgsystem" metadata (seqno 6). Creating logical volume snaptmp Creating volume group backup "/etc/lvm/backup/vgsystem" (seqno 7). Found volume group "vgsystem" Creating vgsystem-snaptmp Loading vgsystem-snaptmp table (253:11) Resuming vgsystem-snaptmp (253:11) Clearing start of logical volume "snaptmp" Creating logical volume snapshot0 Found volume group "vgsystem" Found volume group "vgsystem" Creating vgsystem-lvtmp-real Loading vgsystem-lvtmp-real table (253:12) Resuming vgsystem-lvtmp-real (253:12) Loading vgsystem-lvtmp table (253:3) Creating vgsystem-snaptmp-cow Loading vgsystem-snaptmp-cow table (253:13) Resuming vgsystem-snaptmp-cow (253:13) Loading vgsystem-snaptmp table (253:11) Suspending vgsystem-lvtmp (253:3) with filesystem sync with device flush Suspending vgsystem-lvtmp-real (253:12) with filesystem sync with device flush Found volume group "vgsystem" Loading vgsystem-lvtmp-real table (253:12) Suppressed vgsystem-lvtmp-real identical table reload. Loading vgsystem-snaptmp-cow table (253:13) Suppressed vgsystem-snaptmp-cow identical table reload. Resuming vgsystem-lvtmp-real (253:12) Resuming vgsystem-snaptmp (253:11) Resuming vgsystem-lvtmp (253:3) Monitoring vgsystem/snapshot0 vgsystem-snaptmp: event registration failed: 29582:3 libdevmapper-event-lvm2snapshot.so.2.02 dlopen failed: /lib64/liblvm2cmd.so.2.02: undefined symbol: dm_event_register_handler vgsystem/snapshot0: snapshot segment monitoring function failed. Creating volume group backup "/etc/lvm/backup/vgsystem" (seqno 8). Logical volume "snaptmp" created
Sorry no yet really awake .. Creating success, but the failed message always happen vgsystem-snaptmp: event registration failed: 29582:3 libdevmapper-event-lvm2snapshot.so.2.02 dlopen failed: /lib64/liblvm2cmd.so.2.02: undefined symbol: dm_event_register_handler vgsystem/snapshot0: snapshot segment monitoring function failed.
(In reply to comment #37) > Hi Xin, > you submitted a package for device mapper. Planned was an update for lvm2. > > Is an update of package device-mapper enough? LVM2 and device-mapper share the same source code, but still we need an update for LVM2 here. > If it is not fixed in 11.3, be so kind and submit also an update for it. Submit into openSUSE11.3:Update:Test ? > Is sle also affected? As far as I tested, SLE is not affected. Thanks.
> Submit into openSUSE11.3:Update:Test ? YES. Be so kind :-) I will change the patchinfo. > As far as I tested, SLE is not affected. Thanks for checking this.
> I will change the patchinfo. Sry, be so kind and submit a new patchinfo for 11.3 For 11.2 the update is ready for testing in the update:test-repo
Update released for: device-mapper, device-mapper-debuginfo, device-mapper-debugsource, device-mapper-devel, lvm2, lvm2-clvm, lvm2-clvm-debuginfo, lvm2-clvm-debugsource, lvm2-debuginfo, lvm2-debugsource Products: openSUSE 11.2 (debug, i586, x86_64)
It seems that a fix for this bug was released for OpenSUSE 11.2 on July 26th. My OpenSUSE 11.3 machine (64-bit) still suffers from the bug. When will an update for it be available?
The SWAMPID for this issue is 35083. This issue was rated as low. Please submit fixed packages until 2010-09-08. Also create a patchinfo file using this link: https://swamp.suse.de/webswamp/wf/35083
(In reply to comment #44) > It seems that a fix for this bug was released for OpenSUSE 11.2 on July 26th. > My OpenSUSE 11.3 machine (64-bit) still suffers from the bug. When will an > update for it be available? Oh, sorry. There was no submission from the packager for 11.3 and then it goes under. Xin, be so kind and submit it also for 11.3. New SwampID: 35083
(In reply to comment #46) > (In reply to comment #44) > > It seems that a fix for this bug was released for OpenSUSE 11.2 on July 26th. > > My OpenSUSE 11.3 machine (64-bit) still suffers from the bug. When will an > > update for it be available? > > Oh, sorry. There was no submission from the packager for 11.3 and then it goes > under. > > > Xin, > > be so kind and submit it also for 11.3. New SwampID: 35083 Submitted. Thanks.
Update released for: device-mapper, device-mapper-debuginfo, device-mapper-debugsource, device-mapper-devel, lvm2, lvm2-debuginfo, lvm2-debugsource Products: openSUSE 11.3 (debug, i586, x86_64)
released
This is an autogenerated message for OBS integration: This bug (556177) was mentioned in https://build.opensuse.org/request/show/42764 11.2:Test / device-mapper https://build.opensuse.org/request/show/43464 Factory / device-mapper https://build.opensuse.org/request/show/45444 11.3:Test / device-mapper