Be aware that I've also had issues where v4 failed but v3 worked. This happened when trying to export storage from the non-root partition. v4 is fussier in that regard although I'm sure it's configurable somehow.

So the most general case I've found is to stick with v3, but make sure the firewall is properly configured on the storage server (or turn it off).

In summary, the advantages (I've found) of each:

NFSv3: requires no NFS configuration to export storage from non-root partitions (useful if you might want to upgrade your OS some day, although oVirt will have to deliver the feature for importing existing domains simply).

NFSv4: requires no firewall configuration (although I thought oVirt handled this automatically - did you change your firewall config after host-deploy?)

Good luck,
   Bob

On 12/11/2013 12:02 PM, Einav Cohen wrote:
Thanks Bob/Joop - checking the "Override Default Options"
checkbox and selecting "V4" in the "NFS Version" drop-down
within the "Advanced Parameters" section before hitting "OK"
in the 'New Domain' dialog did the trick.

----
Regards,
Einav

----- Original Message -----
From: "Bob Doolittle" <[email protected]>
To: "Joop" <[email protected]>
Cc: "users" <[email protected]>
Sent: Wednesday, December 11, 2013 11:20:01 AM
Subject: Re: [Users] add NFS storage domain fails on mount timeout via ovirt



Yes. In my experience when v4 works and v3 does not it's because of firewall
issues on the server.

-Bob
On Dec 11, 2013 11:17 AM, "Joop" < [email protected] > wrote:


Einav Cohen wrote:


Hi,
When trying to add an NFS Export domain via oVirt-engine, it fails on
"Problem while trying to mount target". when checking the vdsm.log, it seems
that the problem is mount time-out.
when I tried to manually run the mount command, in the exact same manner as
vdsm, it indeed failed on Connection timed out after ~3 minutes or so:
[root@localhost vdsm]# /usr/bin/mount -t nfs -o soft,nosharecache,timeo=600,
retrans=6,nfsvers=3 1.2.3.4:/home/ecohen/public/ export/engine/storage/195/
iscsi-dc/export /rhev/data-center/mnt/ 11.2.3. 4:_home_ecohen_public_export_
engine_storage_195_iscsi-dc_ export mount.nfs: Connection timed out
but - when trying to run the mount command again, with the exact same mount
source and mount target, but without any additional parameter, it succeeded
(after ~10 seconds): [root@localhost vdsm]# /usr/bin/mount
10.18.57.137:/home/ecohen/ public/export/engine/storage/ 195/iscsi-dc/export
/rhev/data-center/mnt/10.18. 57.137:_home_ecohen_public_
export_engine_storage_195_ iscsi-dc_export

My guesss its NFSv3 vs NFSv4

Joop

______________________________ _________________
Users mailing list
[email protected]
http://lists.ovirt.org/ mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/users

Reply via email to