I am - thanks. I found kpartx, which seemed to do the trick, too...

Thanks,

Kevin 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zavodsky, Daniel
(GE Money)
Sent: Tuesday, June 10, 2008 3:04 AM
To: Red Hat Enterprise Linux 5 (Tikanga) discussion mailing-list
Subject: RE: [rhelv5-list] LVM + SAN + partion tables?

If you are using dm-multipath, use:

partprobe
multipath -F
multipath -v2 


Regards,
        Daniel


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Collins, Kevin
[Beeline]
Sent: Tuesday, June 10, 2008 12:58 AM
To: Red Hat Enterprise Linux 5 (Tikanga) discussion mailing-list
Subject: RE: [rhelv5-list] LVM + SAN + partion tables?

One more question on this: how do get the device mapper to create the
new devices (after creating the partitions) without a reboot?

Thanks,

Kevin 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Collins, Kevin
[Beeline]
Sent: Monday, June 09, 2008 3:44 PM
To: Red Hat Enterprise Linux 5 (Tikanga) discussion mailing-list
Subject: RE: [rhelv5-list] LVM + SAN + partion tables?

Thanks, Tom. We don't typically upgrade, but that is a good thing to
know. I read the link you provided, although that really seems to be
stressing the idea of not more than one PV per LUN, rather than whether
or not to have a partition table.

I guess I should have looked at my boot disk to (somewhat) answer my own
question. Anaconda created an LVM (8e) partition for the PV, too:


           Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d0p1   *           1          19      152586   83  Linux
/dev/cciss/c0d0p2              20       17844   143179312+  8e  Linux
LVM

Thanks again!

Kevin

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Sightler
Sent: Monday, June 09, 2008 1:08 PM
To: Red Hat Enterprise Linux 5 (Tikanga) discussion mailing-list
Subject: Re: [rhelv5-list] LVM + SAN + partion tables?

On Mon, 2008-06-09 at 12:19 -0700, Collins, Kevin [Beeline] wrote:
> Hi,
> 
> My question is, what is the best practice in Linux? Do most folks 
> create a partition table for each LUN, even when used as a physical 
> volume for LVM. It seems weird to me that I would have:
> 
> /dev/mpath/disk0p2
> /dev/mpath/disk1
> /dev/mpath/disk2
> /dev/mpath/disk3
> /dev/mpath/disk4
> 
> as PVs - seems it would be more consistent to create them all as:
> 
> /dev/mpath/disk0p1
> /dev/mpath/disk1p1
> /dev/mpath/disk2p1
> /dev/mpath/disk3p1
> /dev/mpath/disk4p1
> 
> I'm used to LVM in HP-UX (what the original Sistina LVM was based on),

> where we always use whole (aka, non-partitioned) disks...
> 
I think "best practice" has changed over the years.  Older Redhat and
Linux LVM docs used to lean toward using entire disks/LUNs, however,
most modern docs seem to suggest a single partition.  Here's a reference
from Redhat:

https://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.2/html/Clus
ter_Logical_Volume_Manager/multiple_partitions.html

Although that section claims to be about multiple partition, it's first
sentence is "It is generally recommended that you create a single
partition that covers the whole disk to label as an LVM physical
volume..." and then goes on to give some reasons.  Also, in the
Installing RHEL document it states the following:

"To create an LVM logical volume, you must first create partitions of
type physical volume (LVM). Once you have created one or more physical
volume (LVM) partitions, select LVM to create an LVM logical volume."

This implies Redhat seems to think that creating a partition is a good
idea.  And finally from the LVM Howto we get this:

        Not Recommended 
        Using the whole disk as a PV (as opposed to a partition spanning
        the whole disk) is not recommended because of the management
        issues it can create. Any other OS that looks at the disk will
        not recognize the LVM metadata and display the disk as being
        free, so it is likely it will be overwritten. LVM itself will
        work fine with whole disk PVs. 
        
Back when we started using LVM with RHEL3 we chose to use entire LUN's,
thus caused us much grief with upgrades as at least some versions of
anaconda seem to think that a disk with no partition table must be blank
and prompts you to "initialize" them.  On a system with many LUN's this
can be quite annoying.  We've since switched to creating paritions of
type 8e (Linux LVM) on all of our LUN's.

In the end, both options worked fine for us (just as the note
describes), but having a partition seemed to be a little better from an
administrative perspective and certainly eased the pain of upgrades by
eliminating annoying error messages about uninitialized disks during the
process.  We've also had a few monitoring tools which report errors when
disks don't have partition tables.  They sent out critical alerts that
the "partition table is corrupt".

Later,
Tom


_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list



_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to