Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
EVMS boot problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
scorgatelli
n00b
n00b


Joined: 02 Jan 2006
Posts: 3

PostPosted: Mon Jan 02, 2006 11:21 pm    Post subject: EVMS boot problems Reply with quote

I'm in the process of setting up a new gentoo (2005.1) box and decided to use evms. I generally followed the evms wiki guide (http://gentoo-wiki.com/HOWTO_setup_evms) except I didn't use any of the raid stuff since I currently only have one disk.

I've got it all set up but cannot boot into my box. When I boot up, the initrd appears to work fine. Evms is activated and the root directory is mounted. However when the boot process gets to the checkroot stage it fails complaining that /dev/evms/root could not be found. After logging in at the debug prompt, I check and the root directory appears to be mounted but there are no devices listed in /dev/evms.

I've reviewed other posts, and it seems that there are other people having the problem. I've tried a bunch of the suggestions that I've found with no luck. Here is some of the things I've tried:


  • Created the /initrd directory
  • Added start_volumes to /etc/init.d/checkroot
  • Set RC_VOLUME_ORDER="evms"
  • Applied the bd_claim patch (from the evms package)


I've also tried remounting the root directory as read/write and running evms_activate. This didn't help either. When I run evmsn from the debug console all I get is the pluggins screen. No devices, volumes, etc. I've also tried activating evms from within the chrooted install environment with no luck. (I don't know if this matters, but inside the chrooted environment /dev/evms is also empty). So, in short, EVMS works great from the LiveCD and the initrd, but no where else.

I'm using the 2005.1 Universal install, gentoo-sources-2.6.12-r10 and genkernel to compile the kernel and create the initrd. I'm running under the AMD64 architecture.

I probably just missed something. Any help is appreciated.

Thanks,
Shane
Back to top
View user's profile Send private message
Tarch
n00b
n00b


Joined: 27 Apr 2005
Posts: 42

PostPosted: Tue Jan 03, 2006 10:43 pm    Post subject: Reply with quote

Bye I'm able to get the evms working without the genkernel script, I modified a script that I found to create the right initrd (maybe I can post it so you can try with that). Can you post some output or maybe a screenshot taken with a digital camera (you can use imageshack.us to host freely the images). Can you post something more about the configuration of your pc?

Bye! =) 8O
Back to top
View user's profile Send private message
vputz
Guru
Guru


Joined: 16 Mar 2005
Posts: 310
Location: Oxford, England

PostPosted: Tue Jan 03, 2006 11:10 pm    Post subject: Reply with quote

Shane--

I just finished converting two existing gentoo installations to EVMS (icnluding one which like yours has the boot drive under EVMS).

What was happening to me is, like in your setup, the initrd worked but once things hit checkroot, the whole operation bombed. The key to me was that the bomb referred to my root partition as /dev/evms/hda3 when it was really supposed to be named /dev/evms/root.

There's a note at the bottom of the "howto setup EVMS" wiki page (http://gentoo-wiki.com/HOWTO_setup_evms) which has you put the line "[[ -z ${CDBOOT} ]] && start_volumes" into /etc/init.d/checkroot. This worked for me and the machine boots beautifully. Give that a shot (see the wiki, bottom of the page, "Change Checkroot").

-->VPutz
Back to top
View user's profile Send private message
scorgatelli
n00b
n00b


Joined: 02 Jan 2006
Posts: 3

PostPosted: Sat Jan 07, 2006 11:05 pm    Post subject: Reply with quote

We'll see how this works. I'm posting from links.

Tarch, I've tried putting start_volumes in the checkroot script. Didn't do any good. I have also tried putting the same thing in /sbin/rc in the populate_udev function again with no luck.

vputz, I would be very interested in trying the script that you used to generate the initrd. So far I've tried the genkernel as well as the generic initrd provided on the evms website. Neither have worked and I get the same failure with both of them. I get to the checkroot stage and it says that /dev/evms/root is not found or that it has a bad superblock. When I log in to the debugging prompt /dev/evms/root is not there, but the root filesystem is mounted.

