- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- NFS share directory
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
Discussions
Discussions
Forums
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
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
тАО06-26-2007 01:48 AM
тАО06-26-2007 01:48 AM
NFS share directory
CT1 - server trying to view the directory
CT2 - server with the directory
The server(CT2) with the directory that I was sharing, I had to power down and move to another location. I brought this server back up and I'm able to telnet into it and able to ping it from CT1.
When doing a bdf on CT1, it hangs up when it gets to the part where usually shows the shared directory.
I never umounted the directory on CT1 when I powered the CT2 server down.
Is there a service I need to restart on CT2 show that CT1 can see this directory? Is there something I need to restart on CT1?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2007 01:55 AM
тАО06-26-2007 01:55 AM
Re: NFS share directory
It's best to use autmounts...
Try on CT1:
/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.client start
BTW - which OS version are you using?
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2007 02:01 AM
тАО06-26-2007 02:01 AM
Re: NFS share directory
Below is the message I get when running the stop command on CT1.
/sbin/init.d/nfs.client stop
NFS_SERVER not set to one in /etc/rc.config.d/nfsconf, exiting.
killing rpc.lockd
killing rpc.statd
NFS_SERVER not set to one in /etc/rc.config.d/nfsconf, exiting.
umountall: umount : has failed.
umountall: diagnostics from umount
nfs umount: nfs_unmount: /u01/exp: is busy
umount: return error 1.
killing biod
killing automount
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2007 02:09 AM
тАО06-26-2007 02:09 AM
Re: NFS share directory
For OE: swlist |grep OE
There is a 99% chance that you will have to reboot CT1 - as on 11.11 there is no force umount for NFS :(
After doing the /sbin/init.d/nfs.client start
try to mount the filesystem:
mount /u01/exp
If it's still won't work, then I'm pretty sure a reboot is required. :(
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2007 02:15 AM
тАО06-26-2007 02:15 AM
Re: NFS share directory
Nothing I can do to force the umount?
# uname -a
HP-UX drtkcp1 B.11.11 U 9000/800 114444650 unlimited-user license
# swlist | grep OE
HPUX11i-OE B.11.11.0312 HP-UX 11i Operating Environment Component
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2007 02:26 AM
тАО06-26-2007 02:26 AM
Re: NFS share directory
umount -f to recover from hung/stale NFS mounts without reboot
With 11.31, NFS gets completely revamped. By default it uses NFS V3 but also has NFS V4 on it.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2007 02:46 AM
тАО06-26-2007 02:46 AM
Re: NFS share directory
However to fix the problem, you can use the following procedure. This will remove the stale mount connection on the client. BE CAREFUL though if you get it wrong you could kill arbitrary connections: -
-----
# netstat -an | grep 2049
Now look for the 2049 connection e.g. 140.1.234.204:1023 134.202.101.25:2049
If you want to use the tcp_discon_by_addr, you use a 24 byte string that contains the hex representation of the quadruple.
For example, if the connection that I want to delete is:
Local IP: 192.1.2.3 (0xc0010203)
Local Port: 1024 (0x0400)
Remote IP : 192.4.5.6 (0xc0040506)
Remote Port: 2049 (0x0801)
The "hex" string you pass to tcp_discon_by_addr is:
# ndd -set /dev/tcp tcp_discon_by_addr "c00102030400c00405060801"
NOTE: the preceding 0x that typically indicates a Hex number is NOT part of the string passed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2007 11:22 PM
тАО06-26-2007 11:22 PM
Re: NFS share directory
tcp 0 1 10.1.31.100.789 172.16.121.14.2049 SYN_SENT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2007 11:55 PM
тАО06-26-2007 11:55 PM
Re: NFS share directory
# ndd -set /dev/tcp tcp_discon_by_addr "0A011F640315AC10790E0801"
operation failed, Invalid argument
# ndd -set /dev/tcp tcp_discon_by_addr "0a011f640315ac10790e0801"
operation failed, Invalid argument
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2007 11:59 AM
тАО06-27-2007 11:59 AM
Re: NFS share directory
Try to run Simon's procedure on connections in CLOSE_WAIT state and not only on 2049 connections.
Also check if it is possible to close the connections by executing following command:
ndd -get /dev/tcp ?|grep tcp_discon_by_addr