Quickstart
Quickstart
Four basic steps are required to set up a CephFS share with Manila:
- Obtain quota for file shares
- Create a file share
- Define the access rules for the share
- Mount the share (via Puppet or manually)
In this quickstart guide, share creation and access definition is done with the Manila command line
tools. These steps can of course also be done via the OpenStack GUI via the Share
tab.
NOTE: CephFS shares are available for Linux virtual machines only (via FUSE or the kernel client). Windows is currently not supported. If you need more space on a Windows instance, consider attaching a volume or booting from volume instead.
1. Obtain quota for CephFS shares
In order to create CephFS shares via Manila, you'll need to request some quota for your project. This is done via the 'Request Quota Change' from the overview panel in the OpenStack Dashboard. Currently, you can choose from four share types (which map to three different CephFS clusters):
- use "Geneva CephFS Testing" when you would like to do some functional testing with a CephFS backend
- use "Meyrin CephFS" for production use (after having performed some functional testing)
- use "Meyrin CephFS Vault SSD A" for production usage, hosted on an all-SSD cluster on critical power
- use "Meyrin CephFS B" when you're interested in snapshot functionality. At the moment is considered for testing usage.
2. Create a share
In order to create share on the CLI, you'll need access to the Manila client tools. We recommend to use lxplus, which has the tools installed.
Alternatively, you can install the openstack client tools install the client tools yourself or use a pre-configured Docker image on Windows or Mac OS
Once logged onto lxplus, obtain your OpenStack credentials. The first step is to find out which share types you have access to:
[lxplus]$ openstack share type list
Let's assume that you have access to share types "Geneva CephFS Testing" and "Meyrin CephFS".
If you'd like to create a 1GB share on the test cluster you can do:
```console
[lxplus]$ openstack share create --name myshare01 --share-type "Geneva CephFS Testing" CephFS 1
If you'd like to create a share on the production cluster instead use this:
```console
[lxplus]$ openstack share create --name myshare01 --share-type "Meyrin CephFS" CephFS 1
### 3. Define the access rules for the share
Still on lxplus, grant access to the share called `myshare01` to the cephx id `myauthid01`
```console
[lxplus]$ openstack share access create myshare01 cephx myauthid01
The cephx id is not related with your user or the project ID, but is an ID used by the CephFS backend to control access. If the identifier does not exist, it will be created automatically.
### 4. Mount the share
For mounting, we'll need to gather more cephx and path information to be used when configuring the clients in the next step.
First, get the cephx secret and note this down for later. You can get it with:
Your secret corresponds with the `access_key` column. This will be a random string looking like the following:
You're now ready to mount the share.
... with Puppet (recommended)
To mount your share on a Puppet-managed machine, you should use the cephfs
module documented here.
... manually (discouraged)
Otherwise, this tutorial explains how to install a cephfs client on a self-managed machine.