Configuring Block Storage
Defining Ceph Service Requirements
Select the services required by the cluster. The services required in the block storage scenario include MONs and OSDs.
1 2 3 | cd .. cp site.yml.sample site.yml vim site.yml |

Defining the Cluster Host Service
Open the hosts file in the ceph-ansible directory.
1 | vi hosts
|
Modify the applications on each node in the cluster as required.

Defining the Ceph Cluster Configuration
Modify the all.yml file in the group_vars directory, including:
- Ceph download mode and version information
- Basic network information
- OSD type
Perform the following steps:
- Open the all.yml file.
1vim group_vars/all.yml - Modify the configuration in the file as follows:
- Online Ceph download mode
1 2 3 4 5 6 7 8 9 10 11
ceph_origin: repository ceph_repository: community ceph_mirror: http://download.ceph.com ceph_stable_release: nautilus ceph_stable_repo: "{{ ceph_mirror }}/rpm-{{ ceph_stable_release }}" ceph_stable_redhat_distro: el7 monitor_interface: enp133s0 journal_size: 5120 public_network: 172.19.106.0/0 cluster_network: 172.19.106.0/0 osd_objectstore: bluestore
Table 1 describes the parameters.
- Offline Ceph download mode
1 2 3
ceph_origin: distro ceph_repository: local ceph_stable_release: nautilus
- Online Ceph download mode
Defining OSDs
Define the required OSDs by referring to Defining OSDs. After these operations are performed, the block storage deployment environment is ready.