Mounting additional storage to a Kubernetes node

You may sometimes need to mount an additional storage to the Kubernetes nodes to expand the schedulable storage. This can be achieved by following the steps given below.

Steps to mount additional storage

  1. Log in to the Rancher UI.

  2. Select Longhorn in the left panel, and then click Longhorn on Overview section.

  3. On the Longhorn UI, click Node on the top menu bar.

  4. On the Node screen, go to the dropdown menu against the node to which you want to mount the additional storage, and then click Edit node and disks.

  5. On the Edit Node and Disks screen, do the followings:

    1. Scroll down to the bottom of the screen and click Add Disk.

    2. In the Name field, enter a name for the storage disk that you want to add.

    3. In the Path field, enter the path, for example, /mnt/storage, where the disk is located.

    4. In the Storage Reserved field, enter the storage space (out of the total additional storage), that you want to keep reserved.
      It is recommended that you keep 20% of the total additional storage reserved for internal use.

    5. In the Scheduling field, select Enable to make the storage schedulable.

    6. Click Save.