Re: [linux-lvm] Cluster LVM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 27, 2002  12:45 +0100, Remco Post wrote:
> clusters all have one major problem to solve: split brain. Make sure that the 
> node manipulating the LV/VG does indeed have the right to do so, and doesn't 
> screw up everything for everybody. Maybe introduce a (LV/VG) master concept 
> into the VG, so as long as that is set, no other node in the cluster will 
> manipulate anything in the vg. (just some random rant, ignore if I'm talking 
> nonsense ;)

Having a single master is a _terrible_ idea, since this would mean that
if that node is down you are unable to change the VG until/if it is back
working again.

Rather use a DLM (as the other poster suggested) and a client needs to
get a lock on the VG in order to change anything.  You can start with
a lock per VG and one per shared PV not in a VG, and then go more fine
grained if you want (e.g. write lock on VG and specific LV being changed,
which does not block users of other LVs).  In the end, because you are
not changing a VG configuration very often, and it doesn't take very long
when you do (excluding pvmove), the big lock is probably enough.

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/


_______________________________________________
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

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux