I'm trying to mound /dev/mapper/Volume01-lvusr on my fstab and found no such files and later found it was created as /dev/md-* After uncomment the 2 line on /etc/udev/rules.d/50-udev.rules KERNEL="dm-[0-9]*", NAME="" KERNEL="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c" It did help a bit the Logical Volume was created under /dev lrwxrwxrwx 1 root root 4 Apr 22 12:38 /dev/Volume00-lvroot -> dm-3 lrwxrwxrwx 1 root root 4 Apr 22 12:38 /dev/Volume00-lvusr -> dm-4 lrwxrwxrwx 1 root root 4 Apr 22 12:38 /dev/Volume00-lvvar -> dm-5 lrwxrwxrwx 1 root root 4 Apr 22 12:38 /dev/Volume01-lvroot -> dm-2 lrwxrwxrwx 1 root root 4 Apr 22 12:38 /dev/Volume01-lvusr -> dm-0 lrwxrwxrwx 1 root root 4 Apr 22 12:38 /dev/Volume01-lvvar -> dm-1 My Questions are 1) Why the link is not created under /dev/mapper/ ? 2) Why the Volume Group dir was not created? 3) When multipath-tools was emerge a new rules is added in udev does that change the way of 50-udev.rules playing, They seem to be doing the same jobs. Reproducible: Always Steps to Reproduce: 1. Start with Stage 3 installation 2. follow what the on the handbook and also the LVM guide 3. emerge lvm2, device-mapper, genkernel and multipath-tools 4. make change to you fstab and etc reboot sys-fs/udev-045 * sys-fs/multipath-tools-0.4.2 * sys-fs/sysfsutils-1.2.0 * sys-fs/cryptsetup-0.1-r1 * sys-fs/lvm2-2.00.33-r1 * sys-fs/e2fsprogs-1.37 * sys-fs/device-mapper-1.00.19-r2 * Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 i686) ================================================================= System uname: 2.6.11-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 1300MHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr 19 2005, 17:29:41)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -falign-functions=64 -mmmx -msse -msse2" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -falign-functions=64 -mmmx -msse -msse2" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg candy ccache distlocks fixpackages sandbox sfperms strict" GENTOO_MIRRORS="http://mymirror.asiaosc.org/gentoo/ http://mirror.gentoo.gr.jp/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage" USE="x86 X a52 aac acl acpi aim alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts bluetooth bonobo bzlib calendar caps ccache cdb cdparanoia cdr cjk crypt cups curl dbm dga dio doc dvd dvdr dvdread emboss encode esd ethereal exif fam fbcon ffmpeg flash foomaticdb gd gdbm gif gnome gnutls gpm gstreamer gtk gtk2 gtkhtml guile hal hardenedphp howl iconv icq imap imlib innodb iodbc jabber java javascript jpeg kde kerberos ldap libg++ libwww lm_sensors mad maildir mbox mhash mikmod milter mime ming mmx motif mozilla mp3 mpeg msn mysql mysqli ncurses nls ogg oggvorbis opengl oscar oss pam pcre pda pdflib perl php plotutils png posix postgres python qt quicktime readline samba sasl sdl server sockets socks5 speex spell sse ssl svga tcpd tiff tokenizer truetype truetype-fonts trusted type1-fonts unicode usb vcd vhosts vorbis wxwindows xine xml xml2 xmlrpc xmms xosd xprint xv xvid yahoo zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Find the Resolution. The file from multipath-tools /etc/udev/rules.d/40-multipath.rules Seem to be the problem. 1) If multipath-tools is not emerged /dev/Volume00/ will not be created because of lacking of /sbin/devmap_name 2) After multipath-tools is emerged the new rules apply and stop the Golume group to be working. Resolution Add one more line to the files. KERNEL="dm-[0-9]*", NAME="" before KERNEL="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c" A patch have been created.
Created attachment 56975 [details, diff] 40-multipath.rules Patch Different that will re create the Volume Group.
Please check with other and if there is any other reason for not using this. Checking this into sys-fs/multipath-tools will solve the problem.
Comment on attachment 56975 [details, diff] 40-multipath.rules Patch Not related...
Created attachment 56982 [details, diff] /etc/init.d/checkfs.diff Forget about comment 2 until 3. they are not related. What I do to solve the problem is to do more then once /sbin/vgchange then the /dev/Volumexx will be there. Don't know why maybe is a LVM bug. I've sys-fs/lvm2 static On /etc/portage/package.use Don't know if it is related... will reemerge later.
lvm issue, not a udev one.
What? Consider this solved and INVALID? I though this will be move to LVM2 BUG? Update... Reemerge lvm2 don't help.
Comment #7: Works just fine here. multipath-tools-0.4.2 udev-056 lvm2-2.00.33-r2 # ls -la /dev/mapper/ crw-rw---- 1 root root 10, 62 May 2 09:40 control brw-r----- 1 root root 254, 1 May 2 09:40 system-home brw-r----- 1 root root 254, 2 May 2 09:40 system-opt brw-r----- 1 root root 254, 3 May 2 09:40 system-tmp brw-r----- 1 root root 254, 5 May 2 09:40 system-usr brw-r----- 1 root root 254, 4 May 2 09:40 system-var # cat /etc/udev/rules.d/40-multipath.rules # multipath wants the devmaps presented as meaninglful device names # so name them after their devmap name KERNEL="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c" Did not uncomment anything in /etc/udev/rules.d/50-udev.rules
reopened as bug 96405
*** Bug 96405 has been marked as a duplicate of this bug. ***
Reopened wrt Bug 96405.
Please note I also upgraded my baselayout to baselayout-1.11.12-r4 from baselayout-1.9.4-r7 The file /etc/init.d/functions.sh which seems to handle volume mouting has been changed. The old one: maurice@thewarehouse2 init.d $ grep -rs lvm functions.sh maurice@thewarehouse2 init.d $ [nothing found] The new one: maurice@thewarehouse4 /etc/init.d $ grep -rs lvm functions.sh for x in ${RC_VOLUME_ORDER-raid evms lvm dm}; do for x in $(reverse_list ${RC_VOLUME_ORDER-raid evms lvm dm}); do maurice@thewarehouse2 init.d $ I think the bug has something to do with this change and not with lvm2 or udev.
lvm code has been moved out of checkfs and into /lib/rcscripts/addons/lvm-start.sh the posted patch is a hack workaround, not a real fix
Seem to be fixed in the new version...
I am experiencing a similiar problem to this. My lvm volume groups fails to be activated and therefore mounted on boot (via fstab). I have to enter vgchange -a y and then mount -a and then its perfect. Versions: device-mapper: 1.01.00 lvm2: 2.00.08 (I have had other problems with later versions) baselayout: 1.11.12-r4 /etc/conf.d/rc: RC_VOLUME_ORDER="lvm" Emerge info: Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r5n i686) ================================================================= System uname: 2.6.11-gentoo-r5n i686 AMD Athlon(tm) Gentoo Base System version 1.6.12 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Apr 28 2005, 16:15:01)] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.8.5-r3, 1.9.5, 1.5, 1.6.3, 1.4_p6, 1.7.9-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/glftpd/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://adelie.polymtl.ca/ http://mirrors.tds.net/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="x86 apm arts avi berkdb bitmap-fonts crypt emboss encode f77 foomaticdb fortran gdbm gif gpm gtk2 imlib ipv6 java junit libg++ libwww mad md5sum mikmod motif mp3 mpeg ncurses nls opengl oss pam pdflib perl python quicktime readline sdl slang spell ssl tcpd truetype truetype-fonts type1-fonts xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
I still see this problem device-mapper 1.01.04 lvm2 2.01.13 baselayout 1.11.13-r1 Should this bug be reopened? What else could be the cause? I have to manually activate my volume groups in local.start.