Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[device mapper] LVM failure due to device-mapper
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
paper83
n00b
n00b


Joined: 26 Mar 2008
Posts: 2

PostPosted: Thu Mar 27, 2008 9:00 am    Post subject: [device mapper] LVM failure due to device-mapper Reply with quote

Hello,

I'm trying to set up basic lvm array with 2 drives. Both are 250gb (WD & Seagate).
My drives are /dev/sda3 & /dev/sdb1.

when I try to execute command 'lvcreate' I get:

Code:
  /dev/mapper/control: stat failed: Too many levels of symbolic links
  /dev/mapper/control: mknod failed: File exists
  Failure to communicate with kernel device-mapper driver.
  striped: Required device-mapper target(s) not detected in your kernel
  lvcreate: Create a logical volume


Driver for device-mapper is ofcourse loaded into kernel. I also tried it as module, load it; result was the same.

Code:
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.12.0-ioctl (2007-10-02) initialised: dm-devel@redhat.com
device-mapper: multipath: version 1.0.5 loaded
device-mapper: multipath round-robin: version 1.0.0 loaded
device-mapper: multipath emc: version 0.0.3 loaded
device-mapper: multipath hp-sw: version 1.0.0 loaded
device-mapper: multipath rdac: rdac: version 0.4 loaded


I noticed one strange thing though, /dev/mapper/control is linked to itself and link seems to be broken (blinking).

Code:
Raven / # ll /dev/mapper/control
lrwxrwxrwx 1 root root 7 Mar 26  2008 /dev/mapper/control -> control


On my other box where things are working as intended, /dev/mapper/control is linked to /dev/device-mapper.
On this box with problems /dev/device-mapper does not exist.

I've got latest packages from stable arch, running on 2.6.24-gentoo-r3:
[ebuild R ] sys-fs/udev-115-r1
[ebuild R ] sys-fs/device-mapper-1.02.22-r5

Any help is greatly appreciated,
-Matija
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Thu Mar 27, 2008 9:14 am    Post subject: Reply with quote

Hmm, double check the kernel config... failing that, try an older kernel version... I can't believe they would have messed something up that breaks device mapper that badly though. Maybe enable some extra raid options and things like that just to make sure the support gets built.

Another idea, use mknod to create the missing device and re-link the other one (copy the major/minor numbers from your working machine)
Back to top
View user's profile Send private message
paper83
n00b
n00b


Joined: 26 Mar 2008
Posts: 2

PostPosted: Thu Mar 27, 2008 9:52 am    Post subject: Reply with quote

I tried with older kernels aswell, no luck.

After friend suggested me to rebuild udev and revdep-rebuild, mapper started working. Actually does make sense ;)

Problem solved.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum