All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] vgscan && vgchange -ay at startup
@ 2001-08-21 11:00 Ulrich Wiederhold
  2001-08-21 12:04 ` AJ Lewis
  0 siblings, 1 reply; 9+ messages in thread
From: Ulrich Wiederhold @ 2001-08-21 11:00 UTC (permalink / raw)
  To: linux-lvm

Hello,
if I reboot, the file /etc/rcS.d/S25lvm failed to find and activate my
vg.
I suppose that´s because the shutdown of the vg fails. (Not umounted all
before?)

Anybody else had this problems with debian unstable?
Uli

-- 
'The box said, 'Requires Windows 95 or better', so i installed Linux - TKK 5

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

* Re: [linux-lvm] vgscan && vgchange -ay at startup
  2001-08-21 11:00 [linux-lvm] vgscan && vgchange -ay at startup Ulrich Wiederhold
@ 2001-08-21 12:04 ` AJ Lewis
  2001-08-21 13:03   ` Ulrich Wiederhold
  2001-08-21 13:53   ` Michael Tokarev
  0 siblings, 2 replies; 9+ messages in thread
From: AJ Lewis @ 2001-08-21 12:04 UTC (permalink / raw)
  To: linux-lvm

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

On Tue, Aug 21, 2001 at 01:00:33PM +0200, Ulrich Wiederhold wrote:
> Hello,
> if I reboot, the file /etc/rcS.d/S25lvm failed to find and activate my
> vg.
> I suppose that´s because the shutdown of the vg fails. (Not umounted all
> before?)

Hmm...the shutdown shouldn't matter.  I rarely run vgchange -an on my
systems (I have LVM as root, so there really is no way to do it...)

> Anybody else had this problems with debian unstable?

