Skip to contentSkip to conversation

rbd snapshot in qemu and libvirt

DISCUSSION Martin Mailand 4 participants 9 messages Apr 18, 2012 – Apr 19, 2012

lore
Share & tools
lore
#0 lore raw

Hi List,

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

-martin

#1 lore raw

Hi,

Quoted 4 lines · Martin Mailand

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

Quoted 6 lines

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

#2 lore raw

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:

Quoted 3 lines

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

Anything in particular you are looking for?

#3 lore raw

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.

Quoted 11 lines · 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:

Quoted 2 lines

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

Quoted 7 lines
Quoted 1 line

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 [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw

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:

Quoted 23 lines

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.

Quoted 18 lines · 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:

Quoted 3 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw

Oh, I forgot to say about a patch:

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

Quoted 45 lines · 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:

Quoted 4 lines

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.

Quoted 23 lines
Quoted 21 lines · 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:

Quoted 3 lines

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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw

Hi,

Am 18.04.2012 17:52, schrieb Andrey Korolyov:

Quoted 1 line

Oh, I forgot to say about a patch:

perfect, now it works.

Thanks.

-martin

#7 lore raw
In reply to Andrey Korolyov

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

#8 lore raw
Quoted 9 lines · 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

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