- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to tell if nfs mount will fail
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2003 12:05 AM
12-05-2003 12:05 AM
How to tell if nfs mount will fail
Is there any way to tell if an nfs mount will fail before you actually try to do it?? I have a script that runs in cron every 15 minutes and writes to a nfs-mounted directory. When nfs is broken, the script hangs. What can I put in the script to check if the needed nfs mount will work before trying to write to it?? Any ideas would be greatly appreciated!
Thanks,
Theresa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2003 12:09 AM
12-05-2003 12:09 AM
Re: How to tell if nfs mount will fail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2003 12:10 AM
12-05-2003 12:10 AM
Re: How to tell if nfs mount will fail
I'm not sure that this would work and I don't have a broken NFS mount to try it on, but maybe you could try doing an "ls -l" on the directory and check it with "wc -l". If you don't get any lines back, then you're mount is probably broken.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2003 12:11 AM
12-05-2003 12:11 AM
Re: How to tell if nfs mount will fail
(Just ping will do)
Also you can use showmount to see if filesystem you want to mount is exported from server or not.
Further you can check ping response to see the network quality.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2003 12:11 AM
12-05-2003 12:11 AM
Re: How to tell if nfs mount will fail
This basically translates to...
start a process in the background that will kill my script after 30 seconds. However, if my script works then kill the process that was about to kill me.
Crude but cute.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2003 12:21 AM
12-05-2003 12:21 AM
Re: How to tell if nfs mount will fail
Thanks!