NFS for ISO and VDI doesn't recognize subdirectory path
-
So, I have created a sub directory in my NFS share, then I use that in sub directory field in NFS share and it doesn't recognize that. I put manually ISO in field, and it still used main mount path.
If I create dataset, then I can use that as NFS share main mnt point, but I can't use sub directory feature.
I hope I am making sense. I am new to XCP-ng. Coming from proxmox so testing out before moving completely.
Let me know if I am missing something.
-
@testingall Have you clicked the search button at the end of the subfolder line?
-
@Darkbeldin I did my friend. Thanks for looking into problem. I really appreciate.
Edit: But it doesn't search.
-
Question for @fohdeesha
What about permissions too?
-
@Darkbeldin Tried to search the subdirectory like described in this github post with XOA free and a Debian 11 NFS server, but it does indeed not show the subdirectory.
-
@olivierlambert I was able to search main mount point when I click search under server address. All sub directory has same permission as top level folder/dataset in truenas.
-
@Darkbeldin If you rebuild the probing from SMlog and repeat that on the XCP-ng host, you can see the subdirectory (and a textfile I put there)
[17:16 H01 ~]# mount -o soft,proto=tcp,vers=3,acdirmin=0,acdirmax=0 10.10.70.143:/tmp/srv/nfs/ /tmp/nfs [17:16 h01 ~]# ls /tmp/nfs -l --color=never drwxr-xr-x 2 root root 4096 20. Apr 16:41 test -rw-r--r-- 1 root root 0 20. Apr 17:16 textfile [17:21 h01 ~]# umount /tmp/nfs
H01
is the XCP-ng host and10.10.70.143
the NFS server.
Or should that be done from XOA?Edit: I was lazy and entered the commands, automaticaly using the letter l in the ls command while the SMlog says 1. Maybe that is related.
-
@Darkbeldin Mh, in the SMlog it is ls /tmp/nfs -1 --color=never. Thats the number one but should that be the letter l? With the number one,
ls
returns.[17:31 h01 ~]# ls /tmp/nfs -1 --color=never test textfile