Re: CephFS: Isolating folders for different users

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



One side affect of using sub volumes is that you can then only take a snap
at the sub volume level, nothing further down the tree.

I find you can use the same path on the auth without the sub volume unless
I’m missing something in this thread.

On Mon, Jan 2, 2023 at 10:21 AM Jonas Schwab <
jonas.schwab@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

> Thank you very much! Works like a charm, except for one thing: I gave my
> clients the MDS caps 'allow rws path=<subvolume path>' to also be able
> to create snapshots from the client, but `mkdir .snap/test` still returns
>      mkdir: cannot create directory ‘.snap/test’: Operation not permitted
>
> Do you have an idea what might be the issue here?
>
> Best regards,
> Jonas
>
> PS: A happy new year to everyone!
>
> On 23.12.22 10:05, Kai Stian Olstad wrote:
> > 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' 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.
> >
> >
> _______________________________________________
> ceph-users mailing list -- ceph-users@xxxxxxx
> To unsubscribe send an email to ceph-users-leave@xxxxxxx
>
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux