Guest CSI Driver

  1. Start rancher using docker in a vm and start harvester in another
  2. Import harvester into rancher from “Virtualization Management” page
  3. On rancher, enable harvester node driver at “Cluster Management” -> “Drivers” -> “Node Driver”
  4. Go back to “Cluster Management” and create a rke2 cluster using Harvester
  5. Once the created cluster is active on the “Cluster Management” page, click on the “Explore”
  6. Go to “Workload” -> “Deployment” and “Create” a new deployment, during which in the page of “Storage”, click on “Add Volume” and select “Create Persistent Volume Claim” and select “Harvester” in the “Storage Class”
  7. Click “Create” to create the deployment
  8. Verify that on the Harvester side, a new volume is created.
  9. Delete the created deployment and then delete the created pvc. Verify on the harvester side that the newly created volume is also deleted. create another deployment, say nginx:latest with 8GB storage created as step 6.
  10. “Execute shell” into the deployment above and use “dd” command to test the read & write speed in the directory where the pvc is mounted:
    • dd if=/dev/zero of=tempfile bs=1M count=5120
    • dd if=/dev/null of=tempfile bs=1M count=5120
  11. SSH into a VM created on the bare metal and run the same dd command
    • dd if=/dev/zero of=tempfile bs=1M count=5120
    • dd if=/dev/null of=tempfile bs=1M count=5120
  12. Scale down the above deployment to 0 replica and resize the pvc to 15GB on the harvester side:
  13. Double check the pvc is resized on the longhorn side.

Expected Results

  1. The cluster should have similar storage speed performance
  2. The PVC should resize and show it in the Longhorn UI