Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo on lvm root
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
jessinio
n00b
n00b


Joined: 04 Jan 2010
Posts: 3
Location: china

PostPosted: Mon Apr 26, 2010 4:17 pm    Post subject: gentoo on lvm root Reply with quote

hi , all

before I had installed gentoo on ext3 file system and it work well.

Now, I try to install it on LVM (root file sytem) , but have trouble

My partitions is:

Device Boot Start End Blocks Id System
/dev/sda1 * 1 100 803218+ 83 Linux
/dev/sda2 101 30401 243392782+ 8e Linux LVM

* /dev/sda1 is my boot partition

and My LVM volumes list:
ACTIVE '/dev/sg250/ubuntu' [20.00 GB] inherit
ACTIVE '/dev/sg250/swap' [1.00 GB] inherit
ACTIVE '/dev/sg250/data' [100.00 GB] inherit
ACTIVE '/dev/sg250/gentoo' [20.00 GB] inherit

I had selected "Device mapper suppor" before compile kernel , but the kernel report can't mount root filesystem ERROR on boot

I search on web and find out: linux kernel need lvm module on boot when it mount LVM partition. this time, linux kernel need initrd.img file.

So, I read over the mkinitrd script code, and find out: My new system did NOT have dm-mod ! Look mkinitrd script code slice:

if [ -x /sbin/dmsetup -a -e /dev/mapper/control ]; then
dmout=$(/sbin/dmsetup ls 2>/dev/null)
if [ "$dmout" != "No devices found" -a "$dmout" != "" ]; then
findmodule -dm-mod
fi
fi



I CAN'T find "-dm-mod" ON MY disk:

# find /lib/modules -name "*dm-mod*"



I NEED YOUR HELP!

how to get the dm-mod module or compile it ?

MY kernel verion is 2.6.32.2

thanks!


jessinio AT gmail DOT com
_________________
Good programmer know how to write his want,
Great programmer know how to rewrite his want.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Mon Apr 26, 2010 8:37 pm    Post subject: Reply with quote

you probably have dm-mod as a built-in, rather than a module

can you dump your kernel .config up on pastebin so we can have a look?
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
jessinio
n00b
n00b


Joined: 04 Jan 2010
Posts: 3
Location: china

PostPosted: Tue Apr 27, 2010 9:13 am    Post subject: Reply with quote

cach0rr0 wrote:
you probably have dm-mod as a built-in, rather than a module

can you dump your kernel .config up on pastebin so we can have a look?


.config very large and I can't upload it in this forum.

Can you tell me some key words to search .config file and paste search result on forum ?
_________________
Good programmer know how to write his want,
Great programmer know how to rewrite his want.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Tue Apr 27, 2010 10:22 am    Post subject: Reply with quote

jessinio wrote:
cach0rr0 wrote:
you probably have dm-mod as a built-in, rather than a module

can you dump your kernel .config up on pastebin so we can have a look?


.config very large and I can't upload it in this forum.

Can you tell me some key words to search .config file and paste search result on forum ?


that was the bit about pastebin. dump the entirety on pastebin.com, share the link with us

or, emerge wgetpaste, and

Code:

zcat /proc/config.gz | wgetpaste


share that link

Specifically this is the item we're looking for:

Code:

 CONFIG_BLK_DEV_DM:
  │
  │ Device-mapper is a low level volume manager.  It works by allowing
  │ people to specify mappings for ranges of logical sectors.  Various
  │ mapping types are available, in addition people may write their own
  │ modules containing custom mappings if they wish.
  │
  │ Higher level volume managers such as LVM2 use this driver.
  │
  │ To compile this as a module, choose M here: the module will be
  │ called dm-mod.
  │
  │ If unsure, say N.   


'course that only addresses that one item. Dumping the whole .config somewhere would be helpful if not for that immediate issue, for working through the rest of it
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
jessinio
n00b
n00b


Joined: 04 Jan 2010
Posts: 3
Location: china

PostPosted: Tue Apr 27, 2010 12:05 pm    Post subject: Reply with quote

thanks YOUR replay, My .config file context:

http://pastebin.com/PbLAyZNj
_________________
Good programmer know how to write his want,
Great programmer know how to rewrite his want.
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Thu Apr 29, 2010 7:01 am    Post subject: Reply with quote

Perhaps you can try rebuilding your initrd? Do you have /sbin/dmsetup available?

Perhaps you could also post any error messages/symptoms if possible?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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