[one-users] lvm_driver

christopher barry cbarry at rjmetrics.com
Tue Aug 14 07:07:30 PDT 2012


Greetings Nebulars

I'm trying to do something similar in end result, yet want to stay away
from COW images. I could use some advise/guidance.

Here is the scenario I wish to create:

* I have a base OS image as a logical volume in an array.
* I want every guest to boot this same image read-only - no copies.
* each guest uses a modified initramfs in the base image that mounts the
context iso and determines it's own unique data/config disk - also a
logical volume.
* this data/config disk is unioned rw over the ro base image.
* all disks are served via iSCSI

The data/config disk is persistent, and belongs to the unique guest, but
everyone shares the exact same OS disk.

Can anyone speak to the best method of integrating this scenario with
ONE? I've tested this outside of ONE, but now need to make it work in
ONE. Would I need a separate template for each machine?

Regards,
-C

On Tue, 2012-08-14 at 01:58 +0200, Ruben S. Montero wrote:
> Hi Marlok,
> 
> 
> You may try the modification explained here:
> 
> 
> http://dev.opennebula.org/issues/32#note-12
> 
> 
> Cheers
> 
> 
> Ruben
> 
> On Mon, Aug 13, 2012 at 12:56 PM, Marlok Tamás <tmarlok at sztaki.hu>
> wrote:
>         Hi Ruben,
>         
>         Yes, I used CLVM, but CLVM doesn't support snapshots, if there
>         is no exclusive lock on the source LV. Therefore the clone
>         script dies, when I try to instantiate a template...
>         
>         Thanks,
>         
>         tmarlok
>         
>         On Fri, Aug 10, 2012 at 11:31 PM, Ruben S. Montero
>         <rsmontero at opennebula.org> wrote:
>                 Hi Marlok,
>                 
>                 
>                 You need CLVM for that.
>                 
>                 
>                 Cheers
>                 
>                 
>                 Ruben
>                 
>                 On Wed, Aug 8, 2012 at 11:23 AM, Marlok Tamás
>                 <tmarlok at sztaki.hu> wrote:
>                 
>                         Hi,
>                         
>                         I tried to use the new LVM datastore, but I
>                         couldn't find out if the volume group should
>                         be clustered or not.
>                         In case of clustered vg (vgchange -cy vg_name)
>                         the tm/clone script dies with the error
>                         message:
>                         lv-one-50 must be active exclusively to create snapshot
>                         If the vg is not clustered, then the new lv
>                         (image) won't be active on all nodes. If the
>                         new image is created by the frontend, then the
>                         nodes won't see it, until i manually enter the
>                         lvchange -ay command.
>                         
>                         Thanks,
>                         
>                         tmarlok
>                         
>                         p.s.: Sorry for my poor English.
>                         
>                         
>                         
>                         _______________________________________________
>                         Users mailing list
>                         Users at lists.opennebula.org
>                         http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>                         
>                 
>                 
>                 
>                 
>                 -- 
>                 Ruben S. Montero, PhD
>                 Project co-Lead and Chief Architect
>                 OpenNebula - The Open Source Solution for Data Center
>                 Virtualization
>                 www.OpenNebula.org | rsmontero at opennebula.org |
>                 @OpenNebula
>                 
>         
> 
> 
> 
> 
> -- 
> Ruben S. Montero, PhD
> Project co-Lead and Chief Architect
> OpenNebula - The Open Source Solution for Data Center Virtualization
> www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
> 
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org





More information about the Users mailing list