public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: [gentoo-dev] baselayout 1.8.2 breaks lvm
  2002-08-26 22:53 [gentoo-dev] baselayout 1.8.2 breaks lvm Yrjö Hatakka
@ 2002-08-26 20:58 ` Martin Schlemmer
  2002-08-26 21:42   ` Dominik Westner
  2002-08-27  7:45   ` Yrjö Hatakka
  2002-08-27  7:12 ` Thomas M. Beaudry
  1 sibling, 2 replies; 10+ messages in thread
From: Martin Schlemmer @ 2002-08-26 20:58 UTC (permalink / raw
  To: Yrjö Hatakka; +Cc: Gentoo-Dev

On Tue, 2002-08-27 at 00:53, Yrjö Hatakka wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> After updating to baselayout 1.8.2 boot failed because chkfs could activate my
> lvm partitions
> 
> problem is here at line that says:
> if [ -x /sbin/vgscan -a -d /proc/lvm ]
> 
> well /proc/lvm doesnt exist when lvm is compiled as a module and not yet 
> loaded. I added modprobe -av lvm-mod above that line
> - -- 

AAAAAHHHHHHHHHH :P

And the last guy promised this is the right way (tm).

so if we add before that line:

-----------------snip----------------------
/sbin/modprobe -a lvm-mod &>/dev/null || :
-----------------snip----------------------

it will fix it for you ?


-- 

Martin Schlemmer
Gentoo Linux Developer, Desktop Team Developer
Cape Town, South Africa




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

* Re: [gentoo-dev] baselayout 1.8.2 breaks lvm
  2002-08-26 20:58 ` Martin Schlemmer
@ 2002-08-26 21:42   ` Dominik Westner
  2002-08-27  7:05     ` Thomas M. Beaudry
  2002-08-27 21:23     ` Martin Schlemmer
  2002-08-27  7:45   ` Yrjö Hatakka
  1 sibling, 2 replies; 10+ messages in thread
From: Dominik Westner @ 2002-08-26 21:42 UTC (permalink / raw
  To: Martin Schlemmer; +Cc: Yrjö Hatakka, Gentoo-Dev

In the first place I think lvm and raidstart shouldn't be in there at 
all, but have separate init scripts.
I use evmns, but still have lvm and raidtools installed. This is a 
little bit annoying, because one gets errors messages during startup.

Dominik


On Montag, August 26, 2002, at 10:58 PM, Martin Schlemmer wrote:

> On Tue, 2002-08-27 at 00:53, Yrjö Hatakka wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>>
>> After updating to baselayout 1.8.2 boot failed because chkfs could 
>> activate my
>> lvm partitions
>>
>> problem is here at line that says:
>> if [ -x /sbin/vgscan -a -d /proc/lvm ]
>>
>> well /proc/lvm doesnt exist when lvm is compiled as a module and not 
>> yet
>> loaded. I added modprobe -av lvm-mod above that line
>> - --
>
> AAAAAHHHHHHHHHH :P
>
> And the last guy promised this is the right way (tm).
>
> so if we add before that line:
>
> -----------------snip----------------------
> /sbin/modprobe -a lvm-mod &>/dev/null || :
> -----------------snip----------------------
>
> it will fix it for you ?
>
>
> -- 
>
> Martin Schlemmer
> Gentoo Linux Developer, Desktop Team Developer
> Cape Town, South Africa
>
>
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev



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

* [gentoo-dev] baselayout 1.8.2 breaks lvm
@ 2002-08-26 22:53 Yrjö Hatakka
  2002-08-26 20:58 ` Martin Schlemmer
  2002-08-27  7:12 ` Thomas M. Beaudry
  0 siblings, 2 replies; 10+ messages in thread
From: Yrjö Hatakka @ 2002-08-26 22:53 UTC (permalink / raw
  To: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


After updating to baselayout 1.8.2 boot failed because chkfs could activate my
lvm partitions

problem is here at line that says:
if [ -x /sbin/vgscan -a -d /proc/lvm ]

well /proc/lvm doesnt exist when lvm is compiled as a module and not yet 
loaded. I added modprobe -av lvm-mod above that line
- -- 
Linux cartman.linux.home 2.4.19-gentoo-r7 #1 Fri Jul 5 00:45:50 EEST 2002 i686 
AuthenticAMD 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9arFX6BYkNNMD2uARAr0jAJ41ZEk1+lCwa9ElMx7ZaFgkOps9tACfSnvB
xTPEEkh9wkBC/wNXUbTFS9w=
=2umi
-----END PGP SIGNATURE-----




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

* Re: [gentoo-dev] baselayout 1.8.2 breaks lvm
  2002-08-26 21:42   ` Dominik Westner
@ 2002-08-27  7:05     ` Thomas M. Beaudry
  2002-08-27 21:34       ` Martin Schlemmer
  2002-08-27 21:23     ` Martin Schlemmer
  1 sibling, 1 reply; 10+ messages in thread
From: Thomas M. Beaudry @ 2002-08-27  7:05 UTC (permalink / raw
  To: Dominik Westner; +Cc: Martin Schlemmer, Yrjö Hatakka, Gentoo-Dev

I agree, I haven't seen a *nix with these in the main startup script
even if the box always had, for example, RAID.

I would suggest, at the minimum, if you're going to leave them in the
script to surround them with an "if" statement controlled by a variable
in /etc/conf.d/rc indicating whether it's installed or not.


> In the first place I think lvm and raidstart shouldn't be in there at 
> all, but have separate init scripts.
> I use evmns, but still have lvm and raidtools installed. This is a 
> little bit annoying, because one gets errors messages during startup.
> 
> Dominik
> 
> 
>>>
>>> After updating to baselayout 1.8.2 boot failed because chkfs could 
>>> activate my
>>> lvm partitions
>>>
>>> problem is here at line that says:
>>> if [ -x /sbin/vgscan -a -d /proc/lvm ]
>>>
>>> well /proc/lvm doesnt exist when lvm is compiled as a module and not yet
>>> loaded. I added modprobe -av lvm-mod above that line
>>> - --
>>
>>
>> AAAAAHHHHHHHHHH :P
>>
>> And the last guy promised this is the right way (tm).
>>
>> so if we add before that line:
>>
>> -----------------snip----------------------
>> /sbin/modprobe -a lvm-mod &>/dev/null || :
>> -----------------snip----------------------
>>
>> it will fix it for you ?
>>
>> -- 
>>
>> Martin Schlemmer
>> Gentoo Linux Developer, Desktop Team Developer
>> Cape Town, South Africa

-- 
Thomas M. Beaudry
k8la / ys1ztm

If at first you don't succeed, work for Microsoft.



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

* Re: [gentoo-dev] baselayout 1.8.2 breaks lvm
  2002-08-26 22:53 [gentoo-dev] baselayout 1.8.2 breaks lvm Yrjö Hatakka
  2002-08-26 20:58 ` Martin Schlemmer
@ 2002-08-27  7:12 ` Thomas M. Beaudry
  2002-08-27 19:20   ` Yrjö Hatakka
  1 sibling, 1 reply; 10+ messages in thread
From: Thomas M. Beaudry @ 2002-08-27  7:12 UTC (permalink / raw
  To: Yrjö Hatakka; +Cc: gentoo-dev

Question out of curiosity:

Why do you have lvm support compiled as a module?  To me it doesn't buy
you any advantages that I can see and has a few disadvantages.  Such as
every module that has to be loaded increases your boot time by a small
amount, more to possibly go wrong with a module, and I understand that
modules are a security risk.  Since it has to be loaded all the time
anyway, seems to make more sense having it inside the kernel.


> After updating to baselayout 1.8.2 boot failed because chkfs could activate my
> lvm partitions
> 
> problem is here at line that says:
> if [ -x /sbin/vgscan -a -d /proc/lvm ]
> 
> well /proc/lvm doesnt exist when lvm is compiled as a module and not yet 
> loaded. I added modprobe -av lvm-mod above that line
> - -- 
> Linux cartman.linux.home 2.4.19-gentoo-r7 #1 Fri Jul 5 00:45:50 EEST 2002 i686 
> AuthenticAMD

-- 
Thomas M. Beaudry
k8la / ys1ztm

If at first you don't succeed, work for Microsoft.



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

* Re: [gentoo-dev] baselayout 1.8.2 breaks lvm
  2002-08-26 20:58 ` Martin Schlemmer
  2002-08-26 21:42   ` Dominik Westner
@ 2002-08-27  7:45   ` Yrjö Hatakka
  1 sibling, 0 replies; 10+ messages in thread
From: Yrjö Hatakka @ 2002-08-27  7:45 UTC (permalink / raw
  To: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> so if we add before that line:
>
> -----------------snip----------------------
> /sbin/modprobe -a lvm-mod &>/dev/null || :
> -----------------snip----------------------
>
> it will fix it for you ?

Yes, that would do the trick ;)

- -- 
Linux cartman.linux.home 2.4.19-gentoo-r7 #1 Fri Jul 5 00:45:50 EEST 2002 i686 
AuthenticAMD 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9ay4S6BYkNNMD2uARAuoDAJ9wzdOrtQ5a3bCxgsicNUH4w7AKowCgjCNB
8GLfYIsrNe2KTj8ZkF3HAlY=
=SHR6
-----END PGP SIGNATURE-----




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

* Re: [gentoo-dev] baselayout 1.8.2 breaks lvm
  2002-08-27  7:12 ` Thomas M. Beaudry
@ 2002-08-27 19:20   ` Yrjö Hatakka
  0 siblings, 0 replies; 10+ messages in thread
From: Yrjö Hatakka @ 2002-08-27 19:20 UTC (permalink / raw
  To: Thomas M. Beaudry; +Cc: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 27 August 2002 07:12, Thomas M. Beaudry wrote:
> Question out of curiosity:
>
> Why do you have lvm support compiled as a module?  To me it doesn't buy
> you any advantages that I can see and has a few disadvantages.  Such as
> every module that has to be loaded increases your boot time by a small
> amount, more to possibly go wrong with a module, and I understand that
> modules are a security risk.  Since it has to be loaded all the time
> anyway, seems to make more sense having it inside the kernel.

No particular reason, I have just used to compile everything as a module that 
can be. Bad habit perhaps :)

- -- 
Linux cartman.linux.home 2.4.19-gentoo-r7 #1 Fri Jul 5 00:45:50 EEST 2002 i686 
AuthenticAMD 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9a9EE6BYkNNMD2uARAmV/AJ47T0i65vbHdB8vLl595kqfwmWCkgCeOSBx
YCcwzEJSYs1RPXzcUDwCRmY=
=fi6P
-----END PGP SIGNATURE-----




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

* Re: [gentoo-dev] baselayout 1.8.2 breaks lvm
  2002-08-26 21:42   ` Dominik Westner
  2002-08-27  7:05     ` Thomas M. Beaudry
@ 2002-08-27 21:23     ` Martin Schlemmer
  2002-08-27 21:43       ` Dominik Westner
  1 sibling, 1 reply; 10+ messages in thread
From: Martin Schlemmer @ 2002-08-27 21:23 UTC (permalink / raw
  To: Dominik Westner; +Cc: Yrjö Hatakka, Gentoo-Dev

On Mon, 2002-08-26 at 23:42, Dominik Westner wrote:
> In the first place I think lvm and raidstart shouldn't be in there at 
> all, but have separate init scripts.

Guess we will all have our own opinions, but out of a
stability/maintaince stance is it easier the way it is.

> I use evmns, but still have lvm and raidtools installed. This is a 
> little bit annoying, because one gets errors messages during startup.
> 

Why do you get error messages ?  When you uninstall the LVM and Raid
stuff ?  How so ?  Last time I checked, '[ -x /bin/foo ]' tested if
a file existed and is executable ....


-- 

Martin Schlemmer
Gentoo Linux Developer, Desktop Team Developer
Cape Town, South Africa




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

* Re: [gentoo-dev] baselayout 1.8.2 breaks lvm
  2002-08-27  7:05     ` Thomas M. Beaudry
@ 2002-08-27 21:34       ` Martin Schlemmer
  0 siblings, 0 replies; 10+ messages in thread
From: Martin Schlemmer @ 2002-08-27 21:34 UTC (permalink / raw
  To: Thomas M. Beaudry; +Cc: Gentoo-Dev

On Tue, 2002-08-27 at 09:05, Thomas M. Beaudry wrote:
> I agree, I haven't seen a *nix with these in the main startup script
> even if the box always had, for example, RAID.
> 
> I would suggest, at the minimum, if you're going to leave them in the
> script to surround them with an "if" statement controlled by a variable
> in /etc/conf.d/rc indicating whether it's installed or not.
> 

Did you even look at the script ?  I might be wrong here, but last
time I checked, it was not even in the "main" startup script, but in
/etc/init.d/checkfs.  Actually, the last time I looked, our "main" one
was not even in /etc/init.d.

I guess you also havent looked at many Distro's startup scripts ?
Do yourself a favour and look at /etc/rc.sysinit of mandrake or redhat.

------------------------------snip----------------------------------
azarah@nosferatu etc $ grep lvm rc.sysinit 
if [ -x /sbin/vgchange -a -f /etc/lvmtab ]; then
#         which can't be done before "vgscan" (which writes to
/etc/lvmtab)
azarah@nosferatu etc $ grep raid rc.sysinit
# Add raid devices
if [ -f /proc/mdstat -a -f /etc/raidtab ]; then
	for i in `grep "^[^*]*raiddev" /etc/raidtab | awk '{print $2}'`
			# If not, try raidstart...if that fails then
			# fall back to raidadd, raidrun.  If that
			if [ $RESULT -gt 0 -a -x /sbin/raidstart ]; then
				/sbin/raidstart $i
			if [ $RESULT -gt 0 -a -x /sbin/raid0run ]; then
				/sbin/raid0run $i
			if [ $RESULT -gt 0 -a -x /sbin/raidadd -a -x /sbin/raidrun ]; then
				/sbin/raidadd $i
				/sbin/raidrun $i
azarah@nosferatu etc $ 
-------------------------------------------------------------------

Anyhow, I am sure we all have something better to worry about.


-- 

Martin Schlemmer
Gentoo Linux Developer, Desktop Team Developer
Cape Town, South Africa




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

* Re: [gentoo-dev] baselayout 1.8.2 breaks lvm
  2002-08-27 21:23     ` Martin Schlemmer
@ 2002-08-27 21:43       ` Dominik Westner
  0 siblings, 0 replies; 10+ messages in thread
From: Dominik Westner @ 2002-08-27 21:43 UTC (permalink / raw
  To: Martin Schlemmer; +Cc: Gentoo-Dev, Yrjö Hatakka

Hi Martin,

mea culpa, sorry exactly this seemed to be fixed in 1.8.2.

in sys-apps/baselayout-1.7.9-r1 there was no check for /proc/lvm now it 
is.
So this is fine for me ;-)

dominik

PS: I should really check the particular version before commenting on 
it, sorry for the waste of bandwidth.

On Dienstag, August 27, 2002, at 11:23 PM, Martin Schlemmer wrote:

> On Mon, 2002-08-26 at 23:42, Dominik Westner wrote:
>> In the first place I think lvm and raidstart shouldn't be in there at
>> all, but have separate init scripts.
>
> Guess we will all have our own opinions, but out of a
> stability/maintaince stance is it easier the way it is.
>
>> I use evmns, but still have lvm and raidtools installed. This is a
>> little bit annoying, because one gets errors messages during startup.
>>
>
> Why do you get error messages ?  When you uninstall the LVM and Raid
> stuff ?  How so ?  Last time I checked, '[ -x /bin/foo ]' tested if
> a file existed and is executable ....
>
>
> -- 
>
> Martin Schlemmer
> Gentoo Linux Developer, Desktop Team Developer
> Cape Town, South Africa
>
>



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

end of thread, other threads:[~2002-08-27 21:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-26 22:53 [gentoo-dev] baselayout 1.8.2 breaks lvm Yrjö Hatakka
2002-08-26 20:58 ` Martin Schlemmer
2002-08-26 21:42   ` Dominik Westner
2002-08-27  7:05     ` Thomas M. Beaudry
2002-08-27 21:34       ` Martin Schlemmer
2002-08-27 21:23     ` Martin Schlemmer
2002-08-27 21:43       ` Dominik Westner
2002-08-27  7:45   ` Yrjö Hatakka
2002-08-27  7:12 ` Thomas M. Beaudry
2002-08-27 19:20   ` Yrjö Hatakka

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