R
RunPod•11mo ago
TRSML

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
justin
justin•11mo ago
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 🙂
TRSML
TRSMLOP•11mo ago
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...
justin
justin•11mo ago
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!
TRSML
TRSMLOP•11mo ago
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!
justin
justin•11mo ago
/root/content is not /workspace from /root cd .. to get to /
TRSML
TRSMLOP•11mo ago
oh!!!!
justin
justin•11mo ago
then cd to /workspace
TRSML
TRSMLOP•11mo ago
got it, thank you !!!!
justin
justin•11mo ago
it kinda dumb idk why the /root is the cd ~ xD i wish it was the /
TRSML
TRSMLOP•11mo ago
many thanks
justin
justin•11mo ago
and not a /root folder lol no worries ive also encountered this before lol pain in the butt
TRSML
TRSMLOP•11mo ago
indeed
Want results from more Discord servers?
Add your server