[one-users] Concurrent disk access

Carlos Martín Sánchez cmartin at opennebula.org
Tue Dec 13 03:01:12 PST 2011


Hi Richard

There are two different file operations: copy the image from its current
path to the image repository, and the copy of that image to the execution
host.

Since you are using tm_shared, the image files won't be copied for each
deployment if they are persistent.
As you pointed out, the image will still be copied once to the image
repository, but this can be customized. The image repository drivers are
located in /var/lib/one/remotes/image/fs/. You can edit the
'/var/lib/one/remotes/image/fs/cp' file to change the 'cp' commands to
'mv'.

Regards
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | cmartin at opennebula.org |
@OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>


On Mon, Dec 12, 2011 at 4:09 PM, Fabian Wenk <fabian at wenks.ch> wrote:

> Hello Richard
>
>
> On 12.12.2011 00:55, richard -rw- weinberger wrote:
>
>> On Mon, Dec 12, 2011 at 12:50 AM, Steven Timm<timm at fnal.gov>  wrote:
>>
>>>  What kind of transfer method are you using?  shared, ssh, lvm?
>>>  You can load the .raw file into the image repository, make
>>>  it persistent, and that will take care of it.
>>>
>>
>> I'm using shared.
>>
>> But if I use the image repository, it will *copy* my image at least once,
>> right?
>> My images are very big.>500GiB.
>>
>
> Yes, it will be copied, unless you use NFS or any other shared storage for
> the images repository. Using a registered image is the only chance for
> OpenNebula to know that a certain image is being used by a VM. This will be
> updated in the images table in the database. OpenNebula does not care about
> a more then once used path to a disk in the VM template.
>
>
> bye
> Fabian
>
> ______________________________**_________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20111213/bd6e46d6/attachment-0002.htm>


More information about the Users mailing list