New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Need Help]When I upload a file directly to the server's mount path of kadalu pvc, the file cannot be identified in the corresponding pod. #1032
Comments
This is not a use case which is supported by Gluster. Gluster has some internal data which gets added along with the file when created using mountpoint. They will be missing when the file gets added directly. |
Besides Gluster's own support, is this issue related to the type of kadaluStorage? Because in another k8s cluster, I created kadaluStorage using the replica2 and replica3 types, and I directly uploaded files to the mount paths of these two types of servers. They were able to be read normally in the pod.Or, this issue is only caused by the characteristics of Glusterfs when a single node uses Gluster to store files? |
Yes it might be because of type of kadalustorage selected. But anyway as @amarts stated, here storage use case is to store the data from client side and retrieve from server nodes. |
Okay, thank you very much |
That works because replica2 (or replica3) does a self-heal logic). In case of replica1 (or is called But in general, its a good practise to never write directly to backend. (think of you updaing a xfs / ext4 block directly while FS is mounted, it would corrupt the system). |
I have a single-node Kubernetes cluster and am using Kadalu as my storage. When creating the Kadalu storage, I set the type to replica1 and configured the storage to a path created on the server. Then I defined my own PVC for use in my application. When my pod starts, I obtain the detailed mount path of subvol/xxx/xxx from the PV on the server. However, when I directly upload files to the server's mount path, the application cannot recognize them. Examining the file type in the pod shows something abnormal.Like this,
ls: cannot access 'nlp_test.csv': No data available
-????????? ? ? ? ? ? nlp_test.csv
But it's normal for me to upload via the frontend.
Thanks.
The text was updated successfully, but these errors were encountered: