Giter Site home page Giter Site logo

Comments (5)

bkelly16 avatar bkelly16 commented on July 20, 2024

What is the contents of that users keyring ?

You will need to either * the mds caps, or explicity give snapshot permission to the directory.

For example, the below caps for a client.samba has only read access to the root of the cephfs filesystem. But on /fsgw and below client has permission to:

  • (r)ead
  • (w)rite
  • (p) set quota and data layout
  • (s) create/delete snapshots

More info in the ceph docs's here

client.samba
	key: AQB8tOphAAAAABAAgKYR8cR8HLliC2Rmu/0n3A==
	caps: [mds] allow r path=/, allow rwps path=/fsgw
	caps: [mon] allow r
	caps: [osd] allow *

from cephgeorep.

SjamonDaal avatar SjamonDaal commented on July 20, 2024

I've tested cephgeorep with the following permissions:

client.admin
        key: 000==
        caps: [mds] allow *
        caps: [mgr] allow *
        caps: [mon] allow *
        caps: [osd] allow *

from cephgeorep.

SjamonDaal avatar SjamonDaal commented on July 20, 2024

I've created a new user with the following auth but I still receive the same message.

client.cephfs-backup
        key: 000==
        caps: [mds] allow rws path=/
        caps: [mon] allow r
        caps: [osd] allow rw pool=cephfs_data
$ cephfssyncd -d -s -v

Reading last rctime from disk.
Watching: /mnt/cephroot-backup
Checking for change.
Change detected in /mnt/cephroot-backup
Creating snapshot: /mnt/cephroot-backup/.snap/2935579snapshot1643383817.273354728
Error: Error creating snapshot path: Operation not permitted
Removing snapshot: /mnt/cephroot-backup/.snap/2935579snapshot1643383817.273354728

from cephgeorep.

SjamonDaal avatar SjamonDaal commented on July 20, 2024

It's working now on our testing cluster but I can't get it to work on our production servers. Seems to be something ceph related. Is there a setting I need to enable before snapshots are enabled or something like that? I've tried

$ ceph mds set allow_new_snaps true
Error ENOTSUP: command is obsolete; please check usage and/or man page

Running ceph version 13.2.5 mimic

from cephgeorep.

SjamonDaal avatar SjamonDaal commented on July 20, 2024

Fixed this issue. Solution: https://docs.ceph.com/en/mimic/dev/cephfs-snapshots/#creating-a-snapshot

from cephgeorep.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.