Re: [gentoo-user] root on EVMS, evms_activate, checkroot, rw/ro mount, gah

2006-10-14 Thread Michael [Plouj] Ploujnikov

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



Re: [gentoo-user] root on EVMS, evms_activate, checkroot, rw/ro mount, gah

2006-10-14 Thread Michael [Plouj] Ploujnikov

On 10/14/06, Richard Fish <[EMAIL PROTECTED]> wrote:

On 10/13/06, Michael [Plouj] Ploujnikov <[EMAIL PROTECTED]> 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



Re: [gentoo-user] root on EVMS, evms_activate, checkroot, rw/ro mount, gah

2006-10-14 Thread Richard Fish

On 10/13/06, Michael [Plouj] Ploujnikov <[EMAIL PROTECTED]> 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



[gentoo-user] root on EVMS, evms_activate, checkroot, rw/ro mount, gah

2006-10-13 Thread Michael [Plouj] Ploujnikov

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