LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-16-2006, 02:22 AM   #1
RoloThomasee
LQ Newbie
 
Registered: Dec 2005
Distribution: Slackware
Posts: 4

Rep: Reputation: 0
Problem with LVM on Slackware 10.2


Trying to get LVM working on Slackware 10.2. Have compiled LVM support into the kernel (also tried it as module). Installed LVM2 and device-mapper using the installpkg tool.

Re-compiled kernel works fine except that when I try to run any of the LVM related commands it says to try running vgsacn first. Of course vgscan tells me the LVM drivers are not loaded.

I see lots of posts with the "LVM drivers not loaded?" issue but no solutions.

This should be this hard. Can anyone help?
 
Old 03-16-2006, 04:22 AM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Are you using kernel 2.4 or 2.6?
 
Old 03-16-2006, 08:45 AM   #3
RoloThomasee
LQ Newbie
 
Registered: Dec 2005
Distribution: Slackware
Posts: 4

Original Poster
Rep: Reputation: 0
Using 2.6.15.6
 
Old 03-16-2006, 12:21 PM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
I am running LVM2 with kernel 2.6.13.4 with these settings:
Code:
# Multi-device support (RAID and LVM)
#
CONFIG_MD=y
CONFIG_BLK_DEV_MD=m
CONFIG_MD_LINEAR=m
CONFIG_MD_RAID0=m
CONFIG_MD_RAID1=m
CONFIG_MD_RAID10=m
CONFIG_MD_RAID5=m
CONFIG_MD_RAID6=m
CONFIG_MD_MULTIPATH=m
CONFIG_MD_FAULTY=m
CONFIG_BLK_DEV_DM=m
CONFIG_DM_CRYPT=m
CONFIG_DM_SNAPSHOT=m
CONFIG_DM_MIRROR=m
CONFIG_DM_ZERO=m
CONFIG_DM_MULTIPATH=m
CONFIG_DM_MULTIPATH_EMC=m
I have done nothing special other than
- installing device mapper and lvm2 from /testing
- created a disk partition with type 8E
- created a physical volume, then a volume group, then the logical volumes (and a vgscan somewhere inbetween).

I'd suggest that you recompile a kernel with the above settings, then we can go on step by step.
 
Old 03-16-2006, 11:48 PM   #5
RoloThomasee
LQ Newbie
 
Registered: Dec 2005
Distribution: Slackware
Posts: 4

Original Poster
Rep: Reputation: 0
It helps to use the correct packages.

I re-compiled with your config settings, installed the device-mapper and LVM2 from /testing (I got device-mapper and LVM2 from somewhere else the first time around...big mistake). Re-installed and rebooted. So far so good.

Had already set up my /dev/hdb with 4 partitions (type 8E). Created physical volumes for each /dev/hdb1 thru 4. No problem. Created a volume group, no problem.

When I tried to create a logical volume using root# lvcreate -L500M -n test group1 I just got the usage listing (as if I had typed lvcreate --help).

Ran "lvcreate --version" and it said it couldn't find the device-mapper in the kernel. I manually loaded the device-mapper driver (insmod dm-mod.ko). Re-tried creating a logical volume and everything worked as advertised.

Now I guess I just need to set up my /etc files so everything gets loaded, configured, and correctly mounted at boot time.

Thanks for your help!
 
Old 03-17-2006, 01:16 AM   #6
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Slackware's init scripts will do it automatically if they find an LVM2 config file. Try a `grep -i lvm /etc/rc.d/*` as root to find the relevant sections.

Apart from that, you should only have to add a line to /etc/fstab.

Glad it worked.
 
  


Reply


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
Installing Slackware 10.2 on an LVM Partition darkarcon2015 Slackware - Installation 10 02-07-2006 04:19 PM
installing Slackware 10.2 w/ Kernel 2.6 and LVM alphahawk Slackware 4 12-05-2005 01:49 PM
LVM messages in Slackware satinet Slackware 2 11-25-2005 04:57 PM
LVM install in slackware? cybrjackle Slackware 7 10-01-2003 07:02 PM
LVM, Slackware 8.1, Adaptec 3940UW, IBM harddrives dokhebi Linux - Software 3 01-03-2003 10:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:28 AM.

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