CephFS: Questions regarding Namespaces, Subvolumes and Mirroring
Dear everyone, I have several questions regarding CephFS connected to Namespaces, Subvolumes and snapshot Mirroring: *1. How to display/create namespaces used for isolating subvolumes?* I have created multiple subvolumes with the option --namespace-isolated, so I was expecting to see the namespaces returned from ceph fs subvolume info <volume_name> <subvolume_name> also returned by rbd namespace ls <cephfs_data_pool> --format=json But the latter command just returns an empty list. Are the namespaces used for rdb and CephFS different ones? *2. Can CephFS Snapshot mirroring also be applied to subvolumes?* I tried this, but without success. Is there something to take into account rather than just mirroring the directory, or is it just not possible right now? *3. Can xattr for namespaces and pools also be mirrored?* Or more specifically, is there a way to preserve the namespace and pool layout of mirrored directories? Thank you for your help! Best regrads, Jonas
On 12.01.23 17:13, Jonas Schwab wrote:
rbd namespace ls <cephfs_data_pool> --format=json But the latter command just returns an empty list. Are the namespaces used for rdb and CephFS different ones?
RBD and CephFS are different interfaces. You would need to use rados to list all objects and their namespaces. I have not found a way to only list namespaces of a pool. root@cephtest20:~# rados -p .nfs --all ls nfs01 rec-0000000000000049:nfs.nfs01.0 nfs01 export-1 nfs01 rec-000000000000002a:nfs.nfs01.1 nfs01 conf-nfs.nfs01 nfs01 rec-0000000000000049:nfs.nfs01.1 nfs01 rec-0000000000000013:nfs.nfs01.1 nfs01 grace nfs01 rec-0000000000000008:nfs.nfs01.1 nfs01 rec-0000000000000049:nfs.nfs01.2 nfs01 rec-0000000000000029:nfs.nfs01.2 nfs01 rec-0000000000000010:nfs.nfs01.1 nfs01 rec-0000000000000011:nfs.nfs01.2 nfs01 rec-0000000000000009:nfs.nfs01.0 root@cephtest20:~# rbd namespace ls .nfs root@cephtest20:~# Where "nfs01" is a namespace in the pool .nfs Regards -- Robert Sander Heinlein Consulting GmbH Schwedter Str. 8/9b, 10119 Berlin https://www.heinlein-support.de Tel: 030 / 405051-43 Fax: 030 / 405051-19 Amtsgericht Berlin-Charlottenburg - HRB 220009 B Geschäftsführer: Peer Heinlein - Sitz: Berlin
participants (2)
-
Jonas Schwab
-
Robert Sander