Open etlfg opened 10 months ago
Hi @etlfg, I was trying to use shared mount also, and was able to do it successfully. So i thought to give it a try with yamls you provided, and here as well it worked for me. I can see shared: yes
in -o yaml of zfsvolume CR. Does this issue still persist for you? I would suggest to give it a try once again.
One point i want to check that:
poolname: data/import
but in your zfs volume and PV yamls i see that it is only poolName: data
. Can you confirm that by any chance your storage class yaml was different while provisiong the volume ?
What steps did you take and what happened:
I can't get two pods running on the same node to access to one given dataset.
I've been reading all the issues and docs I can about sharing a dataset between pods.
But I can't get out of
MountVolume.SetUp failed for volume "consume-pv" : rpc error: code = Internal desc = rpc error: code = Internal desc = verifyMount: device already mounted at [/var/lib/k0s/kubelet/pods/7f3fc9cd-5e94-4d32-9e59-3ae0caa41fc4/volumes/kubernetes.io~csi/import-pv/mount /host/var/lib/k0s/kubelet/pods/7f3fc9cd-5e94-4d32-9e59-3ae0caa41fc4/volumes/kubernetes.io~csi/import-pv/mount]
I don't get either the shared-yes param in my ZFSVolume as stated https://github.com/openebs/zfs-localpv/issues/152#issuecomment-653511445
Here are my curated resources :
What did you expect to happen:
I'm expecting that the two pods share the same ZFS dataset to get only one destination to put my files (the two applications have dicern concerns depending on the files put in It).
Environment:
zfs-driver:2.4.0
kubectl version
):k0s v1.28.4+k0s.0
Odroid HC4
/etc/os-release
):Armbian 23.11.1 bookworm
6.1.63-current-meson64
Thanks in advance for providing me any clue about this..