Yes. Can you try and confirm? Maybe another service needs to be restarted as well?Did you restart the pvedaemon.service?
Yes. Can you try and confirm? Maybe another service needs to be restarted as well?Did you restart the pvedaemon.service?
No other daemon needed. Is the path '/home/temp/' writable?Yes. Can you try and confirm? Maybe another service needs to be restarted as well?
Yes, it is. The weird aspect is that neither the CLI output nor file output work for both - successful NFS mount and unsuccessful one. I even started doubting that this is the function responsible for the mountNo other daemon needed. Is the path '/home/temp/' writable?
Ok, so the server restart helped for some reason.I tried it on my end and theserver:port
was written to my test file. Try to umount the nfs storage and runpvesm list
(possibly multiple times) to get the storage mounted again.
Try to print some extra output into the file to verify. The function should be passed.
- when mounting the offsite NAS, there is no output at all (seems that the function is not reached during execution).
No output, no matter how i try.Try to print some extra output into the file to verify. The function should be passed.
/usr/share/perl5/PVE/Storage/Plugin.pm
/usr/share/perl5/PVE/Storage.pm
--is_mountpoint
. The mount can then be done through fstab and PVE only checks if it is mounted.i try also to connect nfs with proxmox 6.1.7 with no lucky, with proxmox 5.4.13 everything okay....any ideas?Hm. Odd, as the nfs_mount method is the one that is called for the mount.
The Plugins are loaded through Storage.pm, that calls Plugin.pm and in turn that executes the method in the plugin.
This will leave you with more debugging. :/ A workaround would be to create a directory storage and set theCode:/usr/share/perl5/PVE/Storage/Plugin.pm /usr/share/perl5/PVE/Storage.pm
--is_mountpoint
. The mount can then be done through fstab and PVE only checks if it is mounted.
https://pve.proxmox.com/pve-docs/pvesm.1.html
Some as for the others. Read through the thread and try the suggestions. If nothing helps, then explain in detail your setup and start debugging.i try also to connect nfs with proxmox 6.1.7 with no lucky, with proxmox 5.4.13 everything okay....any ideas?
check_connection
function runscommand '/sbin/showmount --no-headers --exports XX.XX.XX.XX' failed: got timeout
/sbin/showmount --no-headers --exports XX.XX.XX.XX
directly in the command line and it times out on Proxmox 6, but works fine on Proxmox 5 (same behavior as when adding storage via pvesm add nfs
)showmount
version in both cases is 1.3.3check_connection
. It allowed me to add the storage to Proxmox 6. It shows with a question-mark (probably status
function fails as well), but the backup works fine.showmount
fail?rpcinfo -p XX.XX.XX.XX
fails the same way as showmount
.telnet
both 111 and 2049 ports and i can ssh
into the NAS from Proxmox 6.Hey!@Alwin
After some long interactions with the ISP and debugging on my end, here are the findings:
Question of the day is - why does
- NFS fails when
check_connection
function runs- for some reason it generates the following error
command '/sbin/showmount --no-headers --exports XX.XX.XX.XX' failed: got timeout
- it works perfectly fine on Proxmox 5
- i've tried to run
/sbin/showmount --no-headers --exports XX.XX.XX.XX
directly in the command line and it times out on Proxmox 6, but works fine on Proxmox 5 (same behavior as when adding storage viapvesm add nfs
)- the
showmount
version in both cases is 1.3.3- i've cheated and removed the failure condition from
check_connection
. It allowed me to add the storage to Proxmox 6. It shows with a question-mark (probablystatus
function fails as well), but the backup works fine.showmount
fail?
Can there be additional networking settings in Proxmox 6 compared to Proxmox 5? Again - talking about the fresh installation without any configs, settings and apps installed atop.
Update 1: Forgot to mention thatrpcinfo -p XX.XX.XX.XX
fails the same way asshowmount
.
Update 2: I seem to be able totelnet
both 111 and 2049 ports and i canssh
into the NAS from Proxmox 6.
Now i am really confused, which is a good and a bad sign at once@Vladimir Bulgaru, I didn't get around to look at it yet. But showmount uses rpc as well and since the rpcinfo fails (as with the other NFS issues in this thread), it well be an issue with the NFS implementation in the kernel.
sudo rpcinfo -p xx.xx.xx.xx
worked fine. I've exported this very same container to Proxmox 6 and to my huge surprise sudo rpcinfo -p xx.xx.xx.xx
worked fine.The container is unpriviledged.Hm... good question. Container run in their own cgroup and namespace. And it matters if they are privileged or unprivileged container. But what program version is the showmount / rpcinfo in Ubuntu?
rpcbind:
Installed: 0.2.3-0.6
Candidate: 0.2.3-0.6
Version table:
*** 0.2.3-0.6 500
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
100 /var/lib/dpkg/status
rpcbind:
Installed: 1.2.5-0.3+deb10u1
Candidate: 1.2.5-0.3+deb10u1
Version table:
*** 1.2.5-0.3+deb10u1 500
500 http://ftp.debian.org/debian buster/main amd64 Packages
100 /var/lib/dpkg/status
Quick question - have you tried usingIt would appear this interferes with destruction of machines as well. I put a machine on iSCSI storage and whenever I destroy that the task fails with "storage 'NFS2' is not online"
mount
command directly in CLI? In my case it works.rpcinfo
fails.