From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.26]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u7Q6ZANT023223 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 26 Aug 2016 02:35:10 -0400 Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5105C8E740 for ; Fri, 26 Aug 2016 06:35:09 +0000 (UTC) Received: by mail-oi0-f53.google.com with SMTP id l203so98483683oib.1 for ; Thu, 25 Aug 2016 23:35:09 -0700 (PDT) MIME-Version: 1.0 From: su liu Date: Fri, 26 Aug 2016 14:35:08 +0800 Message-ID: Content-Type: multipart/alternative; boundary=001a113dc22a364df1053af3b755 Subject: Re: [linux-lvm] lvm2 cluster aware Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: Digimer Cc: linux-lvm --001a113dc22a364df1053af3b755 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks your replay. I will join the Clusterlabs users list. 2016-08-26 13:04 GMT+08:00 Digimer : > On 25/08/16 11:59 AM, David Teigland wrote: > > On Thu, Aug 25, 2016 at 09:50:24AM +0800, su liu wrote: > >> I have a question about lvm2 cluster, The scene is that I try to imita= te > >> FCSAN by mapping a rbd volume to two compute node, Then I using the rb= d > >> volume to create a PV and VG.I stoped the lvmetad daemon on the compu= te > >> nodes. Then I find that when I operating the VG on one compute node, t= he > >> changes can also be aware on another compute nodes. > >> > >> But this docment(http://www.tldp.org/HOWTO/LVM-HOWTO/sharinglvm1.html= =EF=BC=89 > says > >> that "*LVM is not cluster aware".* > >> > >> My question is that can I use the method to achieve the case that I > create > >> or delete lv on one node whlie other compute node can using the lvs? > >> > >> Can anybody explain this? > > > > It's not safe to use lvm on shared storage without some extra mechanism > to > > protect the data or coordinate access among hosts. There are multiple > > ways, depending on what sort of sharing/coordination you want to use: > > > > - use system ID to protect VGs from other hosts, > > http://man7.org/linux/man-pages/man7/lvmsystemid.7.html > > > > - use lvmlockd to coordinate sharing with sanlock or dlm (this is new), > > http://man7.org/linux/man-pages/man8/lvmlockd.8.html > > > > - use clvm to coordinate sharing with dlm (this is old) > > http://man7.org/linux/man-pages/man8/clvmd.8.html > > It's not at all old. Or rather, it's not "old" in the sense that it's > not used or developed anymore. It's still an active part of the HA > cluster tool kit. DLM was just broken out to be stand-alone when > corosync went v2 as part of the merger of the old cman/rgmanager to > pacemaker migration. > > -- > Digimer > Papers and Projects: https://alteeve.ca/w/ > What if the cure for cancer is trapped in the mind of a person without > access to education? > --001a113dc22a364df1053af3b755 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks your replay. I will join the=C2=A0Clusterlabs users list.
2016-08-26 13:04 GMT+08:00 Digimer <lists@al= teeve.ca>:
On 25/08/16 11:59 AM, David Teigland w= rote:
> On Thu, Aug 25, 2016 at 09:50:24AM +0800, su liu wrote:
>> I have a question about lvm2 cluster, The scene is that I try to i= mitate
>> FCSAN by mapping a rbd volume to two compute node, Then I using th= e rbd
>> volume to=C2=A0 create a PV and VG.I stoped the lvmetad daemon on = the compute
>> nodes. Then I find that when I operating the VG on one compute nod= e, the
>> changes can also be aware on another compute nodes.
>>
>> But this docment(http://www.tldp.org/HOWTO/LVM-HOWTO/sharinglvm1.html=EF=BC=89 says
>> that "*LVM is not cluster aware".*
>>
>> My question is that can I use the method to achieve the case that = I create
>> or delete lv on one node whlie other compute node can using the lv= s?
>>
>> Can anybody explain this?
>
> It's not safe to use lvm on shared storage without some extra mech= anism to
> protect the data or coordinate access among hosts.=C2=A0 There are mul= tiple
> ways, depending on what sort of sharing/coordination you want to use:<= br> >
> - use system ID to protect VGs from other hosts,
>=C2=A0 =C2=A0http://man7.org/linux/man-pages/man7/lvmsystemid.7.html
>
> - use lvmlockd to coordinate sharing with sanlock or dlm (this is new)= ,
>=C2=A0 =C2=A0http://man7.org/linux/man-= pages/man8/lvmlockd.8.html
>
> - use clvm to coordinate sharing with dlm (this is old)
>=C2=A0 =C2=A0http://man7.org/linux/man-pag= es/man8/clvmd.8.html

It's not at all old. Or rather, it's not "old"= ; in the sense that it's
not used or developed anymore. It's still an active part of the HA
cluster tool kit. DLM was just broken out to be stand-alone when
corosync went v2 as part of the merger of the old cman/rgmanager to
pacemaker migration.

--
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without
access to education?

--001a113dc22a364df1053af3b755--