https://github.com/rootfs/cephfs_provisioner
https://github.com/rootfs/cephfs_provisioner
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rootfs/cephfs_provisioner
- Owner: rootfs
- Created: 2017-01-17T18:37:46.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-23T19:40:51.000Z (over 9 years ago)
- Last Synced: 2024-12-29T21:24:16.673Z (over 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cephfs provisioner
Using Ceph's Volume Client to create and destroy a CephFS volume.
# How to use it
## Create a Share
```console
# CEPH_CLUSTER_NAME=test CEPH_MON=172.24.0.4 CEPH_AUTH_ID=admin CEPH_AUTH_KEY=AQCMpH9YM4Q1BhAAXGNQyyOne8ZsXqWGon/dIQ== ./cephfs_provisioner.py -n foo -u bar
{"path": "172.24.0.4:6789:/volumes/kubernetes/foo", "user": "client.bar", "auth": "AQAE1IBYkM24NRAAV9JiNSDZuAh3xwExMv5gsw=="}
```
## Mount the share
```console
# mount -t ceph 172.24.0.4:6789:/volumes/kubernetes/foo /mnt -o name=bar,secret=AQAE1IBYkM24NRAAV9JiNSDZuAh3xwExMv5gsw==
# df -h |grep foo
172.24.0.4:6789:/volumes/kubernetes/foo 1.3G 136M 1.2G 11% /mnt
```
## Delete the Share that is created before
```console
# CEPH_CLUSTER_NAME=test CEPH_MON=172.24.0.4 CEPH_AUTH_ID=admin CEPH_AUTH_KEY=AQCMpH9YM4Q1BhAAXGNQyyOne8ZsXqWGon/dIQ== ./cephfs_provisioner.py -r -n foo -u bar
```