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 -a
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'.

NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
loop0     7:0    0 55.6M  1 loop /snap/core18/2667
loop1     7:1    0 63.3M  1 loop /snap/core20/1778
loop2     7:2    0 91.9M  1 loop /snap/lxd/24061
loop3     7:3    0 49.6M  1 loop /snap/snapd/17883
loop4     7:4    0 50.6M  1 loop /snap/oracle-cloud-agent/48
loop5     7:5    0        0 loop
loop6     7:6    0        0 loop
loop7     7:7    0        0 loop
sda       8:0    0 46.6G  0 disk
├─sda1    8:1    0 46.5G  0 part /
├─sda14   8:14   0    4M  0 part
└─sda15   8:15   0  106M  0 part /boot/efi
sdb       8:16   0    1T  0 disk
sdc       8:32   0    1T  0 disk

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.