public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] root on EVMS, evms_activate, checkroot, rw/ro mount, gah
@ 2006-10-14  3:19 Michael [Plouj] Ploujnikov
  2006-10-14 11:25 ` [gentoo-user] " Michael [Plouj] Ploujnikov
  2006-10-14 20:19 ` [gentoo-user] " Richard Fish
  0 siblings, 2 replies; 5+ messages in thread
From: Michael [Plouj] Ploujnikov @ 2006-10-14  3:19 UTC (permalink / raw
  To: gentoo-user

I'll start by presenting some info about my system. You'll find the
actual problems (numbered) in the middle of this message.

I have my root file system on RAID 1
I use an initrd image to get my system going. The image was simply taken from:
http://sourceforge.net/project/showfiles.php?group_id=25076

I have added:

mount / -n -o remount,rw
[[ -z ${CDBOOT} ]] && start_addon evms

to /etc/init.d/checkroot
and removed anything evms related from /etc/init.d/checkfs

There are a few problems when I boot though:

1. the above "mount" command prints this:

mount: /dev/evms/system already mounted or / busy
mount: according to mtab, rootfs is already mounted on /

so the root fs isn't mounted read-only, and thus EVMS isn't protected
from other running instances:

Engine: Unable to open the ENgine lock file /var/locks/evms-engine:
Read-only file system. The Engine is not protected against other
instances of the Engine being opened at the same time.

2. It gets worse because I see:
"Activating EVMS" at least once after the checkroot script finishes running.

I cannot find where this might be coming from.
I went as far as commenting out:

start_addon dm-crypt

from /etc/init.d/localmount, but I still didn't find what is
activating EVMS unnecessarily.



Any help is appreciated.

-- 
()  ASCII Ribbon Campaign
/\  - against HTML mail & vCards
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [gentoo-user] Re: root on EVMS, evms_activate, checkroot, rw/ro mount, gah
  2006-10-14  3:19 [gentoo-user] root on EVMS, evms_activate, checkroot, rw/ro mount, gah Michael [Plouj] Ploujnikov
@ 2006-10-14 11:25 ` Michael [Plouj] Ploujnikov
  2006-10-14 20:19 ` [gentoo-user] " Richard Fish
  1 sibling, 0 replies; 5+ messages in thread
From: Michael [Plouj] Ploujnikov @ 2006-10-14 11:25 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 131 bytes --]

Oh, and here is a phot of the boot process to make it a bit clear.

-- 
()  ASCII Ribbon Campaign
/\  - against HTML mail & vCards

