local-path-provisioner icon indicating copy to clipboard operation
local-path-provisioner copied to clipboard

Where can I see my files on node ?

Open k8w opened this issue 4 years ago • 1 comments

PVC created by local-path successfully. PV shows path on the Node is /opt/local-path-provisioner/pvc-b881b372-6543-4cd1-88bc-e7f01c61acf1_test_dsfhsdfhsdfhsdfh

First I execute shell in the Pod, and make a new file to the folder of PVC.

And then I step into the Node, execute:

cd /opt/local-path-provisioner/pvc-b881b372-6543-4cd1-88bc-e7f01c61acf1_test_dsfhsdfhsdfhsdfh
ls -al

Expect can see the file created in Pod, but actually see no files. But the PVC is really worked, even reboot the Node, restart the Pod, the PVC is worked, the files are keeped.

What I used is the default deploy config. So what is the actual storage path of these files on Node?

k8w avatar Jan 21 '21 13:01 k8w

Are you using k3s? In that case, you can check /var/lib/rancher/k3s/storage/ too.

ivzhh avatar Feb 24 '21 19:02 ivzhh