Selecting storage disks in advance

Generate the storage disk selection before installation to review it, which Cloudera recommends for an unattended run.

The life-cycle manager discovers the storage disks during installation, and you can also generate the selection beforehand to review it. Cloudera recommends generating it in advance for an unattended run. To generate the selection, perform the following steps.

  1. Run the disk discovery helper against the storage hosts.
    sudo podman run --rm \
      -v /root/.ssh:/root/.ssh:ro \
      --entrypoint discover-disks.py \
      registry-host/ccc/cloudera/ccc-lcm:tag \
      --nodes 192.0.2.11 192.0.2.12 192.0.2.13 \
      --ssh-user ssh-user \
      --ssh-key ssh-key-path
  2. Review the output, which is a configuration block ready to paste into a configuration file.
  3. Add the block to your site configuration file.

The helper includes only clean disks by default. The output has the following form:

storage_disk_selection:
  192.0.2.11:
    - /dev/disk/by-id/nvme-SAMPLE_DEVICE_0001  # nvme, 6.4T
    - /dev/disk/by-id/nvme-SAMPLE_DEVICE_0002  # nvme, 6.4T
  192.0.2.12:
    - /dev/disk/by-id/nvme-SAMPLE_DEVICE_0003  # nvme, 6.4T

When the selection is present in a configuration file, the life-cycle manager skips automatic discovery and uses the supplied values. Keys can be addresses or hostnames, because both are resolved against the inventory.