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: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Subject: Re: [Xen-users] Re: cLVM on Debian/Lenny
From: Jan Kalcic <jandot@xxxxxxxxxxxxxx>
Date: Mon, 20 Apr 2009 16:57:45 +0200
Cc: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 20 Apr 2009 07:59:01 -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=OxPawG6saK7dbza9JivwVaBQl6LVYPFTJZn2S0Ktrr0=; b=FMX6Tpy+gySCRIWxai+vjDrxx4go38GKLSeRWXB6j3Xsh/sQQacmLZwtZvPZfyGx/9 Ngo4IBguHmJsBDIAqmsaOehnvqNQE5rJHI1tg0Q0s/8ohCH2JV9YaO/S8++I1MVI6jhD 33oDkLmTWiRvfr9UjMJHzAOpsIBIoDqlYnZcw=
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=m62ErVteFu62wi9FzCzeg/ns8vzOns1ABuTpA1UBw9ykcMp21vE/+PQUJPWtzn7PU+ lRAvcr/2b9B5xgZvFp9VkSyPSBUf8U1DLRnEmcQ46v/o5XDPcgHuk0l5MIoX5Syj+7lG L1XtoPRB/L3qEzqBlUqbVyHgyK9+6MGhwi7FY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7207d96f0904200725n3a73af0ds97fef3edaf90806e@xxxxxxxxxxxxxx>
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> <49EC8482.7020508@xxxxxxxxx> <7207d96f0904200725n3a73af0ds97fef3edaf90806e@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.19 (X11/20081227)
Fajar A. Nugraha wrote:
> On Mon, Apr 20, 2009 at 9:19 PM, Jan Kalcic <jandot@xxxxxxxxxxxxxx> wrote:
>   
>> 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"?
>>     
>
> I think you're looking at it the wrong way. You still need a separate
> locking mechanism if you want to prevent a domU backend (be it LVM or
> file) from being used by two or more dom0 at the same time.
>
> Cluster file system (like GFS) can create a shared filesystem that can
> be mounted on two or more nodes at the same time, but it does NOT
> prevent you from (lets say) having a file-backed vm, located on GFS,
> that is used by two (or more) dom0 to as domU backend. End result:
> domU corruption.
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>
>   

Right, I think I almost get the point.

cLVM can't say node1 is accessing this LV so node2 can't and vice versa.
There is not a cluster lock mechanism of this type (what is called
Cluster Segment Manager in EVMS2) Moreover, if there was this kind of
lock mechanism, it would not work for VMs live migration just because
multiple node can access to the same LV simultaneously.

Instead, cLVM can notifies all the nodes whenever a LVM change occurs.
That's it.

Thanks,
Jan



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