Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47381 - lvm2 do not umount correct
Summary: lvm2 do not umount correct
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-09 13:44 UTC by Antonio
Modified: 2004-06-29 09:58 UTC (History)
1 user (show)

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


Attachments
This is config (config-2.4.25-gentoo,31.80 KB, text/plain)
2004-04-15 04:21 UTC, Antonio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio 2004-04-09 13:44:14 UTC
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.
Comment 1 Jason Cox (RETIRED) gentoo-dev 2004-04-13 22:37:04 UTC
Which kernel is this on? Could you possibly attach the output of emerge info and your config file as well?
Comment 2 Antonio 2004-04-15 04:20:16 UTC
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"
Comment 3 Antonio 2004-04-15 04:21:24 UTC
Created attachment 29331 [details]
This is config

And this is my config for kernel gentoo-sources-2.4.25
Comment 4 Jason Cox (RETIRED) gentoo-dev 2004-05-08 14:20:00 UTC
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.
Comment 5 Antonio 2004-05-19 11:20:14 UTC
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
Comment 6 Thomas Jäger 2004-06-05 10:17:37 UTC
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

Comment 7 Thomas Jäger 2004-06-05 10:48:58 UTC
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 

Comment 8 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-06-21 13:48:30 UTC
as you've found a solution, I'm closing this.
Comment 9 Thomas Jäger 2004-06-29 09:58:32 UTC
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