* [linux-lvm] Is there any help for external locking of LVM?
@ 2010-08-23 4:17 Kirby Zhou
2010-08-23 13:49 ` Christine Caulfield
0 siblings, 1 reply; 3+ messages in thread
From: Kirby Zhou @ 2010-08-23 4:17 UTC (permalink / raw)
To: linux-lvm
I am working for getting a alternative of built-in clustered locking.
clvmd cannot support large size cluster well, and cannot across VLAN.
In my opinion, a centralized locking mechanism is more suitable for
large-scale cluster.
If I just put locking_dir on a NFS volume with locking_type=1, can I use LVM
to share a storage across machine?
Or is there any document can guide me to write a new locking plug-in?
Regards,
Kirby Zhou
from SOHU-RD +86-10-6272-8261
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] Is there any help for external locking of LVM?
2010-08-23 4:17 [linux-lvm] Is there any help for external locking of LVM? Kirby Zhou
@ 2010-08-23 13:49 ` Christine Caulfield
2010-08-23 15:59 ` Kirby Zhou
0 siblings, 1 reply; 3+ messages in thread
From: Christine Caulfield @ 2010-08-23 13:49 UTC (permalink / raw)
To: linux-lvm
Hiya
There's no documentation on writing locking plugins but it's fairly
straightforward, in principle at least ;-)
Have a look at LVM2/lib/locking/no_locking.c and add your custom locking
parts in there. You DO need to call the lvm libraries parts or nothing
will happen.
If your locking library is generally useful I hope you will share it
with the community.
Chrissie
On 23/08/10 05:17, Kirby Zhou wrote:
> I am working for getting a alternative of built-in clustered locking.
> clvmd cannot support large size cluster well, and cannot across VLAN.
> In my opinion, a centralized locking mechanism is more suitable for
> large-scale cluster.
>
> If I just put locking_dir on a NFS volume with locking_type=1, can I use LVM
> to share a storage across machine?
> Or is there any document can guide me to write a new locking plug-in?
>
> Regards,
> Kirby Zhou
> from SOHU-RD +86-10-6272-8261
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] Is there any help for external locking of LVM?
2010-08-23 13:49 ` Christine Caulfield
@ 2010-08-23 15:59 ` Kirby Zhou
0 siblings, 0 replies; 3+ messages in thread
From: Kirby Zhou @ 2010-08-23 15:59 UTC (permalink / raw)
To: 'LVM general discussion and development'
Thanks, and could you please think about my second question.
> If I just put locking_dir on a NFS volume with locking_type=1, can I use
LVM
> to share a storage across machine?
I see that file_locking do not provide query_resource function, is it safe
for me to do pvmove with NFS based locking file? And what does
query_resource should do?
Regards
Kirby Zhou
-----Original Message-----
From: linux-lvm-bounces@redhat.com [mailto:linux-lvm-bounces@redhat.com] On
Behalf Of Christine Caulfield
Sent: Monday, August 23, 2010 9:49 PM
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Is there any help for external locking of LVM?
Hiya
There's no documentation on writing locking plugins but it's fairly
straightforward, in principle at least ;-)
Have a look at LVM2/lib/locking/no_locking.c and add your custom locking
parts in there. You DO need to call the lvm libraries parts or nothing
will happen.
If your locking library is generally useful I hope you will share it
with the community.
Chrissie
On 23/08/10 05:17, Kirby Zhou wrote:
> I am working for getting a alternative of built-in clustered locking.
> clvmd cannot support large size cluster well, and cannot across VLAN.
> In my opinion, a centralized locking mechanism is more suitable for
> large-scale cluster.
>
> If I just put locking_dir on a NFS volume with locking_type=1, can I use
LVM
> to share a storage across machine?
> Or is there any document can guide me to write a new locking plug-in?
>
> Regards,
> Kirby Zhou
> from SOHU-RD +86-10-6272-8261
>
_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-08-23 16:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-23 4:17 [linux-lvm] Is there any help for external locking of LVM? Kirby Zhou
2010-08-23 13:49 ` Christine Caulfield
2010-08-23 15:59 ` Kirby Zhou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).