Skip to content

Part 1: Setup

What Will You Do

This is Part 1 of a multi-part, self-paced quick start exercise. In this part, you will configure the cluster nodes with the storage role to be able to utilize the Rook Ceph capabilities in the managed storage add-on.


Validate Raw Storage Device

First, you will confirm the nodes in the cluster have a raw device attached. Note that the managed storage addon will utilize all raw devices on the node.

  • Open a shell within each node in the cluster
  • Execute the following command to list all block devices

lsblk -f
The output of the command should show the raw devices. In the below output, we can see two 1TB devices with names 'sdb' and 'sdc'. If the FSTYPE field is not empty, there is a filesystem on top of the corresponding device.

NAME    FSTYPE   LABEL           UUID                                 FSAVAIL FSUSE% MOUNTPOINT
loop0   squashfs                                                            0   100% /snap/core18/2538
loop1   squashfs                                                            0   100% /snap/oracle-cloud-agent/42
loop2   squashfs                                                            0   100% /snap/snapd/16292
loop3   squashfs                                                            0   100% /snap/lxd/22753
loop4   squashfs                                                            0   100% /snap/core20/1593
sda
├─sda1  ext4     cloudimg-rootfs a51db32c-3f36-498b-aee6-e521a5e37fef   42.9G     5% /
├─sda14
└─sda15 vfat     UEFI            71F6-4A03                              99.2M     5% /boot/efi
sdb
sdc

Add Storage Role

Next, you will add custom labels to the nodes in the cluster which contain the raw block devices in order to configure the nodes as storage nodes.

Note

The addition of the custom labels is not done automatically to ensure that admins can select the nodes which need to act as the storage nodes.

  • In the console, navigate to your project
  • Select Infrastructure -> Clusters
  • Click on the cluster name in the cluster card
  • Click on the "Nodes" tab
  • Click "Overview"
  • Click "Edit Labels"
  • Click "Create Key-Value Label"
  • Enter "role" as the key and enter "storage" as the value
  • Click "Create Key-Value Label"
  • Enter "storage" as the key and enter "rook-ceph" as the value
  • Click "Save"

Storage Role


Recap

At this point, you have prepared the cluster nodes for the managed storage add-on.