Local Storage Operator Quick Start

This document describes the installation of the Local Storage Operator(LSO). This is a simple way to allocate local storage for the image registry.

Install and Configure the Local Storage Operator

  1. From the Web Console go to Operators ‣ OperatorHub

  2. In the Filter by keyword box type, “local storage”

  3. Select “Local Storage” operator

    ../_images/operatorhublocalstorage.png
  4. Click “Install”

  5. By default, the “openshift-local-storage” namespace will be used. Accept the defaults and click “Install”

  6. After install completes click “View Operator”

  7. Select the “Local Volume Discovery” tab

  8. Click “Create Local Volume Discover”

  9. Under “Node Selector” select the option based on your environment

  10. Click “Create”

  11. After this completes go to Home ‣ API Explorer

  12. In the search box search for “LocalVolumeDiscoveryResult” and click on the discovered object “LocalVolumeDiscoveryResult”

  13. Select the “Instances” tab

    ../_images/localvolumediscoveryresult.png
  14. Click the first instance name, click the YAML tab, and scroll to the bottom of the output. The last device, in this labs case “/dev/vdb” should be the correct device. Make note of the “deviceID”. Also note this device should show as “Available”.

    Important

    Using the “deviceID” will prevent future issues from happening if for some reason the order of the drives change.

  15. Repeat step 14 for each discovered instance

  16. Go to Operators ‣ Installed Operators and select “Local Storage” operator

  17. Select the “Local Volume” tab and click “Create Local Volume”

    Important

    This will automatically create pv’s that consume the entire device. If smaller pv’s are required, partition the device before creating the Local Volumes.

  18. Name the new volume, example “lso-fs”

  19. Expand “StorageClassDevice” by clicking the carrot to the right of the section

  20. Expand “Device Paths” again by clicking the carrot to the right of the section

  21. Add all the deviceID’s recording in step 14

  22. Name the Storage Class Name, example “lso-fs”

  23. Set “Fs Type” = ext4

  24. Set “Volume Mode” = Filesystem

  25. Set “Requested management state” = Managed

  26. Set “LogLevel” = Normal

  27. Click Create

    ../_images/createlocalvolumeFS.png