[-- Attachment #2: evms.jpg --]
[-- Type: image/jpeg, Size: 106085 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] root on EVMS, evms_activate, checkroot, rw/ro mount, gah
  2006-10-14  3:19 [gentoo-user] root on EVMS, evms_activate, checkroot, rw/ro mount, gah Michael [Plouj] Ploujnikov
  2006-10-14 11:25 ` [gentoo-user] " Michael [Plouj] Ploujnikov
@ 2006-10-14 20:19 ` Richard Fish
  2006-10-14 22:18   ` Michael [Plouj] Ploujnikov
  1 sibling, 1 reply; 5+ messages in thread
From: Richard Fish @ 2006-10-14 20:19 UTC (permalink / raw
  To: gentoo-user

On 10/13/06, Michael [Plouj] Ploujnikov <ploujj@gmail.com> wrote:
> I'll start by presenting some info about my system. You'll find the
> actual problems (numbered) in the middle of this message.
>
> I have my root file system on RAID 1
> I use an initrd image to get my system going. The image was simply taken from:
> http://sourceforge.net/project/showfiles.php?group_id=25076
>
> I have added:
>
> mount / -n -o remount,rw
> [[ -z ${CDBOOT} ]] && start_addon evms

Hmm, why was this necessary?  In baselayout 1.12.5-r2, the checkroot
script will already remount the root filesystem as rw if necessary,
and the /sbin/rc script will do a "start_addon evms" after starting
checkroot and modules, if evms appears in RC_VOLUME_ORDER in
/etc/conf.d/rc.

> to /etc/init.d/checkroot
> and removed anything evms related from /etc/init.d/checkfs

My checkfs doesn't have anything related to evms to begin with...

> mount: /dev/evms/system already mounted or / busy
> mount: according to mtab, rootfs is already mounted on /

Could it have already been activated by the initrd?

> 2. It gets worse because I see:
> "Activating EVMS" at least once after the checkroot script finishes running.
>
> I cannot find where this might be coming from.

Probably because you have evms in RC_VOLUME_ORDER in /etc/conf.d/rc,
which causes /sbin/rc to do a "start_addon evms" right after
checkroot.

-Richard
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] root on EVMS, evms_activate, checkroot, rw/ro mount, gah
  2006-10-14 20:19 ` [gentoo-user] " Richard Fish
@ 2006-10-14 22:18   ` Michael [Plouj] Ploujnikov
  2006-10-14 22:26     ` Michael [Plouj] Ploujnikov
  0 siblings, 1 reply; 5+ messages in thread
From: Michael [Plouj] Ploujnikov @ 2006-10-14 22:18 UTC (permalink / raw
  To: gentoo-user

On 10/14/06, Richard Fish <bigfish@asmallpond.org> wrote:
> On 10/13/06, Michael [Plouj] Ploujnikov <ploujj@gmail.com> wrote:
> > I'll start by presenting some info about my system. You'll find the
> > actual problems (numbered) in the middle of this message.
> >
> > I have my root file system on RAID 1
> > I use an initrd image to get my system going. The image was simply taken from:
> > http://sourceforge.net/project/showfiles.php?group_id=25076
> >
> > I have added:
> >
> > mount / -n -o remount,rw
> > [[ -z ${CDBOOT} ]] && start_addon evms
>
> Hmm, why was this necessary?
I just got that from:
http://gentoo-wiki.com/HOWTO_setup_evms
(I'll try to fix the HOWTO once I figure out how to setup my system)

> In baselayout 1.12.5-r2,
(thankfully that's the baselayout version I have)

> the checkroot
> script will already remount the root filesystem as rw if necessary,
> and the /sbin/rc script will do a "start_addon evms" after starting
> checkroot and modules, if evms appears in RC_VOLUME_ORDER in
> /etc/conf.d/rc.
>
> > to /etc/init.d/checkroot
> > and removed anything evms related from /etc/init.d/checkfs
>
> My checkfs doesn't have anything related to evms to begin with...
Yeah, neither does mine. I was just referring to what the wiki HOWTO said.


>
> > mount: /dev/evms/system already mounted or / busy
> > mount: according to mtab, rootfs is already mounted on /
>
> Could it have already been activated by the initrd?
I'm not sure what you mean by activated. I think this message results
from this code:

mount / -n -o remount,rw

which tries to remount root read-write. If you mean that root was
already mounted by the initrd, you are right.


> > 2. It gets worse because I see:
> > "Activating EVMS" at least once after the checkroot script finishes running.
> >
> > I cannot find where this might be coming from.
>
> Probably because you have evms in RC_VOLUME_ORDER in /etc/conf.d/rc,
> which causes /sbin/rc to do a "start_addon evms" right after
> checkroot.

Actually, "evms" is all I have in RC_VOLUME_ORDER in /etc/conf.d/rc


I'll try to remove the EVMS activation from checkroot now and see how
that works.



Thanks.
-- 
()  ASCII Ribbon Campaign
/\  - against HTML mail & vCards
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] root on EVMS, evms_activate, checkroot, rw/ro mount, gah
  2006-10-14 22:18   ` Michael [Plouj] Ploujnikov
@ 2006-10-14 22:26     ` Michael [Plouj] Ploujnikov
  0 siblings, 0 replies; 5+ messages in thread
From: Michael [Plouj] Ploujnikov @ 2006-10-14 22:26 UTC (permalink / raw
  To: gentoo-user

> Actually, "evms" is all I have in RC_VOLUME_ORDER in /etc/conf.d/rc
>
>
> I'll try to remove the EVMS activation from checkroot now and see how
> that works.

Wow, it looks like doing this fixed all the problems. No re-mounting
tricks. EVMS gets activated  once, and on a writeable filesystem.
Thanks a lot Richard. Now I'll see about cleaning up the wiki HOWTO.


-- 
()  ASCII Ribbon Campaign
/\  - against HTML mail & vCards
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-10-14 22:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-14  3:19 [gentoo-user] root on EVMS, evms_activate, checkroot, rw/ro mount, gah Michael [Plouj] Ploujnikov
2006-10-14 11:25 ` [gentoo-user] " Michael [Plouj] Ploujnikov
2006-10-14 20:19 ` [gentoo-user] " Richard Fish
2006-10-14 22:18   ` Michael [Plouj] Ploujnikov
2006-10-14 22:26     ` Michael [Plouj] Ploujnikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox