Configure a Ceph target
You can migrate data to a Ceph Storage bucket by configuring one as a target filesystem.
Follow these steps to create a Ceph target:
- UI
- CLI
Configure a Ceph target filesystem in the UI
- From the Dashboard, select an instance under Instances.
- In the Filesystems & Agents menu, select Filesystems.
- Select Add target filesystem.
- Enter the following details:- Filesystem Type - The type of filesystem target. Select Ceph Storage.
- Display Name - Enter a name for your target filesystem.
- Hostname - The endpoint for your Ceph filesystem.  For example, http://cephhost:7480.
- Bucket Name - The name of the Ceph bucket you're using.  For example mybucket-07.
- Access Key - Enter the access key. For example, mykey.
- Secret Key - Enter the secret key that corresponds with your access key. For example, mypassword.
 
- Within the Filesystem Properties section, enter override properties or additional properties for your Ceph filesystem by adding key/value pairs.
The following filesystem options are also available:- Chunked Encoding - Enabled by default and should be disabled for Ceph Reef version 18.2.4 and below, otherwise the creation of empty directories or zero-byte files will fail
- Path Style Access - Private stores generally expect path style access to be enabled so that buckets are visible, therefore this is enabled by default
 
- Select Save. You can now use your Ceph Storage target in data migrations.
Configure a Ceph target filesystem in the CLI
To create a Ceph target in the Data Migrator CLI,  run the filesystem add ceph command:
filesystem add ceph [--access-key] string 
                    [--bucket-name] string
                    [--disable-s3-path-style-access]
                    [--disable-s3a-chunked-encoding]
                    [--endpoint] string
                    [--file-system-id] string
                    [--properties] string
                    [--properties-files] list
                    [--secret-key] string
For guidance about access, permissions, and security when adding an Amazon S3 bucket as a target filesystem, see Security best practices in IAM.
Ceph mandatory parameters
- --access-keyThe Ceph access key. For example,- mykey.
- --bucket-nameThe name of your Ceph bucket. In the UI, this is called Bucket Name.
- --endpointThe endpoint for your Ceph bucket. For example,- http://cephtarget:7480. In the UI, this is called Hostname.
- --file-system-idThe ID for the new filesystem resource. In the UI, this is called Display Name.
- --secret-keyThe secret key to use with your access key. For example,- mypassword.
Ceph optional parameters
- --disable-s3-path-style-accessPrivate stores generally expect path style access to be enabled so that buckets are visible, therefore only use this parameter if you wish to disable this
- --disable-s3a-chunked-encodingUse this parameter for Ceph Reef version 18.2.4 and below, otherwise the creation of empty directories or zero-byte files will fail
- --propertiesEnter properties to use in a comma-separated key/value list. In the UI, this is called Filesystem Properties.
- --properties-filesReference a list of existing properties files, each containing configuration properties in the format used by- core-site.xml. This is not available in the UI as we believe this would not be needed for Ceph.
Example
filesystem add ceph --file-system-id ceph-tgt
                    --bucket-name mybucket-07
                    --access-key mykey
                    --secret-key mypassword
                    --endpoint http://cephtarget:7480
S3a properties
Enter additional properties for Ceph filesystems by adding them as key-value pairs in the UI or as a comma-separated key-value pair list with the --properties parameter in the CLI. You can overwrite default property values or add new properties.
Additional properties
Find an additional list of S3a properties in the S3a documentation.
Next steps
If you haven't already, configure a source filesystem from which to migrate data. Then, you can create a migration to migrate data to your new Ceph target.