我要评分
获取效率
正确性
完整性
易理解

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:

  1. Ceph download mode and version information
  2. Basic network information
  3. OSD type

Perform the following steps:

  1. Open the all.yml file.
    1
    vim group_vars/all.yml
    
  2. 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.

      Table 1 Parameter description

      Parameter

      Description

      monitor_interface

      Network interface device ID.

      public_network

      Public network IP address and mask.

      cluster_network

      Cluster network IP address and mask.

    • Offline Ceph download mode
      1
      2
      3
      ceph_origin: distro
      ceph_repository: local
      ceph_stable_release: nautilus
      

Defining OSDs

Define the required OSDs by referring to Defining OSDs. After these operations are performed, the block storage deployment environment is ready.