Re: rbd snap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 23 Sep 2011, Martin Mailand wrote:
> Hi,
> is it possible to access snapshots without to rollback the head of the rbd
> volumen?
> Because I want to do a snapshot of a vm running via librbd and qemu, and use
> the snapshot to make a offsite backup of the vm.

$ rbd export foo --snap=mysnap /path/to/foo.dump

You can also map the snapshot via qemu with a string like 
rbd:rbd/foo@mysnap.

sage


> 
> Best Regards,
>  Martin
> 
> 
> Martin Mailand schrieb:
> > Okay, with the btrfs patch and the right commandline snapshotting works like
> > a charm.
> > 
> > best regards,
> >  martin
> > 
> > Josh Durgin schrieb:
> > > On 09/16/2011 02:32 PM, Martin Mailand wrote:
> > > > root@c-brick-001:~# rbd rm --snap=2011091601 test
> > > > *** Caught signal (Segmentation fault) **
> > > > in thread 0x7f203d749740
> > > > ceph version 0.34 (commit:2f039eeeb745622b866d80feda7afa055e15f6d6)
> > > > 1: rbd() [0x457062]
> > > > 2: (()+0xfc60) [0x7f203ccf6c60]
> > > > 3: (librbd::snap_set(librbd::ImageCtx*, char const*)+0x10)
> > > > [0x7f203d32ecd0]
> > > > 4: (main()+0x59f) [0x4518ff]
> > > > 5: (__libc_start_main()+0xff) [0x7f203b6cdeff]
> > > > 6: rbd() [0x44d569]
> > > > Segmentation fault
> > > 
> > > I added a bug to the tracker for this
> > > (http://tracker.newdream.net/issues/1545). It shouldn't crash the way you
> > > ran it, but if you're trying to remove a snapshot you need to use the
> > > 'snap rm' command, i.e.:
> > > $ rbd snap rm --snap=2011091601 test
> > > -- 
> > > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> > > the body of a message to majordomo@xxxxxxxxxxxxxxx
> > > 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 majordomo@xxxxxxxxxxxxxxx
> > 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 majordomo@xxxxxxxxxxxxxxx
> 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux