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? |
Are you using kernel 2.4 or 2.6?
|
Using 2.6.15.6
|
I am running LVM2 with kernel 2.6.13.4 with these settings:
Code:
# Multi-device support (RAID and LVM) - 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. |
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! |
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. |
All times are GMT -5. The time now is 01:59 PM. |