Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/dev/mapper empty. udev or mdev fault ?
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
Darwish
n00b
n00b


Joined: 13 May 2011
Posts: 15

PostPosted: Sun May 22, 2011 9:22 am    Post subject: /dev/mapper empty. udev or mdev fault ? Reply with quote

Hi.
I'm in the installation and configuration of gentoo for several days now. It looks like a clever linux distribution but I dont understand how it's possible to get a LiveCD with plenty of autodection perfectly up and running, but no automated procedure to get the system operationnal on my hard drive without hours of configuration and a few call for help.

The laptop is a Sony VaioZ with 2 SSD drives in raid 0. fakeraid (intel controller)
I compiled a 2.6.38 kernel.
the baselayout 2 has been emerged.

I boot with "dodmraid" as argument to the kernel.
The root partition gets mounted.
mdev starts.
Everything under /dev/mapper disappear, and apparently, udev populate /dev/ with /dev/dm-0 to 10.

openRC mostly fails because the device aren't available. Linux starts in degradated mode.

# I can NOT mount maually any of the /dev/dm-x drive. This throws a /dev/mapper/isw_...VolumeX not found. The root partition is mounted, but the device file is no longer reachable.

dmraid -ay fails stating it's already started

I read tons of documents to understand what I am doing. The single clue I have at this point is that mdev or udev are responsible for this error.

On a first shot to install gentoo on this laptop, I was thrown to the shell during root'partition detection time, still the /dev/mapper/ directory was ok.

any idea or shall I just pick an other distro ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54270
Location: 56N 3W

PostPosted: Sun May 22, 2011 12:26 pm    Post subject: Reply with quote

Darwish,

dm-raid is not straight forward to set up and there are lots of reasons for not using it.
The only reason to use dm-raid in Linux is that windows must share the raid set.
For a linux only install, kernel raid is a much better choice.

It sounds like there is a problem with the handover from your initrd root to your real root.
The initrd must load the dm-raid module for your kernel and start dm-raid or your root would not mount.

At the piviot root step, right at the end of the initrd init script, your real root becomes root. At that instant, only root is mounted, /dev is not populated and udev has not even been started.
Its just the kernel and its real_root filesystem.

Look at rc-update show and ensure you have device-mapper in the boot runlevel. I have a feeling that its been merged with lvm, so if you don't have device-mapper at all, use lvm.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Darwish
n00b
n00b


Joined: 13 May 2011
Posts: 15

PostPosted: Sun May 22, 2011 1:18 pm    Post subject: Reply with quote

Thank you very much NeddySeagoon, you saved my day.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21649

PostPosted: Sun May 22, 2011 11:42 pm    Post subject: Reply with quote

Darwish wrote:
Thank you very much NeddySeagoon, you saved my day.
For the benefit of future readers, could you explain what key changes you made after reading Neddy's post? I suspect it is the remark about installing lvm, but would prefer to get this recorded explicitly.
Back to top
View user's profile Send private message
Darwish
n00b
n00b


Joined: 13 May 2011
Posts: 15

PostPosted: Mon May 23, 2011 9:03 am    Post subject: Reply with quote

I followed Neddy's intuition
# rc-update
Showed the device-mapper was missing at the boot run level.
# rc-update add lvm boot
did the magic
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