How to mount persistent storage volume in pod?
I've created persistent storage and launched a pod from the storage UI. When I log in via ssh I can't see the storage volume. How do I find/mount it for use?
12 Replies
It should be under /workspace
when you launch it on your template, it says what do u want the /mount path to be
usually its by default /workspace
so anything under /workspace is persisted across anytime u use a network storage 🙂
checking that
in the UI for the pod, I see: "Volume Path: /workspace" and "Volume: rptsUS-KS-1". The latter is the persistent storage I created. However, when I log in via SSH, I don't seem to have a persistent storage volume available in the ssh console (i.e., I'm expecting to see a directory named rptsUS-KS-1 or something like that...
No
the Volume Name and the actual folder it gets mounted to
is two separate thing
the /workspace is the actual mounting point
you can think of it like:
You have an external hard drive and u sharpied in the rptsUS-KS-1
but when u plug it in, it might be under computer/harddrive
what you sharpied in isn't the same as where it gets "mounted" 🙂
you can test this by creating a .txt file in the /workspace
opening a second pod on the same network storage
and seeing if it exists there
if u want to test it 🙂
hopefully that clarifies it!
I've just done exactly that: logged in via SSH, created a directory named /root/content. Terminated the pod, deployed a new pod from the "storage" UI. Logged in to it via SSH, now the content folder is gone. I must be missing something!
/root/content
is not /workspace
from /root
cd ..
to get to /
oh!!!!
then cd to /workspace
got it, thank you !!!!
it kinda dumb
idk why the /root
is the cd ~
xD
i wish it was the /
many thanks
and not a /root folder lol
no worries ive also encountered this before lol
pain in the butt
indeed