I'm not sure exactly what information your looking for, so I hope the following helps.

Linux: gentoo-sources-2.6.13-r5
I've enabled the following relevant items in the kernel config:
Code:

Multiple devices driver support
  raid support
   linear
   raid-0
   raid-1
   raid-10
   raid-5
   multipath i/o support
  device mapper support
   snapshot target
   mirror target

(All are compiled in, no modules)

EVMS: 2.5.3-r1
I have the following volumes set up (all are reported as active):

Code:

/dev/evms/boot  ext2/3
/dev/evms/hda1  ntfs
/dev/evms/hda2
/dev/evms/home  ext2/3
/dev/evms/media ext2/3
/dev/evms/root  ext2/3
/dev/evms/swap  swapfs


The hda1 and hda2 volumes are from WinXP (I'm currently dual booting).

boot is just a simple volume over a single segment.

The home, media, and root volumes are all lvm2 storage regions in the lvm2 container called 'main' with 110 GB of free space.

EVMS: 2.5.3-r1
Back to top
View user's profile Send private message
jschellhaass
Guru
Guru


Joined: 20 Jan 2004
Posts: 341

PostPosted: Tue Jan 17, 2006 5:09 pm    Post subject: Reply with quote

Did you ever resolve this problem?

jeff
Back to top
View user's profile Send private message
oizone
n00b
n00b


Joined: 11 Feb 2004
Posts: 55
Location: Finland

PostPosted: Tue Jan 17, 2006 9:11 pm    Post subject: Reply with quote

My workaround (a bit dirty but works) was to modify the begininning of /etc/init.d/checkroot from:
Code:
 start() {
        local retval=0

        if [[ ! -f /fastboot && -z ${CDBOOT} ]] && ! is_net_fs / ; then

to
Code:
start() {
        local retval=0
        mount -o remount,rw /
        evms_activate

        if [[ ! -f /fastboot && -z ${CDBOOT} ]] && ! is_net_fs / ; then
Back to top
View user's profile Send private message
jschellhaass
Guru
Guru


Joined: 20 Jan 2004
Posts: 341

PostPosted: Tue Jan 17, 2006 9:35 pm    Post subject: Reply with quote

If you boot from the livecd with doevms2 on the boot line would evms be activated properly or did it require an evms_activate command after it booted?

jeff
Back to top
View user's profile Send private message
oizone
n00b
n00b


Joined: 11 Feb 2004
Posts: 55
Location: Finland

PostPosted: Wed Jan 18, 2006 1:02 pm    Post subject: Reply with quote

Quote:
If you boot from the livecd with doevms2 on the boot line would evms be activated properly or did it require an evms_activate command after it booted?


I've never tried livecd with doevms2 I've allways used evms_active after booting livecd.
Back to top
View user's profile Send private message
scorgatelli
n00b
n00b


Joined: 02 Jan 2006
Posts: 3

PostPosted: Wed Jan 18, 2006 10:40 pm    Post subject: Reply with quote

I finally got this working. I've listed what I did below.


  • I upgraded to the latest unstable base-layout. I found from the evms mail list that this incorporates the necessary evms activation stuff. I think all this did was make it so I didn't have to edit my checkroot init script manually.
  • I removed my /etc/mtab file. The gentoo install docs said to copy /proc/mounts to /etc/mtab before running grub-install. I did this but didn't remove the mtab file after. When I rebooted the mtab never had a chance to get overwritten (I think because of the evms failures) and so when I ran mount it showed all of the livecd stuff as still being mounted.
  • EVMS still failed at this point so I logged in under the debugging prompt and ran the following:
    Code:

    mount -o remount,rw /
    evms-activate

    Previously this failed to work, but after removing the bad mtab file (as described above) evms-activate worked fine and created the correct device nodes.
  • Rebooted.


After that everything has worked fine.

Thanks for the help.

-Shane
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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