Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-19-2008, 02:07 PM
|
#1
|
Member
Registered: Apr 2004
Location: Queens, NY
Distribution: Red Hat, Solaris
Posts: 295
Rep:
|
Breaking out of hanging df -h when NFS shares are unreachable.
Hi! We have had several instances where we would issue a "df -h" to see if our NFS shares are mounted where we experience hangs when they are not avalible. I have tried the classic ctrl+c using the bash shell with no luck can someone offer a better solution? The entire terminal seems to just hang and we cannot break out of it.
Thanks
|
|
|
10-19-2008, 09:14 PM
|
#2
|
Senior Member
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Rep:
|
Check your mount commands in /etc/fstab. If you have soft mount, it will wait until it receives a response.
|
|
|
10-20-2008, 01:24 AM
|
#3
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
|
You can try Control-Z instead of Control-C or just run the df command in background to avoid the issue.
|
|
|
10-20-2008, 08:29 AM
|
#4
|
Senior Member
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Rep:
|
The console session will hang until it sees something, do and see do you turn up anything interesting? An interesting option is -l: This will return only locally mounted disks, and will ignore NFS systems.
BTW, any idea why your NFS disk is not responding to df?
|
|
|
10-20-2008, 07:10 PM
|
#5
|
Member
Registered: Apr 2004
Location: Queens, NY
Distribution: Red Hat, Solaris
Posts: 295
Original Poster
Rep:
|
Thank you for your replies irishbitte and jlliagre. I normally run "df -h" but on accident sometimes run a "df -h" which returns all mounted disks. The reason they are not mounted is because we have a netapp filer that gets powered on last on some instances. Thus the solaris boxes freak out when they can't mount the mount points. I will add soft nfs mount points and try the Ctrl+Z next time they lock up to see if it helps.
|
|
|
10-21-2008, 09:29 AM
|
#6
|
Senior Member
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Rep:
|
My suggestion is that you change your process, and try to ssh into your netapp box first to make sure it is up before using df? This way, you can always check if the box is available before invoking df. Bit of a kludge, but it will stop your machine hanging....
|
|
|
10-23-2008, 04:39 PM
|
#7
|
Member
Registered: May 2007
Location: CO
Distribution: Solaris , Redhat , Debian
Posts: 152
Rep:
|
Another couple cool commands I like are dfshares and dfmounts - man them and check them out -
|
|
|
All times are GMT -5. The time now is 01:12 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|