NFS Helper
The NFS Helper app simplifies the configuration of a new NFS server or client by walking through the setup steps and exposing the various available export and mount options. On completing the steps provided by the application and clicking "Generate," a script will be provided based on the information collected. Running this script will prepare the target system for its defined role as an NFS server or client.
Was this helpful?
We appreciate your feedback. Leave a comment if you would like to provide more detail.
It looks like we have some work to do. Leave a comment to let us know how we could improve.
13 Comments
Subscriber exclusive content
An active Red Hat subscription is required to participate.
Log Inhave no chance to try it, but looks great!
the 'ADD' button in the 'NFS Client Hosts' screen doesn't work if you use an unqualified hostname. Works OK with IP address or FQDN.
When I use the tool to do a mount of NFSv4 on RHEL5 client it says uise of NFSv4 on RHEL5 is not recommended. Is that still true for later versions of RHEL5?
I've been RHEL5.9 client mounts from an NFSv4 appliance (server) for about a month with no obvious ill effects. In fact the only reason I came here was to see the recommendations for mount options on RHEL6 as we had a client not automatically mount NFSv4 from the appliance after a reboot (which I suspect is because I need to add _netdev to the mount options in fstab). My other NFS(v3) mounts from other clients are mounting fine.
P.S. Thanks Jeff Thorsen for your note about FQDN or IP.
how to Place the appropriate restrictions on all NFS shares.
Couple of problems. - Can only specify FQDN, individual IPs, or * for NFS Client Hostname. I am not entering 254 comma separated addresses when the system syntax supports /24 prefix notation. - Usage command is invalid syntax for default root environment and default user environment:
On that last one, the ^M tells me what the problem is obviously Windows control character Carriage Return or \r. Why it is in a linux script is beyond me. I downloaded the script to a Windows workstation and moved it to RHEL7 via WinSCP. I downloaded the script, compressed it with a zip file, and moved it to RHEL7 via WinSCP. I copied the text in the web browser window, pasted into a PuTTy ssh terminal on RHEL7 into a document opened with VIM. I even downloaded it directly to RHEL7 system via Firefox on Gnome3. In every single case the carriage return characters appear. It is easy to fix. But, seriously? I have to break out dos2unix or a perl script to fix this myself?
Hi Jeff,
Based on your feedback, we have updated the NFS Helper application.
Something is fubar.
I cannot download the nfsserver.sh script. The button redirects to a plain page that says "Forbidden". No way for me to tell if it is an issue with corporate firewall/proxy/network, or on the Red Hat web site side. Any suggestions? Trying to copy and paste the raw, against recommendation from the page.
Hi Jeff,
The issue that cannot download script is fixed now, I'm sorry for the inconvenience, could you please give it another try?
I have copied the text from the 'complete' page at the end of the app, added it to a file and ensured it is ready for use in a terminal (no ^M, etc.)
I have installed "nfs-utils" on the server ("minimal" environment group platform, fresh install).
I haven't performed any configuration by hand or other means.
When I execute the script as root, I get:
Can I remove this file and let the script generate a new one?
I have confirmed this is the stock file that ships/installs with the OS. Identical file exists on other systems that do not have nfs services configured or running. Contents of said file:
Hi Jeff,
The script will check if RPCMOUNTDOPTS and STATDARG is configured in /etc/sysconfig/nfs, in your case, they are both setting to "". I would suggest to add a hash tag # in front to comment out these two variables, or delete these two lines, and download the script to try again.
If there is no luck, could you please send me an email (fwang@redhat.com) with details (including all options you're selecting and the error message).
Regards, Feng Wang
Thank you Jeff. We will look at this problem as soon as possible.
when running the output "nfs_client.sh" script, I get the following:
Package nfs-utils currently installed, proceeding. Package libnfsidmap currently installed, proceeding. Package nfs4-acl-tools currently installed, proceeding. ./nfs_client.sh: line 119: warning: here-document at line 95 delimited by end-of-file (wanted `EOF') ./nfs_client.sh: line 120: syntax error: unexpected end of file
any ideas on how to fix?
The tool presumably generated the nfs_client.sh script information based on what you input. I'm not sure if it showed it to you and asked you to cut and paste to a file of that name or if it gave you one to download.
A "here-document" is setup that allows one to execute multiple commands as a group almost as if they are one. Typically it begins with a redirection (<<) from the final line which is often the literal text "EOF" (e.g. <<EOF). That tells it to do all the commands that follow until it sees the text specified (e.g. EOF). The error you got said there is no text "EOF" before it gets to the actual end of file (which is also called EOF just to confuse everyone).
If you cut and pasted the script you may have left out the literal "EOF" text (and maybe more). If it gave you a script to download it may have had a bug in that it left out the literal "EOF".
Note that although "EOF" is usual for here-documents it is possible to use other text instead.
I found that on RHEL7, it was necessary to remove four extra space characters at the beginning of the following lines:
These spaces prevent detection of the here-document end text "EOF".
I also found that in nfs_server.sh, on line 58, a backslash-n was being parsed as a newline prior to (or during) the file being downloaded, instead of being left as text.
The resulting script enables/starts the rpcbind service even when NFS version 4.2 is selected. According to https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/deploying_different_types_of_servers/exporting-nfs-shares_deploying-different-types-of-servers#services-required-by-nfs_exporting-nfs-shares rpcbind is not required for NFS v4.
Also the mountd service is required only when NFSv3 clients need access to the share.
It would also be nice if you generate an ansible playbook instead of shell script. Most of the functions are redundant (i.e. built in) when using an ansible to achieve the same result.
The script generation is excellent!!! So how do I say "thank you" but prefer to read the documentation and write my script without offending anyone? I need to read the documentation to understand the process and protocol. Then, I need to write the script to build my skill set. I did this, configuring NFS and NIS, thirty years ago or so. Now it is setting up LDAP or Kerberos for authentication and configuring NFS. The script configuration tool is still fantastic!!! I need to struggle a little to have that feeling of accomplishment at the end of the day.