All of lore.kernel.org
 help / color / mirror / Atom feed
From: josv@osp.nl
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Newbie question
Date: Tue, 17 Jul 2001 10:31:59 +0200	[thread overview]
Message-ID: <20010717103159.A8557@gatekeeper.osp.nl> (raw)
In-Reply-To: <20010717013610.G29657@colombina.comedia.it>; from bluca@comedia.it on Tue, Jul 17, 2001 at 01:36:10AM +0200

Hi all,

Just for the record, HP-UX's vg layout is not in /stand. Information about
essential logical volumes (boot (/stand), root (/), primary swap and dump) 
is stored in a LIF file (LABEL) in the boot area's of the disk (use the lifls 
command to display the structure of the boot area). The lvlnboot command is used
to query and change the LABEL file. The mapping between VG and PV's is stored
in the /etc/lvmtab file. This file is used by the vgchange command to activate
volume groups. At boot time, /etc/lvmrc is run from the inittab, and it
executes a 'vgchange -a y' for all volume groups.

The "-lm" boot option in HP-UX disables the lv driver (major 64), so only the
/stand, /, pri swap and dump "volumes" are available. Not as logical volumes,
but directly from the disk because these volumes must be contiguous. This
option is necessary in HP-UX since it basically only supports LVM disk setups
(whole disk layout is also supported, but almost never used...). If Linux
would ever get to the point that LVM (or its successor) is *the* choice for
partitioning all disks (even the boot disk), we would need such an option as
well because otherwise there would be no path to recovery in case of LVM
data corruption.

With Veritas Volume Manager you have the option to encapsulate the boot disk.
The encapsulation process turns the boot disk in a PV (terminology: VM disk)
with a bunch of (logical) volumes laid out at exactly the same disk blocks as
the root, swap, usr and other partitions. I have very bad experiences with
encapsulated boot disks in Solaris, and never use them if I can help it.
For that reason I do not really favour converting my entire Linux boot disk
to LVM. But that's just a personal opinion......

++Jos
"Who could not resist commenting on this, sorry..."

And thus it came to pass that Luca Berra wrote:
(on Tue, Jul 17, 2001 at 01:36:10AM +0200 to be exact)

> On Mon, Jul 16, 2001 at 10:08:02AM -0500, Steven Lembark wrote:
> > 
> > >> Now I have a question. I read the HOWTO migrate the old root partition to a
> > >> LV
> > 
> > Think really, really hard before trying this.  Linux on an X86 doesn't have
> > an LVM aware bios and you cannot boot w/o LVM (e.g., HP's "-lm").  This
> > means that if you have any error at all in LVM you cannot boot.
> 
> and HP9000 haven't either!
> -lm works because the vg layout is saved in a file in /stand
> they have LVM activation in the kernel tough (sorta, they still need a contiguous root, placed
> on the same PV as the kernel is)
> 
> > A safer approach -- especially if you havn't used LVM before -- is to use
> > the first 2-3 partitions for /, swap and /var.  This allows you to boot even if
> maybe / if linux had a sane use for /sbin, but swap and var are unneeded.
> 
> (btw i have lvm root and i am happy)
> 
> L.
> 
> -- 
> Luca Berra -- bluca@comedia.it
>         Communication Media & Services S.r.l.
>  /"\
>  \ /     ASCII RIBBON CAMPAIGN
>   X        AGAINST HTML MAIL
>  / \
> _______________________________________________
> 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

-- 
With all the things you are losing,
You might as well resign yourself,
And try and make a change...

  reply	other threads:[~2001-07-17  8:31 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-11 18:33 [linux-lvm] syslogd reports: kernel: lvm -- lvm_chr_ioctl: unknown command 4004fe0a Theo
2001-07-12  8:46 ` Joe Thornber
2001-07-12 14:53   ` [linux-lvm] Newbie question Leandro Lucarella
2001-07-13 11:12     ` Heinz J. Mauelshagen
2001-07-13 15:33       ` Re[2]: " Leandro Lucarella
2001-07-13 16:41         ` Vincent Bernat
2001-07-16 11:31           ` Heinz J. Mauelshagen
2001-07-16 11:33         ` Heinz J. Mauelshagen
2001-07-16 15:08           ` Steven Lembark
2001-07-16 23:36             ` Luca Berra
2001-07-17  8:31               ` josv [this message]
2001-07-17 11:39                 ` Heinz J. Mauelshagen
2001-07-17 19:58                 ` Luca Berra
2001-07-18 15:25                   ` Heinz J. Mauelshagen
2001-07-13 18:01       ` Luca Berra
2001-07-16 11:34         ` Heinz J. Mauelshagen
2001-07-12 19:07   ` [linux-lvm] syslogd reports: kernel: lvm -- lvm_chr_ioctl: unknown command 4004fe0a Johann
  -- strict thread matches above, loose matches on Subject: below --
2002-06-25 14:53 [linux-lvm] newbie question shri krishnan
2002-06-26  5:41 ` Heinz J . Mauelshagen
2001-02-02 15:08 JAmes
2001-02-02 15:49 ` Eric M. Hopper
2001-02-02 16:09   ` James
2001-02-04  4:29   ` David Gould
2001-02-02 20:56 ` Andreas Dilger
2001-02-03  8:22   ` James

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=20010717103159.A8557@gatekeeper.osp.nl \
    --to=josv@osp.nl \
    --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.