Selecting storage disks in advance

Generate the storage disk selection before an unattended run so that you can review it and supply it in the site configuration file.

The LCM discovers the storage disks during installation. Cloudera recommends that you generate the selection in advance for an unattended run, so that you can review it.

  • The storage disks meet the conditions in Storage disks.
  • The disks are wiped of stale data.
  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:<lcm-tag> \
      --nodes <host-address-1> <host-address-2> <host-address-3> \
      --ssh-user <ssh-user> \
      --ssh-key <ssh-key-path>
  2. Review the output, which is a configuration block. By default, it includes only clean disks.
    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
  3. Add the block to your site configuration file.

When the selection is present in a configuration file, the LCM skips automatic discovery and uses the supplied values. Keys can be addresses or host names, because the LCM resolves both against the inventory. The LCM derives the block storage backends and volume types from the discovered device classes, so you do not configure them.