RBD export format for start and end snapshots

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

 



Good day!  I am working on a robust backup script for RBD and ran into a need to reliably determine start and end snapshots for differential exports (done with rbd export-diff).

I can clearly see these if dumping the ASCII header of the export file, e.g.:

iss@lab2-b1:/data/volume1$ strings exp-tst1-spin1-sctst1-0111-174938-2016-cons-thin.scexp|head -3
rbd diff v1
auto-0111-083856-2016-tst1t
auto-0111-174856-2016-tst1s

It appears that "auto-0111-083856-2016-tst1" is the start snapshot (followed by t) and "auto-0111-174856-2016-tst1" is the end snapshot (followed by s).

Is this the best way to determine snapshots and are letters "s" and "t" going to stay the same?

Best regards,
--
Alex Gorbachev
Storcium
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux