From: Ray Morris <support@bettercgi.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Adding a disk to expand an existing logical volume
Date: Fri, 28 May 2010 18:16:33 -0500 [thread overview]
Message-ID: <1275088593.18190.5@raydesk1.bettercgi.com> (raw)
In-Reply-To: <Pine.LNX.4.64.1005191524400.29583@bmsred.bmsi.com> (from stuart@bmsi.com on Wed May 19 14:34:38 2010)
> If you aren't familiar with lvm.conf, then using labeled partitions
> is a safer course. (initrd uses a copy of lvm.conf to find PVs so it
> can activate the volume group of the root filesystem if necessary.)
Perhaps my point was obscured by my other text, so I'll highlight it:
> > It makes booting an recovering much more reliable in case of
> > changes or problems.
Agreed, if all the devices are listed in lvm.conf, mdadm.conf,
etc. and nothing changes or has any problems then whole devices
work fine. As long as all of the configuration files list everything
and initrd knows about any changes. It's when something's not exactly
how it was originally configured that it's really handy for raid devices
to be marked as such by using partition type "fd", LVM devices to be
marked as such by using partition type "8e", etc. That's been my
experience. Your experience may differ, but that's my experience
from dealing with a lot of "won't boot" situations.
Having said that, if you use partitions it's important that
the partition types not be WRONG. I once spent far too long
trying to figure out why my devices were undetected. It turned
out a RAID or LVM partition was marked with the default "83".
--
Ray Morris
support@bettercgi.com
Strongbox - The next generation in site security:
http://www.bettercgi.com/strongbox/
Throttlebox - Intelligent Bandwidth Control
http://www.bettercgi.com/throttlebox/
Strongbox / Throttlebox affiliate program:
http://www.bettercgi.com/affiliates/user/register.php
On 05/19/2010 02:34:38 PM, Stuart D. Gathman wrote:
> On Wed, 19 May 2010, Ray Morris wrote:
>
> > It's also useful during the boot process. If, for example, you
> > later add another disk, this disk might become sdd, where it used to
> > be sdc. That can confuse initrd and friends and result in an
> > unbootable system. On almost every machine where I've skipped
> > creating partitions for RAID or LVM, this kind of thing has come
> > back to bite me later - maybe years later. Now, I always create
> > "Linux LVM" partitions for LVM and "Linux raid autodetect"
> partitions
> > for RAID. It makes booting an recovering much more reliable in
> > case of changes or problems.
>
> PVs are identified by UUID. It doesn't matter whether they change
> names. And changing names from sdc1 to sdd1 is just as bad as
> changing
> names from sdc to sdd.
>
> However, you are correct that the default device searching rules used
> by
> lvm might work correctly with a Linux LVM labeled partition where
> they might
> otherwise skip a device. If you aren't familiar with lvm.conf, then
> using labeled partitions is a safer course. (initrd uses a copy
> of lvm.conf to find PVs so it can activate the volume group of the
> root filesystem if necessary.)
>
> --
> Stuart D. Gathman <stuart@bmsi.com>
> Business Management Systems Inc. Phone: 703 591-0911 Fax: 703
> 591-6154
> "Confutatis maledictis, flammis acribus addictis" - background song
> for
> a Microsoft sponsored "Where do you want to go from here?" commercial.
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
>
next prev parent reply other threads:[~2010-05-28 23:16 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-19 15:43 [linux-lvm] Adding a disk to expand an existing logical volume kevin
2010-05-19 15:58 ` Digimer
2010-05-19 16:09 ` kevin
2010-05-19 16:28 ` Digimer
2010-05-19 16:24 ` Michael Guntsche
2010-05-19 22:28 ` Ron Johnson
2010-05-20 5:24 ` Luca Berra
2010-05-20 11:21 ` Bryn M. Reeves
2010-05-19 16:26 ` Malahal Naineni
2010-05-19 16:37 ` kevin
2010-05-19 16:46 ` Digimer
2010-05-19 17:05 ` Bryn M. Reeves
2010-05-19 16:51 ` Stuart D. Gathman
2010-05-19 16:57 ` Digimer
2010-05-19 17:07 ` kevin
2010-05-19 17:09 ` kevin
2010-05-19 17:28 ` Richard Shaw
2010-05-19 17:35 ` Ray Morris
2010-05-19 18:25 ` Digimer
2010-05-19 17:23 ` Ray Morris
2010-05-19 19:34 ` Stuart D. Gathman
2010-05-28 23:16 ` Ray Morris [this message]
2010-05-19 17:03 ` Bryn M. Reeves
2010-05-19 15:58 ` Richard Jerrido
2010-05-19 16:12 ` kevin
2010-05-19 16:46 ` Stuart D. Gathman
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=1275088593.18190.5@raydesk1.bettercgi.com \
--to=support@bettercgi.com \
--cc=linux-lvm@redhat.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.