The Ceph File System, or CephFS, is a POSIX-compliant file system built on top of Ceph’s distributed object store, RADOS.
CephFS for repository¶
3 Folders were created for each environment:
Production environment - Quota 10TB
/invenio/invenioprod: client 'fsinvenioprod', Secret in Sesam
Test environment - Quota 1TB
/invenio/inveniotest: client 'fsinveniotest', Secret in Sesam
Dev environment - Quota 1TB
/invenio/inveniodev: client 'fsinveniodev', Secret in Sesam
In this guideline we will take a look on how the
CEPH FS is configired for the production environment.
Which is also the same for
apt install ceph-common
Create a file¶
Create a file, and add the secret from sesam.tugraz
Create a mount path¶
Create a directory which will be mounted to the CEPH FS.
This will temporarily mount the directory
`/storage to the
mount -t ceph <ip:port>:/invenio/invenioprod /storage -o name=fsinvenioprod,secretfile=/etc/ceph/ceph.client.fsinvenioprod
Check mounted file systems:¶
Filesystem Size Used Avail Use% Mounted on <ip:port>:/invenio/invenioprod size 0 size 0% /storage
After this temporarily mounting works, we will unmount it so later we can configure it properly.
Add Mount configuration¶
/etc/fstab file and edit it as below:
# <file system> <mount point> <type> <options> <dump> <pass> <ip:port>:/invenio/invenioprod /storage ceph _netdev,name=fsinvenioprod,secretfile=/etc/ceph/ceph.client.fsinvenioprod 0 0