Hi Bob,
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).
I configured the firewall on my storage server according to the instructions
in [1]. before that, the 'mount' command always failed for me, with/without
flags...
NFSv4: requires no firewall configuration (although I thought oVirt
handled this automatically - did you change your firewall config after
host-deploy?)
did I change my firewall config on my Host, you mean (i.e. the storage client)?
I thought that it didn't matter (i.e. only storage *server* firewall proper
configuration is important)?
but in any case: after deploying my Host, I haven't touched the firewall on
the Host, or on the storage server.
Maybe I've configured the NFS export path incorrectly within the
"/etc/exports"
file on my storage server?
This is how it appears now:
---
/path/to/export *(rw,sync)
---
maybe I am missing some parameter(s) to allow it to work properly with v3?
Thanks!
----
Regards,
Einav
[1]
http://www.cyberciti.biz/faq/centos-fedora-rhel-iptables-open-nfs-server-...
[some adjustments were needed, e.g. replacing occurrences of 'RH-Firewall-1-INPUT'
with 'INPUT', etc.]
----- Original Message -----
> From: "Bob Doolittle" <bob(a)doolittle.us.com>
> To: "Einav Cohen" <ecohen(a)redhat.com>
> Cc: "users" <users(a)ovirt.org>
> Sent: Wednesday, December 11, 2013 12:18:21 PM
> Subject: Re: [Users] add NFS storage domain fails on mount timeout via ovirt
>
> 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" <bob(a)doolittle.us.com>
> >> To: "Joop" <jvdwege(a)xs4all.nl>
> >> Cc: "users" <users(a)ovirt.org>
> >> 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" < jvdwege(a)xs4all.nl >
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
> >> Users(a)ovirt.org
> >>
http://lists.ovirt.org/ mailman/listinfo/users
> >>
> >> _______________________________________________
> >> Users mailing list
> >> Users(a)ovirt.org
> >>
http://lists.ovirt.org/mailman/listinfo/users
> >>
>
>