Chapter 1. Prerequisites
To use Ceph Block Device commands on your client node, you will have to meet some prerequisites.
1.1. Execute pre-installation requirements Copy linkLink copied to clipboard!
For streamlined installation and deployment, you should execute the pre-installation procedures mentioned in Pre-Installation Requirements on your Ceph client node. Specifically, you should disable requiretty
, set SELinux to Permissive
and set up a Ceph Deploy user with password-less sudo
.
1.2. Install Ceph Common Package Copy linkLink copied to clipboard!
The ceph-common
package provides the rbd
command. To install ceph-common
package you will have to enable RH-Common
repository. Execute the following steps on client node:
Enable RH-Common repository.
For RHEL 6, execute:
sudo subscription-manager repos --enable=rhel-6-server-rh-common-rpms sudo yum update
sudo subscription-manager repos --enable=rhel-6-server-rh-common-rpms sudo yum update
Copy to Clipboard Copied! Toggle word wrap Toggle overflow For RHEL 7, execute:
sudo subscription-manager repos --enable=rhel-7-server-rh-common-rpms sudo yum update
sudo subscription-manager repos --enable=rhel-7-server-rh-common-rpms sudo yum update
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Install Ceph Common package.
Execute:
sudo yum install ceph-common
sudo yum install ceph-common
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
1.3. Enable access to the Ceph cluster Copy linkLink copied to clipboard!
The client node where you will add a block device, also needs to have access to the Ceph Storage Cluster. To be able to access the cluster, the client node will need the cluster configuration file.
Execute from the admin node
of the cluster:
ceph-deploy --overwrite-conf config push <client-node>
ceph-deploy --overwrite-conf config push <client-node>