If install the lvm2 when shutdown the system i have error when umount lvm. This problem exist when i do not config the lvm disk in my system. With lvm-user this problem not exist Reproducible: Always Steps to Reproduce: 1. 2. 3.
Which kernel is this on? Could you possibly attach the output of emerge info and your config file as well?
This is my emerge info: Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-gentoo) ================================================================= System uname: 2.4.25-gentoo i686 AMD Athlon(tm) XP 1700+ Gentoo Base System version 1.4.8 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /etc/tomcat /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /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/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://sunsite.cnlab-switch.ch/mirror/gentoo/ ftp://planetmirror.com/pub/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X X509 aalib acl acpi acpi4linux afs alsa apache2 apm arts autofs avi berkdb bonobo cddb cdr clamav crypt cups curl dillo doc dv dvb dvd dvdr encode esd evms2 faad fam ffmpeg flac foomaticdb gd gdbm ggi gif gnome gnomedb gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib jabber java javascript jpeg kde ldirectord libdsk libg++ libgda libwww mad mbox mikmod mmx motif mozilla mpeg mpeg4 mysql nas ncurses net nls nvidia oav odbc oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline ruby samba scanner sdl slang spell ssl svga tcltk tcpd tetex tiff transcode truetype type1 usb v4l virus-scan x86 xfs xine xml2 xmms xv zlib"
Created attachment 29331 [details] This is config And this is my config for kernel gentoo-sources-2.4.25
I believe the problem is that lvm2 is for 2.6 kernels, while lvm is for 2.4 kernels. Could you possibly try a 2.6 kernel (gentoo-dev-sources) and let me know how it goes.
I have emerge gentoo-dev-sources and installed but when use lvm2 utility with module for raid i see segmentation fault. I return to gentoo-sources-2.4.25-r2
Shutting down lvm2 fails: error message: Locking type 1 initialisation failed It seem's that there is still one logical volume active, so it's not possible to deactivate the volume group. I think the "var" volume mounted on /var is still mounted. After restarting the "var" volume isn't clean and has to be corrected (the var volume is using an ext3 filesystem) my config: kernel 2.6.6 baselayout 1.9.4-r1 lvm2-2.00.08
Sorry, i've found the solution for my problem: I'm using lvm2 file-based locking (locking_type=1) in /etc/lvm/lvm.conf. The locking_dir is default /var/lock/lvm So, when shutting down lvm2, lvm2 is still using the /var volume, the /var volume cannot be umounted. The locking_dir has to be on a non-logical volume directory
as you've found a solution, I'm closing this.
Sorry, The problem is still there, but the problem isn't lvm itself. After some more detail investigations i found a problem with a process which is still running at the shutting down process - bonobo-activation-server