There's a good chance that your startup script is running either before root
is mounted read/write (in which case the LVM tools can't write to /etc) or
before /proc is mounted (which is less likely because this usually just
makes vgscan really slow, not fail).  Check your init scripts and verify
that root is writable before the S25lvm script runs.

Regards,
-- 
AJ Lewis
Sistina Software Inc.                  Voice:  612-638-0500
1313 5th St SE, Suite 111              Fax:    612-638-0500
Minneapolis, MN 55414                  E-Mail: lewis@sistina.com
http://www.sistina.com

Current GPG fingerprint = 3B5F 6011 5216 76A5 2F6B  52A0 941E 1261 0029 2648
Get my key at: http://www.sistina.com/~lewis/gpgkey
 (Unfortunately, the PKS-type keyservers do not work with multiple sub-keys)

-----Begin Obligatory Humorous Quote----------------------------------------
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
-----End Obligatory Humorous Quote------------------------------------------

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

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

* Re: [linux-lvm] vgscan && vgchange -ay at startup
  2001-08-21 12:04 ` AJ Lewis
@ 2001-08-21 13:03   ` Ulrich Wiederhold
  2001-08-21 13:53   ` Michael Tokarev
  1 sibling, 0 replies; 9+ messages in thread
From: Ulrich Wiederhold @ 2001-08-21 13:03 UTC (permalink / raw)
  To: linux-lvm

Hello,
* AJ Lewis <lewis@sistina.com> [010821 14:04]:
> On Tue, Aug 21, 2001 at 01:00:33PM +0200, Ulrich Wiederhold wrote:
> 
> > Anybody else had this problems with debian unstable?
> 
> There's a good chance that your startup script is running either before root
> is mounted read/write (in which case the LVM tools can't write to /etc) or
> before /proc is mounted (which is less likely because this usually just
> makes vgscan really slow, not fail).  Check your init scripts and verify
> that root is writable before the S25lvm script runs.

I thaught about this problem too and disabled the "read-only" entry in
/etc/lilo.conf, this hasn´t solved the problem.

Now I looked into /etc/rcS.d/ and found out that root in mounted ro in
S10checkroot.sh together with /proc.
Lvm runs in S25lvm and I think root will be mount rw in S35mountall.sh,
so I think it´s a bug in the debian-packages.
Right?

Thanks.
Uli


-- 
'The box said, 'Requires Windows 95 or better', so i installed Linux - TKK 5

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

* Re: [linux-lvm] vgscan && vgchange -ay at startup
  2001-08-21 12:04 ` AJ Lewis
  2001-08-21 13:03   ` Ulrich Wiederhold
@ 2001-08-21 13:53   ` Michael Tokarev
  2001-08-21 14:00     ` Goetz Bock
  1 sibling, 1 reply; 9+ messages in thread
From: Michael Tokarev @ 2001-08-21 13:53 UTC (permalink / raw)
  To: linux-lvm

AJ Lewis wrote:
> 
[]
> There's a good chance that your startup script is running either before root
> is mounted read/write (in which case the LVM tools can't write to /etc) or

But how to have root mounted read-only?
I resolved problem with only one file that needs to be read-write --
it is /etc/mtab that I moved out to /var/run (modified glibc and
mount itself).  So my root is now read-only at all times.  But how
to deal with lvm?  Should I move /etc/lvm* to /var also?

Regards,
 Michael.

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

* Re: [linux-lvm] vgscan && vgchange -ay at startup
  2001-08-21 13:53   ` Michael Tokarev
@ 2001-08-21 14:00     ` Goetz Bock
  2001-08-21 16:22       ` AJ Lewis
  0 siblings, 1 reply; 9+ messages in thread
From: Goetz Bock @ 2001-08-21 14:00 UTC (permalink / raw)
  To: linux-lvm

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


On Tue, Aug 21 '01 at 17:53, Michael Tokarev wrote:
> But how to have root mounted read-only?
> I resolved problem with only one file that needs to be read-write --
> it is /etc/mtab that I moved out to /var/run (modified glibc and
this should be fixable with making /etc/mtab a link to /proc/mounts

> mount itself).  So my root is now read-only at all times.  But how
> to deal with lvm?  Should I move /etc/lvm* to /var also?
The ideal solution would be to have LVM not write any files at all and
do everything in memory. If I want to make a backup (e.g. when changing
anything) either make the meta data journaling or save the backup to
some where in /var

just my Û0.02 (soon equal to $0.02, btw on my mac this is an euro sign)
    
But, I won't complain. LVM rocks as it is and I'm happy with it. 
-- 
Goetz Bock                                              IT Consultant
Dipl.-Inf. Univ.

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

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

* Re: [linux-lvm] vgscan && vgchange -ay at startup
  2001-08-21 14:00     ` Goetz Bock
@ 2001-08-21 16:22       ` AJ Lewis
  2001-08-21 17:08         ` Patrick Caulfield
  2001-08-22  9:31         ` Mark van Walraven
  0 siblings, 2 replies; 9+ messages in thread
From: AJ Lewis @ 2001-08-21 16:22 UTC (permalink / raw)
  To: linux-lvm

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

On Tue, Aug 21, 2001 at 04:00:12PM +0200, Goetz Bock wrote:
> 
> On Tue, Aug 21 '01 at 17:53, Michael Tokarev wrote:
> > But how to have root mounted read-only?
> > I resolved problem with only one file that needs to be read-write --
> > it is /etc/mtab that I moved out to /var/run (modified glibc and
> this should be fixable with making /etc/mtab a link to /proc/mounts

I've done this on my system for about a month it seems to work fine.

> > mount itself).  So my root is now read-only at all times.  But how
> > to deal with lvm?  Should I move /etc/lvm* to /var also?
> The ideal solution would be to have LVM not write any files at all and
> do everything in memory. If I want to make a backup (e.g. when changing
> anything) either make the meta data journaling or save the backup to
> some where in /var
> 
> just my Û0.02 (soon equal to $0.02, btw on my mac this is an euro sign)

Yeah, that's in the works for the development version of LVM, but the 1.0x
series will likely always have the files in /etc.  I agree that it is better
not to have it write files by default, or at least not rely on them being
written out.

> But, I won't complain. LVM rocks as it is and I'm happy with it. 

:)

-- 
AJ Lewis
Sistina Software Inc.                  Voice:  612-638-0500
1313 5th St SE, Suite 111              Fax:    612-638-0500
Minneapolis, MN 55414                  E-Mail: lewis@sistina.com
http://www.sistina.com

