[linux-lvm] Poison pills

Alasdair G Kergon agk at redhat.com
Wed Oct 3 19:28:46 UTC 2007


On Wed, Oct 03, 2007 at 03:06:42PM -0400, Stuart D. Gathman wrote:
> What happens in linux LVM?  If it sees 
> two conflicting metadatas for the same VGID, what happens?
 
It'll apply some simple rules to distinguish them (e.g. if one has the
current hostname written into its metadata identifying the machine where
it was created and the other doesn't it'll select that one), but if it
can't tell them apart it will pick one at random (not in the strict
sense of that word - in identical external conditions it'll always
choose the same one) and use that.   [The hostname test is less use than
you might think, as many VGs are created with identical hostnames during
installation, and others are accessed early in the boot sequence before
the hostname has been set.]

BTW vgrename accepts the VGID as a parameter.

Alasdair
-- 
agk at redhat.com




More information about the linux-lvm mailing list