Hi,

I can't comment on why #3 shouldn't be used, but a quick test shows that the image is not really usable in that case. I created a partition on the src-image (1 GB), filled it up with around 500 MB of data and then did the same export you did:

rbd export --export-format 2 src-image - | rbd import - dst-image

dst-image has around 500 MB total size and does not have a partition, so it's broken. Apparently, if you use "--export-format 2" to export you should also use the same flag for import. But the result is the same if you omit the flag for both export and import. I'm not sure if that should be documented, one could argue that you should use the same flags if you want to use the dest-image the same way as the src-image. You could create a tracker issue in the category "documentation" and see what Zac thinks of it (added him in CC):

https://tracker.ceph.com/projects/ceph

Zitat von Tony Liu <tonyliu0...@hotmail.com>:

Hi,

src-image is 1GB (provisioned size). I did the following 3 tests.

1. rbd export src-image - | rbd import - dst-image
2. rbd export --export-format 2 src-image - | rbd import --export-format 2 - dst-image
3. rbd export --export-format 2 src-image - | rbd import - dst-image

With #1 and #2, dst-image size (rbd info) is the same as src-image, which is expected. With #3, dst-image size (rbd info) is close to used size (rbd du), not the provisioned size of src-image. I'm not sure if this image is actually useable when write into it.

The questions is that, is #3 not supposed to be used at all?
I checked doc, didn't see something like "--export-format 2 has to be used for
importing the image which is exported with --export-format 2 option".
Any comments?


Thanks!
Tony
_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io

Reply via email to