WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Re: cLVM on Debian/Lenny

To: John Madden <jmadden@xxxxxxxxxxx>
Subject: Re: [Xen-users] Re: cLVM on Debian/Lenny
From: Jan Kalcic <jandot@xxxxxxxxxxxxxx>
Date: Mon, 20 Apr 2009 16:19:46 +0200
Cc: Jan Kalcic <jandot@xxxxxxxxxxxxxx>, Olivier Le Cam <Olivier.LeCam@xxxxxxxxxxxxxxxxxxxxx>, Javier Guerra <javier@xxxxxxxxxxx>, Ferenc Wagner <wferi@xxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx, Thiago Camargo Martins Cordeiro <thiagocmartinsc@xxxxxxxxx>
Delivery-date: Mon, 20 Apr 2009 07:20:09 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=uqCnxLbVviangW2WMyH/B6OXxdXUmCbrfvhe3tyL6ms=; b=kSh4jAOgvSGqYrtFRpmBU2TxC7ZSMi0QW3zX1EAMEjEDoizApSVkP2fFSeOfw4rp/B 9JXbFVVPbR98CiR9rkQKwFz5shr3q1SNU7jFFfK7f6cfieM8qbrCp9KuOsJAUVsBbbns aXOVx4jrgErO9rZw+bC2ZpcsyK/UespUJG8zY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=EwZddwFIvoDnLdXvo7waolvODlVg9S1H4XQIiXepey1yASZ80GY7U64d4YKTA748YI ZviriC57J84o6VDyaQduYSLWxyWkAk3XpIx9g0muh6+flhLHiM36z9IP6wavx0WvyRIO csOvsU3K1po70zg8sGm703M7FyGQ+7rh/H8MI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1240235155.21421.473.camel@quagmire>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <49E61DED.7030607@xxxxxxxxxxxxxxxxxxxxx> <87k55kvbdn.fsf@xxxxxxxxxxxxx> <90eb1dc70904160912i5c4741c9v8385e481694159c3@xxxxxxxxxxxxxx> <49E8827B.3070305@xxxxxxxxxxxxxxxxxxxxx> <90eb1dc70904171031j6b83fa3dp76ff2f060cebe789@xxxxxxxxxxxxxx> <6b7f6eb0904171201s2cb48281h924343236b3bbb07@xxxxxxxxxxxxxx> <49EC5342.4090202@xxxxxxxxxxxxxxxxxxxxx> <49EC65CF.3020001@xxxxxxxxx> <1240235155.21421.473.camel@quagmire>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.19 (X11/20081227)
John Madden wrote:
>> I think of cLVM as the LVM with the cluster extension. Any setting on
>> a
>> shared storage is visible by all the nodes of the cluster.
>> But what exactly does this mean? At which level (VG or LV) does the
>> locking library work? Can I enable (active) the same VG on different
>> nodes? If yes, how cLVM prevent split-brain? I would eventually be
>> able
>> to load a LV only on one node?
>>     
>
> cLVM just keeps LVM changes consistent across the cluster.  It's a
> system of locks (via dlm) that prevents one node from making LVM changes
> while another node is making them.  You can mount a LV on multiple nodes
> simultaneously and completely trash your data if you like -- clvm
> doesn't prevent this -- and in fact this behavior is necessary if you're
> going to use a cluster filesystem such as OCFS or GFS.
>
> John
>
>
>
>
>   
Clear.
 
cLVM does not provide a lock manager which manages *access* (I know
EVMS2 does for instance) to a LV or VG from the nodes of a cluster. As
you said, It just keeps LVM changes consistent. Let me say it provides a
DLM at volume level. To prevent split-brain I need a DLM at file system
level, of course, so a cluster-aware file system like OCFS2 is needed.

But this does not make sense to me. Where are the pros of using LVM for
my VMs if they eventually reside as file on a (cluster) file system?  I
loose all the features I want from LVM (snapshot and resizing).

I think of a cluster where the VMs are using a physical block device
(shared) based on LVM which provides me the LVM features as above and
manage access to the volume it self.

Does it make sense or I am completely "out"?


Thanks,
Jan

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users