* [linux-lvm] Quorums / VGDAs @ 2002-09-10 13:54 Anthony Johnson 2002-09-11 5:57 ` Heinz J . Mauelshagen 0 siblings, 1 reply; 4+ messages in thread From: Anthony Johnson @ 2002-09-10 13:54 UTC (permalink / raw) To: linux-lvm I'm trying to find information on the availability factors of LVM. As I understand it, a quorum is required for a volume group to be available. I have some questions in this regard: 1) What defines a quorum - over 50% of the PVs in the VG, or over 50% of the VGDAs? 2) How many VGDAs are stored on each physical volume. From AIX experience, this varied depending on the number of PVs in the VG. 3) If quorum is lost on an active VG, is the entire VG automatically varied off? 4) Can a VG without quorum be forcefully varied on? 5) Can quorum checking be disabled? Thanks, Anthony ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Quorums / VGDAs 2002-09-10 13:54 [linux-lvm] Quorums / VGDAs Anthony Johnson @ 2002-09-11 5:57 ` Heinz J . Mauelshagen 2002-09-13 15:31 ` Anthony Johnson 0 siblings, 1 reply; 4+ messages in thread From: Heinz J . Mauelshagen @ 2002-09-11 5:57 UTC (permalink / raw) To: linux-lvm On Tue, Sep 10, 2002 at 11:56:16AM -0700, Anthony Johnson wrote: > I'm trying to find information on the availability factors of LVM. As I > understand it, a quorum is required for a volume group to be available. > I have some questions in this regard: > > 1) What defines a quorum - over 50% of the PVs in the VG, or over 50% > of the VGDAs? VG quorum is given in case all of its PVs are available. > 2) How many VGDAs are stored on each physical volume. From AIX > experience, this varied depending on the number of PVs in the VG. In the LVM1 metadata there's allways 1 VGDA on each PV which has internal redundancy. With the new LVM2 formats you can have as many VGDA copies as you like. > 3) If quorum is lost on an active VG, is the entire VG automatically > varied off? No, it will stay accessable with the exception of the dead PV(s). > 4) Can a VG without quorum be forcefully varied on? With LVM1.1 (see CVS; WARNING: his is interim development code!) and with final LVM2 later this year, you can activate a VG which has lost quorum. > 5) Can quorum checking be disabled? No, but with the above SW you can activate the VG in case there's at least 1 PV still accessable. > > Thanks, > Anthony > > _______________________________________________ > 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 -- Regards, Heinz -- The LVM Guy -- *** Software bugs are stupid. Nevertheless it needs not so stupid people to solve them *** =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Heinz Mauelshagen Sistina Software Inc. Senior Consultant/Developer Am Sonnenhang 11 56242 Marienrachdorf Germany Mauelshagen@Sistina.com +49 2626 141200 FAX 924446 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Quorums / VGDAs 2002-09-11 5:57 ` Heinz J . Mauelshagen @ 2002-09-13 15:31 ` Anthony Johnson 2002-09-16 6:38 ` Heinz J . Mauelshagen 0 siblings, 1 reply; 4+ messages in thread From: Anthony Johnson @ 2002-09-13 15:31 UTC (permalink / raw) To: linux-lvm Heinz, I'm having some trouble understanding these answers. Perhaps I am misunderstanding the purpose of a "quorum" on Linux. On AIX, quorums ensure that at least one copy of the latest VGDA is alsays avaialble by ensuring there are always a quorum (over half) of the VGDA copies available. The VGDA is stored on each PV (and sometimes 2 copies are stored on each PV). If you lose quorum, you lose the VG (to ensure we don't varyon with an old copy). You imply that a "quorum" requires ALL of the PVs be avialable in Linux. The dictionary definition of a "quorum", however, is more than half. If a VG in Linux can be varied on with only one good copy of a VGDA (in perhaps a 3-PV VG), then how do you ensure that you are always looking at and updating the most recent copy? If, for instance, I have a 4-disk VG, and I lose 2 disks, then shutdown and varon the VG with the alternate 2 disks (the previously missing ones), I will be seeing only the older VGDA. Is the VGDA also stored in the /etc/lvmtab.d? If so, can you varyon if this VGDA was removed? I guess the big question is: How does LVM for Linux ensure that we are always using the most recent VGDA data (in case we're looking at active PVs that were previously missing). I have to do a lecture to an AIX group on the differences between LVM on AIX and Linux, and quorums were always a big issue for AIX. Thanks, Anthony > > 1) What defines a quorum - over 50% of the PVs in the VG, or over 50% > > of the VGDAs? > > VG quorum is given in case all of its PVs are available. > > > 2) How many VGDAs are stored on each physical volume. From AIX > > experience, this varied depending on the number of PVs in the VG. > > In the LVM1 metadata there's allways 1 VGDA on each PV which has internal > redundancy. > With the new LVM2 formats you can have as many VGDA copies as you like. > > > 3) If quorum is lost on an active VG, is the entire VG automatically > > varied off? > > No, it will stay accessable with the exception of the dead PV(s). > > > 4) Can a VG without quorum be forcefully varied on? > > With LVM1.1 (see CVS; WARNING: his is interim development code!) and with final > LVM2 later this year, you can activate a VG which has lost quorum. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Quorums / VGDAs 2002-09-13 15:31 ` Anthony Johnson @ 2002-09-16 6:38 ` Heinz J . Mauelshagen 0 siblings, 0 replies; 4+ messages in thread From: Heinz J . Mauelshagen @ 2002-09-16 6:38 UTC (permalink / raw) To: linux-lvm On Thu, Sep 12, 2002 at 10:54:19AM -0700, Anthony Johnson wrote: > Heinz, > I'm having some trouble understanding these answers. Perhaps I am > misunderstanding the purpose of a "quorum" on Linux. Well, I used the term "quorum" as we use it with LVM1. There's piles of different "quorum" definitions for various things out there, I am afraid ;-) > On AIX, quorums > ensure that at least one copy of the latest VGDA is alsays avaialble by > ensuring there are always a quorum (over half) of the VGDA copies > available. The VGDA is stored on each PV (and sometimes 2 copies are > stored on each PV). If you lose quorum, you lose the VG (to ensure we > don't varyon with an old copy). > > You imply that a "quorum" requires ALL of the PVs be avialable in Linux. > The dictionary definition of a "quorum", however, is more than half. Well, this is the problem with definitions ;-) In the LVM1 format case the VGDA is assembled using the metadata of *all* PVs and thats why quorum for *LVM1* means that 100% of the PVs are needed. With LVM2 you will have the choice to put VGDA metadata on as many PVs as you like (for eg.: just on 3 out of 50). This is to avoid metadata update delays as much as possible. In this example you don't need access to all PVs in order to achive quorum. But if you manage to kill those 3 at once, you need a valid VGDA backup. OTOH this goes beyond the AIX approach giving you VG quorum even with much less than 50% of the PVs available! > If a VG in Linux can be varied on with only one good copy of a VGDA (in > perhaps a 3-PV VG), then how do you ensure that you are always looking > at and updating the most recent copy? If, for instance, I have a 4-disk > VG, and I lose 2 disks, then shutdown and varon the VG with the > alternate 2 disks (the previously missing ones), I will be seeing only > the older VGDA. Is the VGDA also stored in the /etc/lvmtab.d? Yes, with LVM1 there is a working copy of the VGDA of each VG. > If so, can > you varyon if this VGDA was removed? That working copy is recreated every time you run vgscan. In general an activated VG *without* quorum is read-only in case of the LVM1 ondisk format so your example describes a don't care scenario. With the LVM2 metadata format (which we call format2) there are sequence numbers kept with each copy which define the recent one. Hope this makes things a little cleare :) Regards, Heinz -- The LVM Guy -- > > I guess the big question is: How does LVM for Linux ensure that we are > always using the most recent VGDA data (in case we're looking at active > PVs that were previously missing). I have to do a lecture to an AIX > group on the differences between LVM on AIX and Linux, and quorums were > always a big issue for AIX. > > Thanks, > Anthony > > > > 1) What defines a quorum - over 50% of the PVs in the VG, or over 50% > > > of the VGDAs? > > > > VG quorum is given in case all of its PVs are available. > > > > > 2) How many VGDAs are stored on each physical volume. From AIX > > > experience, this varied depending on the number of PVs in the VG. > > > > In the LVM1 metadata there's allways 1 VGDA on each PV which has internal > > redundancy. > > With the new LVM2 formats you can have as many VGDA copies as you like. > > > > > 3) If quorum is lost on an active VG, is the entire VG automatically > > > varied off? > > > > No, it will stay accessable with the exception of the dead PV(s). > > > > > 4) Can a VG without quorum be forcefully varied on? > > > > With LVM1.1 (see CVS; WARNING: his is interim development code!) and with final > > LVM2 later this year, you can activate a VG which has lost quorum. > > _______________________________________________ > 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 *** Software bugs are stupid. Nevertheless it needs not so stupid people to solve them *** =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Heinz Mauelshagen Sistina Software Inc. Senior Consultant/Developer Am Sonnenhang 11 56242 Marienrachdorf Germany Mauelshagen@Sistina.com +49 2626 141200 FAX 924446 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-09-16 6:38 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2002-09-10 13:54 [linux-lvm] Quorums / VGDAs Anthony Johnson 2002-09-11 5:57 ` Heinz J . Mauelshagen 2002-09-13 15:31 ` Anthony Johnson 2002-09-16 6:38 ` Heinz J . Mauelshagen
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.