Skip to content

Commit

Permalink
additional ceph attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperSkytte committed Nov 11, 2024
1 parent 9757cff commit 62db2ce
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,21 @@ $ getfattr -n ceph.dir.rbytes /projects 2> /dev/null | grep "^ceph.dir.rbytes="
397.54 TB
```

??? "Additional Ceph attributes"
| Attribute | Explaination |
| --- | --- |
| ceph.dir.entries | |
| ceph.dir.files | Number of files in folder (non-recursive) |
| ceph.dir.subdirs | Number of subdirs (non-recursive) |
| ceph.dir.rentries | |
| ceph.dir.rfiles | Number of files in folder (recursive) |
| ceph.dir.rsubdirs | Number of folders in folder (recursive) |
| ceph.dir.rbytes | Size of folder (recursive) |
| ceph.dir.rctime | |

There are no explanations on these anywhere in the Ceph documentation or elsewhere, I've simply found them in the Ceph source code!


## Shared folders
If you need to give other users write access to a file/folder that you own, you need to set the group ownership of the folder to the `[email protected]` group and set the [setGID](https://www.geeksforgeeks.org/setuid-setgid-and-sticky-bits-in-linux-file-permissions/) bit on folders (to ensure child files/folders will inherit the ownership of a parent folder), see the example below. This will give **everyone** with access to the BioCloud servers full control of the files. If you only want a specific group of people to have write access, there is only one way to do that, which is to contact the university IT services to create an email address group for the specific users, and then follow the same steps below, but instead use the new email of that group.

Expand Down

0 comments on commit 62db2ce

Please sign in to comment.