From: "Glenn Shannon" <warl0k@lvcm.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Installing Linux on LVM
Date: Tue, 7 Aug 2001 11:45:19 -0700 [thread overview]
Message-ID: <000901c11f71$1b950100$f04b7818@lvcm.com> (raw)
In-Reply-To: 20010807105410.A31158@verb.syntaxsleuth.org
Hi there and thanks for the info!
What I did last time was:
Install to a normal partition all on one partition (only partition created
was /) (bad form I know but it was temp only)... installed the sources for
the 2.4.7 kernel, patched to LVM beta 7 and installed the beta7 tools.
Compiled the kernel.
Went back and fixed the get_hardsect problem.
Compiled kernel again.
Went back and fixed the other get_hardsect problem.
Compiled kernel again.
Put it on a small partition which would be called /boot on the new LVM.
Made my LVs and created actual partitions.
tar -c|tar -x'ed the directories to their new reiserfs partitions (is it
just me or do files take up a chunk more space on reiser?....) on the LVM.
Set up lilo.conf and ran lilo.
Re-setup lilo.conf compensating for devfs entries (I can't get fricken
devfsd to make me my compatibility links) and re-ran lilo.
Rebooted.
Rebooted back to old install and ran lvmcreate_initrd.
Added initrd statement to lilo.conf and re-ran lilo.
Rebooted.
Booted into LVMed Debian.(yay!)
So all told I have been there done that already.. what my real question was
is if there is any way to get Debian (or any linux really) to install
straight into an LVM without the aforementioned steps above? Or would I need
to create my own bootfloppy/installation system?
Anyhow thanks for the info on your experience!
Glenn
----- Original Message -----
From: "Wade Curry" <wcurry@cts.com>
To: <linux-lvm@sistina.com>
Sent: Tuesday, August 07, 2001 10:54 AM
Subject: Re: [linux-lvm] Installing Linux on LVM
> Glenn Shannon(warl0k@lvcm.com)@Tue, Aug 07, 2001 at 10:09:26AM -0700:
> > Hi all!
> >
> > I was wanting to install Debian onto an LVM partition. Does anyone here
know
> > if this can be done or am I going to have to try and figure it out all
by my
> > lonesome? :)
> >
> > I have a bunch of experience in installing/patching LVM beta 7 and am
> > planning on using beta 8.
> >
> > Also, does anyone know of a bootloader that will recognize an LVM
partition?
> > It would be kind of wasteful if I installed linux only to have to boot
from
> > a floppy :)
> >
> > Thanks in advance for any replies!
> >
> > Glenn
> >
>
> The docs are out there, but the information on this topic isn't
> explicit or abundant. What you're asking about is installing root
> on LVM, if I understood your request correctly.
>
> In general terms, these are the steps:
>
> 1. Create a boot partition and swap not on the LVM. This will be
> permanent.
> 2. Create a minimal installation on a small partition (regular
> ext2). This will not be permanent, so no need to be elaborate.
> 3. Compile a kernel that has support for LVM and your choice of fs
> and ext2 statically linked.
> 4. Create your logical volumes, etc. on the rest of the disk space.
> 5. Use lvmcreate_initrd to create an initrd so the kernel will be
> able to find everything in the new root lv.
> 6. Use debootstrap to create an installation on the new root.
> This is not smooth, and does not run through normal style
> installation scripts. You will most likely have to use
> chroot and dpkg to get the locales package installed for
> debootstrap to even complete successfully. You'll want to copy
> some of the things from /etc/ and check them out. fstab and
> lilo.conf will need to be modified. A lot of little steps here
> just making sure that you can boot, and can get to your source
> of debian packages.
> (at this point you can run dpkg/apt and install a _lot_ of stuff
> before you reboot. But be careful, symlinks won't necessarily
> point where you think they do.)
> 7. Run lilo with your new config and reboot.
> 8. Fix the details you overlooked in step 6 :)
> 9. Finish selecting packages and installing.
> 10.Thank the debian maintainer for making normal installations so
> easy (Something I thought I'd never say! :).
> 11. If desired, incorporate the disk space for the original install
> into your lv.
>
> I regret not writing down details of the process while doing it. I
> was playing it by ear, and my original install was complete and had
> important data that I wanted to be extremely careful with. The pace
> was slow and easy.
>
> I was using 2.4.7-pre3 with the latest patches at that time, devfs
> (with no devfsd), and have had to work through a lot, but learned
> quite a bit (my main reason for doing this). Manual installation
> and going without devfsd were more difficult than any of the issues
> with LVM. Most of the difficulties are overcome by reading docs,
> and being alert to the error messages and other "progress
> indicators".
>
> Have fun!
>
> Wade Curry wcurry(AT)cts.com
>
> Do I have to compile it? Looking for a position
> No, I *get* to compile it. working with *nix as a
> It's about freedom. Sys. Admin. or other.
>
> _______________________________________________
> 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
next prev parent reply other threads:[~2001-08-07 18:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-07 17:09 [linux-lvm] Installing Linux on LVM Glenn Shannon
2001-08-07 17:54 ` Wade Curry
2001-08-07 18:45 ` Glenn Shannon [this message]
2001-08-07 21:03 ` Wade Curry
2001-08-09 3:31 ` AJ Lewis
2001-08-09 4:04 ` Glenn Shannon
2001-08-09 4:03 ` Muralito
2001-08-08 2:38 ` Mark van Walraven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000901c11f71$1b950100$f04b7818@lvcm.com' \
--to=warl0k@lvcm.com \
--cc=linux-lvm@sistina.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.