Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130626 - Odd problem with sys-fs/lvm2-2.02.03
Summary: Odd problem with sys-fs/lvm2-2.02.03
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Eric Edgar (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2006-04-20 10:43 UTC by Matteo Sasso
Modified: 2006-04-24 15:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matteo Sasso 2006-04-20 10:43:07 UTC
The latest version of lvm2 (sys-fs/lvm2-2.02.03) brought with it an odd warning message:

WARNING: Duplicate VG name backup: Existing q4SOpG-9Vwx-GtW3-zS7c-bIS0-3v1H-wsZ9Up (created here) takes precedence over q4SOpG-9Vwx-GtW3-zS7c-bIS0-3v1H-wsZ9Up

Google doesn't help.

This happens for every VG. Please note that IDs look identical.
I tried a vgscan but it didn't fix it.
The problem doesn't show with v2.02.02.

emerge --info follows:

Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.16-suspend2-r2 i686)
=================================================================
System uname: 2.6.16-suspend2-r2 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=athlon-xp -mmmx -msse -m3dnow -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=athlon-xp -mmmx -msse -m3dnow -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://85.25.128.62 http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://213.186.33.38/gentoo-distfiles/ http://213.186.33.37/gentoo-distfiles/ http://gentoo.inode.at/"
LANG="en_US.UTF-8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac alsa apache2 arts bitmap-fonts bzip2 canvas cjk crypt css cups dar64 dga doc dvd encode examples ffmpeg firefox flac fuse gif glibc-omitfp gphoto2 gpm gstreamer gtk gtk2 image imlib immqt-bc java jpeg jpeg2k kde kdeenablefinal kdexdeltas mad maildir matroska mmx mmxext mozdevelop mozsvg mp3 musicbrainz ncurses nls nptl nptlonly nsplugin offensive ogg oggvorbis on-the-fly-crypt opengl pam pcre physfs pic png qt quicktime rdesktop readline real rtc ruby sdl sndfile speex sse ssl subversion svg theora threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis win32codecs wmf xanim xml2 xmms xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-20 10:56:51 UTC
I'll spend some more time tomorrow on a similar note for media-tv bugs.

This happened while farragut is building the system, as now I can build on Gentoo/FreeBSD without making my system go starving because of VMware. And this is really good for me.
Now there are a few things that i need to fix in the baselayout, then I'll probably roll out a new updated snapshot the next week, as I found quite a few problems while building out of that stage.

Comment 2 Eric Edgar (RETIRED) gentoo-dev 2006-04-20 12:07:21 UTC
was this message on boot?
Comment 3 Eric Edgar (RETIRED) gentoo-dev 2006-04-20 12:14:36 UTC
can you try using 2.02.04 and see if it has the same issue?
Comment 4 Matteo Sasso 2006-04-20 12:16:52 UTC
Yes, they're shown when init tries to activate (again) the LVs. I say "again" because LVs are activated by a custom initrd using an older version of lvm2. I also discovered that I cannot activate them using the newer version!
A "vgchange -ay", besides the aforementioned warnings, reads: 0 logical volume(s) in volume group "backup" now active.

Thanks to the initrd, my system can still boot! ;)
Comment 5 Eric Edgar (RETIRED) gentoo-dev 2006-04-20 12:22:21 UTC
ok so it sounds like lvm needs to probably be bumped in genkernel to a newer version as well.  it sounds like the older version of lvm2 is messing with the newer version of it.

Comment 6 Eric Edgar (RETIRED) gentoo-dev 2006-04-20 12:30:55 UTC
another thing to try is recreating your initrd/initramfs with genkernel it should pickup the new static binaries as long as you have compiled the lvm2 ebuild without the nolvmstatic use flag.  This will get the two versions of lvm2 in sync again.
Comment 7 Matteo Sasso 2006-04-20 12:43:06 UTC
Ok, I emerged the new version (2.02.04) but it doesn't fix the problem. I'm afraid my LVs' metadata have fallen out of sync somehow... They've been through many divverent lvm2 versions.

I also discovered that I cannot deactivate volumes anymore (e.g. in order to remove snapshots):
  WARNING: Duplicate VG name backup: Existing q4SOpG-9Vwx-GtW3-zS7c-bIS0-3v1H-wsZ9Up (created here) takes precedence over q4SOpG-9Vwx-GtW3-zS7c-bIS0-3v1H-wsZ9Up
  Volume group for uuid not found: Yxbak3rpy6tVAP00VrS0L0IVObhV16QfiDaSDnDi7W2hV3nv55jHZMpqHUcny5MN

Now it gives me two identical IDs for the warning and a different one for the error.
Comment 8 Eric Edgar (RETIRED) gentoo-dev 2006-04-20 13:01:26 UTC
this might be a point where using the vgcfgrestore utility would be useful to restore your metadata to your disks.  This *shouldnt* impact your data but I can not gaurantee that it wont happen.  if possible take backups before you attempt to do so. and also try this first on a spare disk going through the vgreate/vgcfgbackup/restore procedure on this disk.
Comment 9 Matteo Sasso 2006-04-20 13:39:33 UTC
Ok, I think I solved the problem by juggling with the two versions of lvm and renaming the VG which was caousing the warning. I still cannot "change" (activate/deactivate) LVs, but I think this issue is a bit OT. Should I open another bug/close this one? WONTFIX, WORKSFORME, ...?
Comment 10 Eric Edgar (RETIRED) gentoo-dev 2006-04-20 14:14:53 UTC
close this one as wontfix .. and we will see where you are on the other volume issue ... you may just have to do a repair on it via the vgcfgrestore tool.
Comment 11 Matteo Sasso 2006-04-20 15:02:25 UTC
WONTFIX, as suggested by Eric. Thanks! :)
Comment 12 Eric Edgar (RETIRED) gentoo-dev 2006-04-21 07:16:03 UTC
Ok this seems to be an issue with upstream .. I will mask these 2 ebuilds and see if I cant get upstream to give a reason as to why this is happening.

2.02.03 and 2.02.04 appear to have the same issue.
Comment 13 Eric Edgar (RETIRED) gentoo-dev 2006-04-21 11:17:33 UTC
This bug is fixed and should be resolved in lvm2-2.02.04-r1 and higher.  Upstream has the patch already applied and this ebuild backports the patch.

All data on your disk should be fine and lvm will continue to work as expected once you upgrade to this ebuild.
Comment 14 Eric Edgar (RETIRED) gentoo-dev 2006-04-24 11:08:45 UTC
2.02.05 is out .. and 2.02.04-r1 fixed the issue as well.
Comment 15 Matteo Sasso 2006-04-24 15:30:18 UTC
Yep, 2.02.04-r1 is working for me. It even fixed another problem, where the whole system would hang if I tried to lvremove an active snapshot LV (and couldn't lvchange it to deactivate it).

Tanks angain, Eric!