Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 08-08-2006, 08:10 PM   #1
Slim Backwater
Registered: Nov 2005
Distribution: Slackware 10.2 2.6.20
Posts: 68

Rep: Reputation: 15
udev and missing lvm nodes in -current?

So how does this new udev work, and how do I get it to remember my lvm nodes in /dev?

I was running an older -current and updated today and had problems booting, although I did get a login prompt I couldn't login as root. I was able to login as my user account and su to root.

What happened is that I have lvm volumes for /var /usr /home /tmp and during bootup, during the mounting of fstab, I got errors about invalid device names. Basically my /dev is missing my 'main' volume group and the logical volumes in it.

After su'ing to root, I can run vgmknodes and then mount -a to get everything back, but on reboot, the entries in /dev are gone again.

I boot with an initrd and that works fine, even after I updated the lvm.static on it with the latest from -current. (and the lvm pv is on a s/w raid-1 so I also updated mdadm)

It's just my /dev entries for my lvm volumes are missing.

I think I'm going to try and edit rc.S, and change where it calls vgscan, to vgscan --mknodes, but there's gotta be a better 'udev' way to do this.




*Edit: is this it? I have to edit /etc/udev/50-udev.rules?

*Edit #2: Found in udev.rules:
# No dmsetup in slackware by default (LVM2 is in testing)
#KERNEL=="dm-[0-9]*", ACTION=="add", PROGRAM="/sbin/dmsetup info -c --noopencount
 --noheadings -o name -j %M -m %m", SYMLINK+="disk/by-name/%c"
so I uncommented that line, rebooted, still failed to mount but I have my LVM entries in /dev now. What's missing is the DM nodes! Calling `dmsetup mknodes` fixes that; but now I'm on the track of finding out the 'udev' way of doing that.

Last edited by Slim Backwater; 08-09-2006 at 08:14 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
nVidia udev nodes in gentoo superkav Linux - Hardware 3 02-08-2006 06:18 PM
udev not creating nodes. for sound, etc. gooball Slackware 1 10-21-2005 01:30 AM
udev doesn't create scd* device nodes for scsi cdrom kejava Slackware 3 09-15-2005 02:04 PM
missing /dev/i2c nodes puremourning Linux - Software 0 02-23-2005 09:10 PM
missing nodes in /dev with 2.6.5 d3c3it Debian 2 04-18-2004 02:27 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration