Solved

Stale NFS between LINUX and Solaris x86

Posted on 2011-03-08
7
833 Views
Last Modified: 2013-12-21
I have a serious issue with NFS mounts going stale between some RHEL servers and a Solaris 10 x86 server.

I am presenting a number of NFS shares from a Solaris 10 x86 server and mounting them on a series of RHEL servers.  Occasionally I need to take the Solaris server offline for software updates, this causes a large number of the LINUX servers to report that the NFS mounts have gone stale.  There are around 400 RHEL servers in total and manually refreshing the mount points is a seriously time consuming task.

Does anyone have any insight as to why the mounts go stale and what, if any, automation could be put in place to re-connect the shares to save my UNIX managers from manually re-connecting each of the mounts.
0
Comment
Question by:phil_howell
7 Comments
 
LVL 12

Expert Comment

by:upanwar
ID: 35068101
SInce you have your NFS server on Solaris box so when it goes down then your mounts go stale. The good way for this is use autofs in Linux to mount NFS share.
0
 
LVL 22

Expert Comment

by:blu
ID: 35069257
Of course, while the server is down it is inaccessible. When it comes back up, the NFS handles the clients have should work again, unless the configuration of the server has changed such that the exported file systems have changed device numbers. That shouldn't usually happen unless you are mounting and
unmounting local file systems on the server.  Are you adding new storage?
0
 

Author Comment

by:phil_howell
ID: 35069649
Thanks guys - my hands on team are just checking whether we're using 'autofs' at the moment and looking at the impact of enabling might be if we don't have it.

Blu - we did have issues with the device numbers changing in the past but my storage and UNIX team tell me that they've eliminated that issue now.
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 38

Expert Comment

by:yuzh
ID: 35076271
use automount for NFS clients, also check the /etc/default/nfs in your Solsris box, you might need to modify the value for NFSD_SERVERS (Max number of concurrent NFS request), the default value is 16.

you can increase to 32, 64 or 128,  if you have more than one CPU you can bump that up to 256, but try 32 first.

also check you Linux NFS client version, the Solaris 10 x 86 is running is running on v4 by default.

If you want the NFS server run on v3, you need to set
NFS_SERVER_VERSMAX=3

If you modify any value in /etc/default/nfs , you need to restart nfsd (the NFS server daemon).

also you need you make sure you have proper configure the NAME service to make sure the NFS server and client can know each other, (eg use, DNS, /etc/hosts, NIS, LDAP etc)
0
 
LVL 6

Accepted Solution

by:
JRoyse earned 500 total points
ID: 35082888
Automount is a good idea.

If this is a critical filesystem you could try mounting the clients with a "hard" mount.  You probably are mouting the clients with a "soft" mount.  Sometimes this hangs the client for a bit while the server gets restarted.

You could also build a script to run from cron on the clients to check the mount status and remount the clients.

You could also think about using a NAS/SAN for the mountpoint if this server gets rebooted a lot.
0
 
LVL 38

Expert Comment

by:yuzh
ID: 35089598
You also need to make sure that the NFS server is not overloaded.
0
 

Author Closing Comment

by:phil_howell
ID: 35231327
Thanks all
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now