Re: rbd snapshot in qemu and libvirt

2012-04-18 Thread Wido den Hollander

Hi,

On 04/18/2012 03:08 PM, Martin Mailand wrote:

Hi List,

does anyone know the actual progress of the rbd snapshot feature
integration into qemu and libvirt?


I tested this about a year ago and that worked fine.

Anything in particular you are looking for?

Wido



-martin
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: rbd snapshot in qemu and libvirt

2012-04-18 Thread Martin Mailand

Hi Wido,

I am looking for doing the snapshots via libvirt, create, delete, 
rollback and list of the snapshot.


-martin

Am 18.04.2012 15:10, schrieb Wido den Hollander:

I tested this about a year ago and that worked fine.

Anything in particular you are looking for?


--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: rbd snapshot in qemu and libvirt

2012-04-18 Thread Andrey Korolyov
I have tested all of them about a week ago, all works fine. Also it
will be very nice if rbd can list an actual allocated size of every
image or snapshot in future.

On Wed, Apr 18, 2012 at 5:22 PM, Martin Mailand  wrote:
> Hi Wido,
>
> I am looking for doing the snapshots via libvirt, create, delete, rollback
> and list of the snapshot.
>
> -martin
>
> Am 18.04.2012 15:10, schrieb Wido den Hollander:
>
>> I tested this about a year ago and that worked fine.
>>
>> Anything in particular you are looking for?
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: rbd snapshot in qemu and libvirt

2012-04-18 Thread Martin Mailand

Hi Andrey,

if I try it I get this error.

virsh snapshot-create linux1
error: Requested operation is not valid: Disk 
'rbd/vm1:rbd_cache_enabled=1' does not support snapshotting


maybe the rbd_cache option is the problem?


-martin


Am 18.04.2012 16:39, schrieb Andrey Korolyov:

I have tested all of them about a week ago, all works fine. Also it
will be very nice if rbd can list an actual allocated size of every
image or snapshot in future.

On Wed, Apr 18, 2012 at 5:22 PM, Martin Mailand  wrote:

Hi Wido,

I am looking for doing the snapshots via libvirt, create, delete, rollback
and list of the snapshot.

-martin

Am 18.04.2012 15:10, schrieb Wido den Hollander:


I tested this about a year ago and that worked fine.

Anything in particular you are looking for?



--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: rbd snapshot in qemu and libvirt

2012-04-18 Thread Andrey Korolyov
Oh, I forgot to say about a patch:

https://www.redhat.com/archives/libvir-list/2012-March/msg01369.html

On Wed, Apr 18, 2012 at 6:55 PM, Martin Mailand  wrote:
> Hi Andrey,
>
> if I try it I get this error.
>
> virsh snapshot-create linux1
> error: Requested operation is not valid: Disk 'rbd/vm1:rbd_cache_enabled=1'
> does not support snapshotting
>
> maybe the rbd_cache option is the problem?
>
>
> -martin
>
>
> Am 18.04.2012 16:39, schrieb Andrey Korolyov:
>
>> I have tested all of them about a week ago, all works fine. Also it
>> will be very nice if rbd can list an actual allocated size of every
>> image or snapshot in future.
>>
>> On Wed, Apr 18, 2012 at 5:22 PM, Martin Mailand
>>  wrote:
>>>
>>> Hi Wido,
>>>
>>> I am looking for doing the snapshots via libvirt, create, delete,
>>> rollback
>>> and list of the snapshot.
>>>
>>> -martin
>>>
>>> Am 18.04.2012 15:10, schrieb Wido den Hollander:
>>>
 I tested this about a year ago and that worked fine.

 Anything in particular you are looking for?
>>>
>>>
>>>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>>> the body of a message to majord...@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: rbd snapshot in qemu and libvirt

2012-04-18 Thread Martin Mailand

Hi,

Am 18.04.2012 17:52, schrieb Andrey Korolyov:

Oh, I forgot to say about a patch:


perfect, now it works.

Thanks.

-martin
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: rbd snapshot in qemu and libvirt

2012-04-19 Thread Martin Mailand

Hi List,

is it possible to quiesce the disk before a snapshot? Or does it make no 
sense with rbd?

How about the new rbd_cache, does it get flushed before the snapshot?

I would like to use it like this.

virsh snapshot-create --quiesce $DOMAIN

-martin
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: rbd snapshot in qemu and libvirt

2012-04-19 Thread Sage Weil
On Thu, 19 Apr 2012, Martin Mailand wrote:
> Hi List,
> 
> is it possible to quiesce the disk before a snapshot? Or does it make no sense
> with rbd?
> How about the new rbd_cache, does it get flushed before the snapshot?
> 
> I would like to use it like this.
> 
> virsh snapshot-create --quiesce $DOMAIN

librbd does flush before taking a snapshot.  I haven't seen --quiesce 
before, but it looks like it does exactly what I would want it to 
(freeze+thaw the fs inside the VM).

Let us know how it works for you!
sage

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html