LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-06-2004, 10:47 AM   #1
zepplin611
Member
 
Registered: Jan 2004
Distribution: AIX 4.3 RH 7,8,9 / Fedora C1/
Posts: 187

Rep: Reputation: 30
LVM in Fedora C2


I am attempting my first usage of the LVM, on a fresh install of FC2 --> kernel: 2.6.5-1.358.

I have the following rpm installed for LVM: lvm2-2.00.15-2

I have used: pvcreate /dev/hdb and pvcreate /dev/hdc

then I entered: vgcreate vg1 /dev/hdb /dev/hdc ---> output was: "Volume group "vg1" successfully
created"

Then I entered: lvcreate -L 250000M vg1 -n samba (to create a logical volume of the size: 250GB,
called samba) --->

the output here:

/dev/mapper/control: open failed: No such file or directory
Is device-mapper driver missing from kernel?
Failed to activate new LV.


Any tips to why this is giving this error? Are there any apps that need to be installed to stop
this error?

All help is greatly appreciated!!!

zepp
 
Old 10-06-2004, 02:00 PM   #2
robbinsd
LQ Newbie
 
Registered: May 2004
Posts: 4

Rep: Reputation: 0
check that the lvm kernel module is loaded
lsmod
look for lvm-mod
I'm a nube with LVM, here's a pretty good howto

http://www-106.ibm.com/developerwork...ry/l-lvm2.html
 
Old 10-06-2004, 02:09 PM   #3
robbinsd
LQ Newbie
 
Registered: May 2004
Posts: 4

Rep: Reputation: 0
doing a little more reading
you load the device mapper module like this

modprobe dm-mod

I haven't had to do this step, it just worked
what distro you using?
 
Old 10-06-2004, 02:18 PM   #4
zepplin611
Member
 
Registered: Jan 2004
Distribution: AIX 4.3 RH 7,8,9 / Fedora C1/
Posts: 187

Original Poster
Rep: Reputation: 30
output of lsmod:

Module Size Used by
snd_mixer_oss 13824 0
snd 38372 1 snd_mixer_oss
soundcore 6112 1 snd
autofs4 10624 0
sunrpc 101064 1
3c59x 30376 0
ipt_state 1536 9
iptable_filter 2048 1
iptable_nat 17452 0
ip_conntrack 24968 2 ipt_state,iptable_nat
ip_tables 13440 3 ipt_state,iptable_filter,iptable_nat
floppy 47440 0
sg 27552 0
scsi_mod 91344 1 sg
dm_mod 33184 0
ohci_hcd 14748 0
button 4504 0
battery 6924 0
asus_acpi 8472 0
ac 3340 0
ipv6 184288 12
ext3 102376 2
jbd 40216 1 ext3


dm_mod is listed...

As my above listing mentions, i'm using Fedora C2.


So my problem still exists...I am getting the device mapper error...any thoughts?


Last edited by zepplin611; 10-06-2004 at 02:19 PM.
 
Old 10-06-2004, 02:36 PM   #5
robbinsd
LQ Newbie
 
Registered: May 2004
Posts: 4

Rep: Reputation: 0
I'm running FC1 so it's somewhat different
this looks like it might be helpfull

http://www.tldp.org/HOWTO/LVM-HOWTO/lvm2faq.html#AEN249
 
Old 10-06-2004, 02:46 PM   #6
zepplin611
Member
 
Registered: Jan 2004
Distribution: AIX 4.3 RH 7,8,9 / Fedora C1/
Posts: 187

Original Poster
Rep: Reputation: 30
thanks again for the help robbins...

I did what was listed in that url and a different problem is occurring:

root@server :] lvcreate -l 500 vg1 -n samba
device-mapper ioctl cmd 9 failed: Invalid argument
Couldn't load device 'vg1-samba'.
Failed to activate new LV.

but when i type: lvdisplay I get the following:


--- Logical volume ---
LV Name /dev/vg1/samba
VG Name vg1
LV UUID TTLXfg-dVXq-NmIP-kUKg-sZUw-46fr-nZCCOF
LV Write Access read/write
LV Status available
# open 0
LV Size 1.95 GB
Current LE 500
Segments 1
Allocation next free (default)
Read ahead sectors 0
Block device 253:0


so if the LV is ACTIVE, why do the errors occur??

thanks again...

zepp
 
Old 10-06-2004, 04:17 PM   #7
robbinsd
LQ Newbie
 
Registered: May 2004
Posts: 4

Rep: Reputation: 0
I googled your error and saw some stuff that might indicate people aren't real happy with LVM in the FC2 kernel

http://mail.plug.linux.org.au/piperm...ch/050829.html

I tried with no success to setup FC2 and couldn't get the networking to work to save my life
sticking with FC1 for now
like I said, I'm a newbie to LVM but it's working pretty sweetly for me
good luck
 
Old 10-12-2004, 04:43 PM   #8
zepplin611
Member
 
Registered: Jan 2004
Distribution: AIX 4.3 RH 7,8,9 / Fedora C1/
Posts: 187

Original Poster
Rep: Reputation: 30
thanks again for your help robbinsd...
I did manage to find a solution to my problem.

I updated the kernel (using yum update) and other packages on my system.

I'm not certain it was the kernel update that did it, but after the yum update (and alot
of packages were updated) the lvcreate command worked like a charm!!!!

thanks again

zepp
 
  


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
lvm anyone? puffinman Linux - Software 2 06-26-2005 12:07 PM
Slack/Fedora dual-boot using LVM Phaete Fedora 3 04-14-2005 05:13 PM
Lvm uselpa Slackware 1 03-03-2005 06:44 AM
How to install Fedora without LVM pembo13 Fedora 4 12-27-2004 03:44 PM
To LVM or not to LVM? illtbagu Linux - Software 3 12-29-2003 05:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:41 PM.

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