Hello,

in case anyone finds this post while trying to find an answer to the same question, I believe the answer is here:
https://lists.ceph.io/hyperkitty/list/ceph-users@ceph.io/message/DBJRYTMQURANFFWSS4QDCKD5KULJQ46X/

As far as I understand it:

Creating a snapshot requires to acquire the lock and with "-oexclusive" the RBD client is not going to release it. So this is not a bug.

Best regards,

Andreas

On 30.11.22 12:58, Andreas Teuchert wrote:
Hello,

creating snapshots of RBD images that are mapped with -oexclusive seems not to be possible:

# rbd map -oexclusive rbd.blu1/andreasspielt-share11
/dev/rbd7
# rbd snap create rbd.blu1/andreasspielt-share11@ateuchert_test01
Creating snap: 0% complete...failed.
rbd: failed to create snapshot: (30) Read-only file system
# rbd unmap rbd.blu1/andreasspielt-share11
# rbd map rbd.blu1/andreasspielt-share11
/dev/rbd7
rbd snap create rbd.blu1/andreasspielt-share11@ateuchert_test01
Creating snap: 100% complete...done.

I was surprised by this behavior and the documentation seems not to mention this.

Is this on purpose or a bug?

Ceph version is 17.2.5, RBD client is Ubuntu 22.04 with kernel 5.15.0-52-generic.

Best regards,

Andreas



_______________________________________________
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