What is in a Longhorn volume?

Assume that the volume is in the detached state (no workload pod is using the volume), you can:

  1. Go to Longhorn UI, attach the volume to node-1
  2. SSH into node-1. Run ls -l /dev/longhorn. You will see the block device with the name VOLUME-NAME
  3. Mount the block device to a directory on the node-1 by: sudo mount /dev/longhorn/<VOLUME-NAME> /mnt/
  4. Now you can access the data at /mnt. Try ls /mnt
1 Like