On 22.12.2022 15:47, Jonas Schwab wrote:
Now the question: Since I established this setup more or less through
trial and error, I was wondering if there is a more elegant/better
approach than what is outlined above?

You can use namespace so you don't need separate pools.
Unfortunately the documentation is sparse on the subject, I use it with subvolume like this


# Create a subvolume

ceph fs subvolume create <filesystem name> <subvolume name> --pool_layout <pool name> --namespace-isolated

The subvolume is created with namespace fsvolume_<subvolume name>
You can also find the name with

ceph fs subvolume info <filesystem name> <subvolume name> | jq -r .pool_namespace


# Create a user with access to the subvolume and the namespace

## First find the path to the subvolume

    ceph fs subvolume getpath <filesystem name> <subvolume name>

## Create the user

ceph auth get-or-create client.<username> mon 'allow r' mds 'allow rw path=<subvolume path>' osd 'allow rw pool=<pool name> namespace=fsvolumens_<subvolume name>'


I have found this by looking at how Openstack does it and some trial and error.


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

Reply via email to