Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Initrd cannot find volume group [SOLVED]
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
binro
Guru
Guru


Joined: 06 May 2005
Posts: 513
Location: Bangkok, Thailand

PostPosted: Sun May 08, 2011 4:53 pm    Post subject: Initrd cannot find volume group [SOLVED] Reply with quote

My install has got to the stage of the first boot but it fails because the initrd program gets to the "Scanning for Volume Groups" stage and then can't find any. I have obviously created them and when I boot on the install CD, "vgscan --mknodes" finds the VG immediately. The initrd program was created with "genkernel --lvm ..." in the usual way. I can't think what I have done wrong!

TIA
_________________
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling


Last edited by binro on Wed May 11, 2011 8:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 8600

PostPosted: Sun May 08, 2011 5:13 pm    Post subject: Reply with quote

Are you sure that the new kernel has the modules required to operate your hard drives? You could have device nodes for the drives present, but without the supporting code, attempts to open those nodes will fail.
Back to top
View user's profile Send private message
binro
Guru
Guru


Joined: 06 May 2005
Posts: 513
Location: Bangkok, Thailand

PostPosted: Sun May 08, 2011 5:32 pm    Post subject: Reply with quote

Hu wrote:
Are you sure that the new kernel has the modules required to operate your hard drives? You could have device nodes for the drives present, but without the supporting code, attempts to open those nodes will fail.

dm-mod is under /lib/modules. I used a kernel config from another system that uses LVM. That's why I am stuck, since I just repeated what I had done before.
_________________
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
Back to top
View user's profile Send private message
tomk
Administrator
Administrator


Joined: 23 Sep 2003
Posts: 7219
Location: Sat in front of my computer

PostPosted: Mon May 09, 2011 3:30 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Kernel & Hardware.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
binro
Guru
Guru


Joined: 06 May 2005
Posts: 513
Location: Bangkok, Thailand

PostPosted: Tue May 10, 2011 11:11 pm    Post subject: Reply with quote

I found this http://us.generation-nt.com/bug-619010-linux-image-2-6-38-1-686-bigmem-fails-boot-lvm2-looks-system-help-202616242.html and I have a T510 so I installed a 2.6.37-r4 kernel but got exactly the same result.

I give up. I will revert to standard partitions.
_________________
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 8600

PostPosted: Wed May 11, 2011 2:18 am    Post subject: Reply with quote

Root on LVM works fine for me. If you drop to a shell in the initramfs, can you read the contents of the hard disk nodes?
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


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

PostPosted: Wed May 11, 2011 6:14 am    Post subject: Reply with quote

you will probably be better off doing a manual kernel configuration, and manually creating an initramfs to handle scanning/initializing your lvm volume groups

genkernel, at least in my experience, does not seem to do well with thinks like luks, lvm, etc as root.

The manual route is not as difficult as it may sound/seem - if you do try this, folks will be happy to help if you get stuck or have questions.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
binro
Guru
Guru


Joined: 06 May 2005
Posts: 513
Location: Bangkok, Thailand

PostPosted: Wed May 11, 2011 8:03 pm    Post subject: Reply with quote

The kernel is RYO and that was the problem. I used a config from another machine and the SATA drive was slightly different, I needed the AHCI platform. Rebuilding the kernel with that solved the problem and the machine rebooted, finally! Phew.

Thanks for the suggestions.
_________________
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
Back to top
View user's profile Send private message
binro
Guru
Guru


Joined: 06 May 2005
Posts: 513
Location: Bangkok, Thailand

PostPosted: Fri May 13, 2011 9:02 am    Post subject: Reply with quote

As an addendum, the post I found above was correct. When I got the boot going it was using a 2.6.37-r4 kernel; when I tried 2.6.38 with the same config the kernel could not see the SATA drive. This seems a peculiarity of ThinkPad T510s.
_________________
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
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