I was trying to back up volumes created in Ceph using *rbd export* and *rbd
import*. For incremental backups, I used *rbd export-diff*.

I was able to take the full backup using *rbd export*, but when I tried to
import the incremental backup using *rbd import-diff*, I encountered an
error:

Steps I followed to take the backup:

# cd volume-ee6f1396-7082-4475-bc0e-d7005b3331db/

# rbd snap create
volumes/volume-ee6f1396-7082-4475-bc0e-d7005b3331db@snap1-$(date
+%Y%m%dT%H%M)

# rbd export
volumes/volume-ee6f1396-7082-4475-bc0e-d7005b3331db@snap1-20250820T1227
snap1-20250820T1227.rbd2 --export-format

--------- Write data in to the volume

# rbd snap create
volumes/volume-ee6f1396-7082-4475-bc0e-d7005b3331db@snap2-$(date
+%Y%m%dT%H%M)

# rbd snap ls volumes/volume-ee6f1396-7082-4475-bc0e-d7005b3331db
SNAPID  NAME                 SIZE   PROTECTED  TIMESTAMP
   202  snap1-20250820T1227  1 GiB             Wed Aug 20 12:27:16 2025
   203  snap2-20250820T1231  1 GiB             Wed Aug 20 12:31:08 2025

# rbd export-diff
volumes/volume-ee6f1396-7082-4475-bc0e-d7005b3331db@snap2-20250820T1231
--from-snap snap1-20250820T1227 snap2-20250820T1231.rbdiff

# ls -lh
total 782M
-rw-r--r-- 1 adminuser adminuser 600M Aug 20 12:30 snap1-20250820T1227.rbd2
-rw-r--r-- 1 adminuser adminuser 182M Aug 20 12:37
snap2-20250820T1231.rbdiff

# rbd import snap1-20250820T1227.rbd2 volumes/vm1
Importing image: 100% complete...done.

# rbd import-diff snap2-20250820T1231.rbdiff volumes/vm1
start snapshot 'snap1-20250820T1227' does not exist in the image, aborting
Importing image diff: 0% complete...failed.
rbd: import-diff failed: (22) Invalid argument

Thanks and Regards
Vishnu Bhaskar
Acceleron Labs Pvt Ltd
Bangalore, India
_______________________________________________
ceph-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to