hw-tph,
YO. I finally found the solution (let me say it again...i think
You see I was getting the following error whenever I tried to make a logical volume on one of my volume groups...
" /dev/mapper/control : open failed : No such file or directory .
Is device mapper mapped to kernel ? "
So anyway I found the info below in the sistina pipermail forums. If it is any help to anyone else trying out LVM2, thats cool!
#############################################
Did you compile device mapper as a module or into the kernel?
Here I have compile them into the kernel directly. You must add this =
line into your /etc/modules.conf:
post-install dm-mod /etc/rc.d/init.d/devmap_mknod.sh
And the script /etc/rc.d/init.d/devmap_mknod.sh is next:
#! /bin/sh
# Startup script to create the device-mapper control device
# on non-devfs systems.
# Non-zero exit status indicates failure.
# These must correspond to the definitions in device-mapper.h and dm.h
DM_DIR=3D"mapper"
DM_NAME=3D"device-mapper"
set -e
DIR=3D"/dev/$DM_DIR"
CONTROL=3D"$DIR/control"
# Check for devfs, procfs
if test -e /dev/.devfsd ; then
echo "devfs detected: devmap_mknod.sh script not required."
exit
fi
if test ! -e /proc/devices ; then
echo "procfs not found: please create $CONTROL manually."
exit 1
fi
# Get major, minor, and mknod
MAJOR=3D$(sed -n 's/^ *\([0-9]\+\) \+misc$/\1/p' /proc/devices)
MINOR=3D$(sed -n "s/^ *\([0-9]\+\) \+$DM_NAME\$/\1/p" /proc/misc)
if test -z "$MAJOR" -o -z "$MINOR" ; then
echo "$DM_NAME kernel module not loaded: can't create $CONTROL."
exit 1
fi
mkdir -p --mode=3D755 $DIR
test -e $CONTROL && rm -f $CONTROL
echo "Creating $CONTROL character device with major:$MAJOR =
minor:$MINOR."
mknod --mode=3D600 $CONTROL c $MAJOR $MINOR
With that everything works fine. If you use them as a module, I'm not =
sure, but I think that you will have to add it into your rc.local, or =
create a startup script for devmap_mknod.sh, but I'm not really sure =
about that.
###########################################
So I am almost positive that this is it because I have not compiled devfs into my kernel. I specifically remember not selecting it since we can always use lspci. Well, I might try compiling it in now just to see if it fixes things or maybe I will go ahead and use the above. Let you know. (Im a geek. Free time during the holidays...what do you expect?)
Later