Hello everyone,
in this short article I want to show how to mount a longhorn volume temporally to the host system.
First, checkout on longhorn UI the name of your PVC volume: (eg. pvc-6c9...)
In the terminal, run the following command:
sudo lsblk -f
You should see this kind of output:
In my example under the sdb
device a longhorn volume is found.
Then create a directory:
sudo mkdir my-longhorn-volume
sudo mount /dev/sdb my-longhorn-volume
Now you can access the longhorn volume in the folder my-longhorn-volume
If you are finished with editing, deleting or creating files you need to unmount and remove the folder:
sudo umount /dev/sdb my-longhorn-volume
sudo rm -R my-longhorn-volume
Works awesome! Thanks for that.
Written on Tue, 07 May 2024 11:38:46 by Martin |