Skip to content

Commit

Permalink
Add some more sections to the ceph configuration guide (#214)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <berendt@osism.tech>
  • Loading branch information
berendt committed Dec 5, 2023
1 parent bcc5770 commit 3dbfe6b
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions docs/guides/configuration-guide/ceph.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,14 @@ pools are to be created is `ceph.rbd`, then the parameters would be stored in
| openstack_pool_default_pg_num | 64 |
| openstack_pool_default_min_size | 0 |

## OSD Devices
## Devices

```yaml
ceph_osd_db_wal_devices_buffer_space_percent: 10
```

### Dedicated DB devices

```yaml
ceph_db_devices:
nvme0n1: # required, PV for a DB VG
Expand All @@ -143,13 +145,17 @@ ceph_db_devices:
# (VG size - buffer space (if enabled)) / num_osds
```

### Dedicated WAL devices

```yaml
ceph_wal_devices:
nvme1n1: # See above, PV for a WAL VG
num_osds: 6 # See above
wal_size: 2 GB # optional, if not set, defaults to 2 GiB
```

### Shared DB & WAL devices

```yaml
ceph_db_wal_devices:
nvme2n1: # See above, PV for combined WAL+DB VG
Expand All @@ -159,24 +165,42 @@ ceph_db_wal_devices:
wal_size: 2 GB # See above
```

### OSD devices

```yaml
ceph_osd_devices:
sda: # Device name, will be prefixed by /dev/, see above conventions
# This would create a "block only" OSD without DB/WAL
sdb: # Create an OSD with dedicated DB
```

```yaml
ceph_osd_devices:
sda: # Create an OSD with dedicated DB
db_pv: nvme0n1 # Must be one device configured in ceph_db_devices
# or ceph_db_wal_devices
sdc: # Create an OSD with dedicated WAL
```

```yaml
ceph_osd_devices:
sda: # Create an OSD with dedicated WAL
wal_pv: nvme1n1 # Must be one device configured in ceph_wal_devices
# or ceph_db_wal_devices
sdb: # Create an OSD with dedicated DB/WAL residing on different devices

```yaml
ceph_osd_devices:
sda: # Create an OSD with dedicated DB/WAL residing on different devices
db_pv: nvme0n1 # See above
wal_pv: nvme1n1 # See above
sdc: # Create an OSD with dedicated DB/WAL residing on the same VG/PV
```yaml
ceph_osd_devices:
sda: # Create an OSD with dedicated DB/WAL residing on the same VG/PV
db_pv: nvme2n1 # Must be one device configured in ceph_db_wal_devices
wal_pv: nvme2n1 # Must be the same device configured in ceph_db_wal_devices
```

### Preparation

1. Provide config stanza like above either in `group_vars` or `host_vars`
in the inventory of the configuration repository
2. Do `osism reconciler sync` and `osism apply facts`
Expand Down

0 comments on commit 3dbfe6b

Please sign in to comment.