[linux-lvm] Adding a disk to expand an existing logical volume
support at bettercgi.com
Fri May 28 23:16:33 UTC 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".
support at bettercgi.com
Strongbox - The next generation in site security:
Throttlebox - Intelligent Bandwidth Control
Strongbox / Throttlebox affiliate program:
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"
> > 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
> names from sdc to sdd.
> However, you are correct that the default device searching rules used
> 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 at bmsi.com>
> Business Management Systems Inc. Phone: 703 591-0911 Fax: 703
> "Confutatis maledictis, flammis acribus addictis" - background song
> a Microsoft sponsored "Where do you want to go from here?" commercial.
> linux-lvm mailing list
> linux-lvm at redhat.com
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
More information about the linux-lvm