Solved

Stale NFS between LINUX and Solaris x86

Posted on 2011-03-08
7
836 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

810 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