* [linux-lvm] startup stuff
@ 2001-02-02 9:02 JAmes
2001-02-02 10:20 ` Patrick Caulfield
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: JAmes @ 2001-02-02 9:02 UTC (permalink / raw)
To: linux-lvm
Hello
I am using debian Linux, and have farely successfully installed LVM. I
have just to do the lvcreate -ay at startup. I assume that thi smust go in
/etc/rc2.d
but using what S??
Any help extremely apreciated...
James
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [linux-lvm] startup stuff
2001-02-02 9:02 [linux-lvm] startup stuff JAmes
@ 2001-02-02 10:20 ` Patrick Caulfield
2001-02-02 11:46 ` Heinz J. Mauelshagen
2001-02-02 13:53 ` [linux-lvm] startup stuff Timo Aaltonen
2 siblings, 0 replies; 14+ messages in thread
From: Patrick Caulfield @ 2001-02-02 10:20 UTC (permalink / raw)
To: linux-lvm
On Fri, Feb 02, 2001 at 10:02:17AM +0100, JAmes wrote:
>
> Hello
>
> I am using debian Linux, and have farely successfully installed LVM. I
> have just to do the lvcreate -ay at startup. I assume that thi smust go in
>
> /etc/rc2.d
>
> but using what S??
>
So long as it's before anything that uses the volumes you have on LVM you should
be OK. I would be tempted to put it in at 15, ie after kerneld and before NFS
and anacron.
patrick
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [linux-lvm] startup stuff
2001-02-02 9:02 [linux-lvm] startup stuff JAmes
2001-02-02 10:20 ` Patrick Caulfield
@ 2001-02-02 11:46 ` Heinz J. Mauelshagen
2001-02-02 11:02 ` JAmes
2001-02-02 13:53 ` [linux-lvm] startup stuff Timo Aaltonen
2 siblings, 1 reply; 14+ messages in thread
From: Heinz J. Mauelshagen @ 2001-02-02 11:46 UTC (permalink / raw)
To: linux-lvm
On Fri, Feb 02, 2001 at 10:02:17AM +0100, JAmes wrote:
>
> Hello
>
> I am using debian Linux, and have farely successfully installed LVM. I
> have just to do the lvcreate -ay at startup. I assume that thi smust go in
You surely mean "vgchange -ay".
>
> /etc/rc2.d
>
> but using what S??
It must run after boot in order to activate VGs before any accesses to
LVs (for eg. containing filesystems) take place and after modules were loaded.
Use one of the /etc/init.d/ scripts as a template to create
/etc/init.d/lvm containing "vgscan;vgchange -ay".
Create a symlink /etc/rcS.d/S25lvm pointing to this file please.
>
> Any help extremely apreciated...
>
> James
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
--
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] 14+ messages in thread* Re: [linux-lvm] startup stuff
2001-02-02 11:46 ` Heinz J. Mauelshagen
@ 2001-02-02 11:02 ` JAmes
2001-02-02 12:09 ` Holger Grothe
2001-02-02 13:53 ` Heinz J. Mauelshagen
0 siblings, 2 replies; 14+ messages in thread
From: JAmes @ 2001-02-02 11:02 UTC (permalink / raw)
To: linux-lvm
Hello
I did what you suggested but nothing happens attall! I may be wrong but I
have the impression that on a normal restart on rc2.d is 'looked' at.
> You surely mean "vgchange -ay".
yep :-)
help :-)
On Fri, 2 Feb 2001, Heinz J. Mauelshagen wrote:
> On Fri, Feb 02, 2001 at 10:02:17AM +0100, JAmes wrote:
> >
> > Hello
> >
> > I am using debian Linux, and have farely successfully installed LVM. I
> > have just to do the lvcreate -ay at startup. I assume that thi smust go in
>
> You surely mean "vgchange -ay".
>
> >
> > /etc/rc2.d
> >
> > but using what S??
>
> It must run after boot in order to activate VGs before any accesses to
> LVs (for eg. containing filesystems) take place and after modules were loaded.
>
> Use one of the /etc/init.d/ scripts as a template to create
> /etc/init.d/lvm containing "vgscan;vgchange -ay".
>
> Create a symlink /etc/rcS.d/S25lvm pointing to this file please.
>
> >
> > Any help extremely apreciated...
> >
> > James
> >
> > _______________________________________________
> > linux-lvm mailing list
> > linux-lvm@sistina.com
> > http://lists.sistina.com/mailman/listinfo/linux-lvm
>
> --
>
> 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
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [linux-lvm] startup stuff
2001-02-02 11:02 ` JAmes
@ 2001-02-02 12:09 ` Holger Grothe
2001-02-02 13:53 ` Heinz J. Mauelshagen
1 sibling, 0 replies; 14+ messages in thread
From: Holger Grothe @ 2001-02-02 12:09 UTC (permalink / raw)
To: linux-lvm
Hi,
>
> I did what you suggested but nothing happens attall! I may be wrong but I
> have the impression that on a normal restart on rc2.d is 'looked' at.
>
Don't know what you mean by "normal restart". On a Debian Potato
(stable Version) one have in rcS.d
S05keymaps.sh
S10checkroot.sh
[...]
S20modutils
S30checkfs.sh
[...]
So the lvm-stuff (vgchange -ay) should be done before checkfs.sh :-)
> > You surely mean "vgchange -ay".
>
> yep :-)
>
> help :-)
A very simple version of the lvm startup script (Debian: /etc/init.d/lvm)
may look like
-------------------------------------------------------------------------
#! /bin/sh
case "$1" in
start|"")
if [ -x /sbin/vgchange ]
then
/sbin/vgchange -a y
fi
;;
stop)
if [ -r /etc/lvmtab -a -x /sbin/vgchange ]
then
/sbin/vgchange -a n
fi
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
------------------------------------------------------------------------
Don't forget the x-bit.
Holger
--
Holger Grothe (Email: grothe@mathematik.tu-darmstadt.de)
Fachbereich Mathematik, TU Darmstadt
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [linux-lvm] startup stuff
2001-02-02 11:02 ` JAmes
2001-02-02 12:09 ` Holger Grothe
@ 2001-02-02 13:53 ` Heinz J. Mauelshagen
2001-02-02 13:46 ` [linux-lvm] startup stuff an dnew question :-) JAmes
1 sibling, 1 reply; 14+ messages in thread
From: Heinz J. Mauelshagen @ 2001-02-02 13:53 UTC (permalink / raw)
To: linux-lvm
Please have a look at Holger Grothe's related comment and check,
if Symlink etc. is set up correctly.
Heinz
On Fri, Feb 02, 2001 at 12:02:00PM +0100, JAmes wrote:
>
> Hello
>
> I did what you suggested but nothing happens attall! I may be wrong but I
> have the impression that on a normal restart on rc2.d is 'looked' at.
>
> > You surely mean "vgchange -ay".
>
> yep :-)
>
> help :-)
>
> On Fri, 2 Feb 2001, Heinz J. Mauelshagen wrote:
>
> > On Fri, Feb 02, 2001 at 10:02:17AM +0100, JAmes wrote:
> > >
> > > Hello
> > >
> > > I am using debian Linux, and have farely successfully installed LVM. I
> > > have just to do the lvcreate -ay at startup. I assume that thi smust go in
> >
> > You surely mean "vgchange -ay".
> >
> > >
> > > /etc/rc2.d
> > >
> > > but using what S??
> >
> > It must run after boot in order to activate VGs before any accesses to
> > LVs (for eg. containing filesystems) take place and after modules were loaded.
> >
> > Use one of the /etc/init.d/ scripts as a template to create
> > /etc/init.d/lvm containing "vgscan;vgchange -ay".
> >
> > Create a symlink /etc/rcS.d/S25lvm pointing to this file please.
> >
> > >
> > > Any help extremely apreciated...
> > >
> > > James
> > >
> > > _______________________________________________
> > > linux-lvm mailing list
> > > linux-lvm@sistina.com
> > > http://lists.sistina.com/mailman/listinfo/linux-lvm
> >
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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] 14+ messages in thread* Re: [linux-lvm] startup stuff an dnew question :-)
2001-02-02 13:53 ` Heinz J. Mauelshagen
@ 2001-02-02 13:46 ` JAmes
2001-02-05 8:18 ` Ulf Bartelt
0 siblings, 1 reply; 14+ messages in thread
From: JAmes @ 2001-02-02 13:46 UTC (permalink / raw)
To: linux-lvm
It works ! Thanks to everybody who helped. I am too used to debian
packages doing all for you.
/etc/rcS.d is the one that worked. So has init2 got anything to do with
/etc/rc2.d ???
Another question I have is can anybody show me a good install plan, a
partition scheme for a machine where everything but the / is lvm'ed. I
haven't seen this discussed anywhere. At the moment I am just testing on a
box with a partition / a swap and a /home .
If I did a standard installation using say 5 partitions / /usr /var/ /home
swap, it would be a pain transferring this to an lvm system. So how do you
lot do it ?
my partitions at the moment
Device Boot Start End Blocks Id System
/dev/hda1 * 1 608 4883728+ 83 Linux
/dev/hda2 609 627 152617+ 82 Linux swap
/dev/hda3 628 749 979965 83 Linux
/dev/hda4 750 1601 6843690 5 Extended
/dev/hda5 750 871 979933+ 8e Linux LVM
/dev/hda6 872 993 979933+ 8e Linux LVM
/dev/hda7 994 1601 4883728+ 8e Linux LVM
Thanks again.
On Fri, 2 Feb 2001, Heinz J. Mauelshagen wrote:
>
> Please have a look at Holger Grothe's related comment and check,
> if Symlink etc. is set up correctly.
>
> Heinz
>
> On Fri, Feb 02, 2001 at 12:02:00PM +0100, JAmes wrote:
> >
> > Hello
> >
> > I did what you suggested but nothing happens attall! I may be wrong but I
> > have the impression that on a normal restart on rc2.d is 'looked' at.
> >
> > > You surely mean "vgchange -ay".
> >
> > yep :-)
> >
> > help :-)
> >
> > On Fri, 2 Feb 2001, Heinz J. Mauelshagen wrote:
> >
> > > On Fri, Feb 02, 2001 at 10:02:17AM +0100, JAmes wrote:
> > > >
> > > > Hello
> > > >
> > > > I am using debian Linux, and have farely successfully installed LVM. I
> > > > have just to do the lvcreate -ay at startup. I assume that thi smust go in
> > >
> > > You surely mean "vgchange -ay".
> > >
> > > >
> > > > /etc/rc2.d
> > > >
> > > > but using what S??
> > >
> > > It must run after boot in order to activate VGs before any accesses to
> > > LVs (for eg. containing filesystems) take place and after modules were loaded.
> > >
> > > Use one of the /etc/init.d/ scripts as a template to create
> > > /etc/init.d/lvm containing "vgscan;vgchange -ay".
> > >
> > > Create a symlink /etc/rcS.d/S25lvm pointing to this file please.
> > >
> > > >
> > > > Any help extremely apreciated...
> > > >
> > > > James
> > > >
> > > > _______________________________________________
> > > > linux-lvm mailing list
> > > > linux-lvm@sistina.com
> > > > http://lists.sistina.com/mailman/listinfo/linux-lvm
> > >
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
> Heinz Mauelshagen Sistina Software Inc.
> Senior Consultant/Developer Am Sonnenhang 11
> 56242 Marienrachdorf
> Germany
> Mauelshagen@Sistina.com +49 2626 141200
> FAX 924446
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [linux-lvm] startup stuff an dnew question :-)
2001-02-02 13:46 ` [linux-lvm] startup stuff an dnew question :-) JAmes
@ 2001-02-05 8:18 ` Ulf Bartelt
2001-02-06 2:39 ` zoo1
0 siblings, 1 reply; 14+ messages in thread
From: Ulf Bartelt @ 2001-02-05 8:18 UTC (permalink / raw)
To: linux-lvm
JAmes wrote:
>
> It works ! Thanks to everybody who helped. I am too used to debian
> packages doing all for you.
>
> /etc/rcS.d is the one that worked. So has init2 got anything to do with
> /etc/rc2.d ???
>
> Another question I have is can anybody show me a good install plan, a
> partition scheme for a machine where everything but the / is lvm'ed. I
> haven't seen this discussed anywhere. At the moment I am just testing on a
> box with a partition / a swap and a /home .
>
> If I did a standard installation using say 5 partitions / /usr /var/ /home
> swap, it would be a pain transferring this to an lvm system. So how do you
> lot do it ?
This is how I did it on my router/mailserver:
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda2 31729 14865 15226 49% /
/dev/hda1 3963 1273 2486 34% /boot
/dev/vgodo/tmp 63461 19 60821 0% /tmp
/dev/vgodo/usr 222135 180405 30262 86% /usr
/dev/vgodo/var 63461 27578 33917 45% /var
/dev/vgodo/home 63461 2467 60339 4% /home
/dev/vgodo/spool_squid 507748 23395 458139 5% /var/spool/squid
But the tricky part is: hda2 and hda1 are LVs too...
I just faked partition map entries for them and I use them only by this
"partition aliases", so I can boot a system living totally in LVs using
conventional things like lilo...
Have a look into http://www.freenet.de/y.e.t.i./
I'm using this trick for over a year now and I'm still happy with it.
All my Linuxes @home are set up this way ( if not a diskless install :-)
)...
Bye!
Ulf.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [linux-lvm] startup stuff an dnew question :-)
2001-02-05 8:18 ` Ulf Bartelt
@ 2001-02-06 2:39 ` zoo1
2001-02-06 7:44 ` Ulf Bartelt
0 siblings, 1 reply; 14+ messages in thread
From: zoo1 @ 2001-02-06 2:39 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 745 bytes --]
On Mon, Feb 05, 2001 at 09:18:31AM +0100, Ulf Bartelt wrote:
>This is how I did it on my router/mailserver:
[...]
>But the tricky part is: hda2 and hda1 are LVs too...
>I just faked partition map entries for them and I use them only by this
>"partition aliases", so I can boot a system living totally in LVs using
>conventional things like lilo...
erm... just what does this gain you, then? if you resize or move those
LVs, wouldn't you have to manually change the fake partition map
entries, sort of negating the entire point of using LVM...?
--
PGP/GnuPG key (ID 1024D/BFE0D6D0) available from keyservers everywhere
"Everything I am today, I owe to people whom it is now too late
to punish."
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [linux-lvm] startup stuff an dnew question :-)
2001-02-06 2:39 ` zoo1
@ 2001-02-06 7:44 ` Ulf Bartelt
2001-02-06 17:34 ` Andreas Dilger
2001-02-06 18:21 ` Christoph Hellwig
0 siblings, 2 replies; 14+ messages in thread
From: Ulf Bartelt @ 2001-02-06 7:44 UTC (permalink / raw)
To: linux-lvm
zoo1@corecomm.net wrote:
> >But the tricky part is: hda2 and hda1 are LVs too...
> >I just faked partition map entries for them and I use them only by this
> >"partition aliases", so I can boot a system living totally in LVs using
> >conventional things like lilo...
>
> erm... just what does this gain you, then? if you resize or move those
> LVs, wouldn't you have to manually change the fake partition map
> entries, sort of negating the entire point of using LVM...?
...I do not want to use an initrd to switch on some service I cannot
switch off properly because no exitrd exists. But that's
philosophical...
...but for now I never needed to resize /boot or /, only the other
LVs...
...and admittedly I never spent a thought on relations between partition
aliases and snapshots... :-(
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [linux-lvm] startup stuff an dnew question :-)
2001-02-06 7:44 ` Ulf Bartelt
@ 2001-02-06 17:34 ` Andreas Dilger
2001-02-06 18:21 ` Christoph Hellwig
1 sibling, 0 replies; 14+ messages in thread
From: Andreas Dilger @ 2001-02-06 17:34 UTC (permalink / raw)
To: linux-lvm
Ulf Bartelt writes:
> > >I just faked partition map entries for them and I use them only by this
> > >"partition aliases", so I can boot a system living totally in LVs using
> > >conventional things like lilo...
> >
> > erm... just what does this gain you, then? if you resize or move those
> > LVs, wouldn't you have to manually change the fake partition map
> > entries, sort of negating the entire point of using LVM...?
>
> ...but for now I never needed to resize /boot or /, only the other
> LVs...
With the recent changes that went into LVM-0.9.1-beta3, and some patches
to LILO, it _should_ be possible to use LILO on a /boot LV. Unfortunately,
I was distracted from completing the testing, but the LVM fixes are there.
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [linux-lvm] startup stuff an dnew question :-)
2001-02-06 7:44 ` Ulf Bartelt
2001-02-06 17:34 ` Andreas Dilger
@ 2001-02-06 18:21 ` Christoph Hellwig
1 sibling, 0 replies; 14+ messages in thread
From: Christoph Hellwig @ 2001-02-06 18:21 UTC (permalink / raw)
To: linux-lvm
On Tue, Feb 06, 2001 at 08:44:58AM +0100, Ulf Bartelt wrote:
> ...but for now I never needed to resize /boot or /, only the other
> LVs...
With my grub patch (ftp.openlinux.org:/pub/people/hch/lvm) you should
be able to boot a kernel on a LV.
I havn't looked at it for about half a year, so it might not apply against
grub-current anymore.
For / there is initrd, my autoscan code is pretty dead now, sorry.
Christoph
--
Of course it doesn't work. We've performed a software upgrade.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [linux-lvm] startup stuff
2001-02-02 9:02 [linux-lvm] startup stuff JAmes
2001-02-02 10:20 ` Patrick Caulfield
2001-02-02 11:46 ` Heinz J. Mauelshagen
@ 2001-02-02 13:53 ` Timo Aaltonen
2001-02-02 14:18 ` JAmes
2 siblings, 1 reply; 14+ messages in thread
From: Timo Aaltonen @ 2001-02-02 13:53 UTC (permalink / raw)
To: linux-lvm
On Fri, 2 Feb 2001, JAmes wrote:
>
> Hello
>
> I am using debian Linux, and have farely successfully installed LVM. I
> have just to do the lvcreate -ay at startup. I assume that thi smust go in
>
> /etc/rc2.d
>
> but using what S??
>
> Any help extremely apreciated...
You could use the deb's made by Tom Lees. You can find them here:
http://www.lpsg.demon.co.uk/files/debian
Depending which version you are using you have to install either lvm10
(0.9, maybe 0.9.1betas?), lvm6 (0.8final) or lvm5 (0.8i) _and_ lvm-common.
I've been using them for more than a month now without any problems.
They contain the init-script, so you don't need to make your own.
_______________/Timo Aaltonen <http://www.hut.fi/~tjaalton>
Work: Oy MyPortal International Ltd GSM +358-40-5549 618
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2001-02-06 18:21 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-02 9:02 [linux-lvm] startup stuff JAmes
2001-02-02 10:20 ` Patrick Caulfield
2001-02-02 11:46 ` Heinz J. Mauelshagen
2001-02-02 11:02 ` JAmes
2001-02-02 12:09 ` Holger Grothe
2001-02-02 13:53 ` Heinz J. Mauelshagen
2001-02-02 13:46 ` [linux-lvm] startup stuff an dnew question :-) JAmes
2001-02-05 8:18 ` Ulf Bartelt
2001-02-06 2:39 ` zoo1
2001-02-06 7:44 ` Ulf Bartelt
2001-02-06 17:34 ` Andreas Dilger
2001-02-06 18:21 ` Christoph Hellwig
2001-02-02 13:53 ` [linux-lvm] startup stuff Timo Aaltonen
2001-02-02 14:18 ` JAmes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).