Current GPG fingerprint = 3B5F 6011 5216 76A5 2F6B  52A0 941E 1261 0029 2648
Get my key at: http://www.sistina.com/~lewis/gpgkey
 (Unfortunately, the PKS-type keyservers do not work with multiple sub-keys)

-----Begin Obligatory Humorous Quote----------------------------------------
A computer without a Microsoft operating system is like a dog without bricks
tied to its head.
-----End Obligatory Humorous Quote------------------------------------------

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

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

* Re: [linux-lvm] vgscan && vgchange -ay at startup
  2001-08-21 16:22       ` AJ Lewis
@ 2001-08-21 17:08         ` Patrick Caulfield
  2001-08-22  9:31         ` Mark van Walraven
  1 sibling, 0 replies; 9+ messages in thread
From: Patrick Caulfield @ 2001-08-21 17:08 UTC (permalink / raw)
  To: linux-lvm

On Tue, Aug 21, 2001 at 11:22:52AM -0500, AJ Lewis wrote:
> On Tue, Aug 21, 2001 at 04:00:12PM +0200, Goetz Bock wrote:
> > 
> > On Tue, Aug 21 '01 at 17:53, Michael Tokarev wrote:
> > > But how to have root mounted read-only?
> > > I resolved problem with only one file that needs to be read-write --
> > > it is /etc/mtab that I moved out to /var/run (modified glibc and
> > this should be fixable with making /etc/mtab a link to /proc/mounts
> 
> I've done this on my system for about a month it seems to work fine.

Apparently there are problems with loopback mounts if you do this, but if that's
not an issue it should be fine.

patrick

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

* Re: [linux-lvm] vgscan && vgchange -ay at startup
  2001-08-21 16:22       ` AJ Lewis
  2001-08-21 17:08         ` Patrick Caulfield
@ 2001-08-22  9:31         ` Mark van Walraven
  2001-08-23 20:42           ` Heinz J . Mauelshagen
  1 sibling, 1 reply; 9+ messages in thread
From: Mark van Walraven @ 2001-08-22  9:31 UTC (permalink / raw)
  To: linux-lvm

On Tue, Aug 21, 2001 at 11:22:52AM -0500, AJ Lewis wrote:
> Yeah, that's in the works for the development version of LVM, but the 1.0x
> series will likely always have the files in /etc.  I agree that it is better
> not to have it write files by default, or at least not rely on them being
> written out.

May I request a feature for the 1.0x series?  A command-line option
for vgscan and vgchange, to specify the directory containing lvmconf,
lvmtab and lvmtab.d.

Regards,

Mark.

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

* Re: [linux-lvm] vgscan && vgchange -ay at startup
  2001-08-22  9:31         ` Mark van Walraven
@ 2001-08-23 20:42           ` Heinz J . Mauelshagen
  0 siblings, 0 replies; 9+ messages in thread
From: Heinz J . Mauelshagen @ 2001-08-23 20:42 UTC (permalink / raw)
  To: linux-lvm

On Wed, Aug 22, 2001 at 09:31:48PM +1200, Mark van Walraven wrote:
> On Tue, Aug 21, 2001 at 11:22:52AM -0500, AJ Lewis wrote:
> > Yeah, that's in the works for the development version of LVM, but the 1.0x
> > series will likely always have the files in /etc.  I agree that it is better
> > not to have it write files by default, or at least not rely on them being
> > written out.
> 
> May I request a feature for the 1.0x series?  A command-line option
> for vgscan and vgchange, to specify the directory containing lvmconf,
> lvmtab and lvmtab.d.

In future versions, there'll be config file support in LVM covering
what you request and more :-)

> 
> Regards,
> 
> Mark.
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen@Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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

end of thread, other threads:[~2001-08-23 20:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-21 11:00 [linux-lvm] vgscan && vgchange -ay at startup Ulrich Wiederhold
2001-08-21 12:04 ` AJ Lewis
2001-08-21 13:03   ` Ulrich Wiederhold
2001-08-21 13:53   ` Michael Tokarev
2001-08-21 14:00     ` Goetz Bock
2001-08-21 16:22       ` AJ Lewis
2001-08-21 17:08         ` Patrick Caulfield
2001-08-22  9:31         ` Mark van Walraven
2001-08-23 20:42           ` Heinz J . Mauelshagen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.