- 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
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2007 12:09 PM - last edited on 06-18-2021 04:24 AM by Ramya_Heera
06-27-2007 12:09 PM - last edited on 06-18-2021 04:24 AM by Ramya_Heera
Re: NFS share directory
Hi Jesse,
When you say "moved to another location", is the NFS server now using a different IP address? If so, just forcibly tearing down the stale TCP connection between the client and server is not going to cause the filesystem to magically unmount on the client.
The server's current IP address is still going to be stored in the client's mntinfo structure in the kernel so the next time you access that mount point it will use the same IP address. You have to figure out a way to unmount the filesystem, not just rip out the underlying TCP connection.
Since you're running 11.11 (as opposed to 11.23 or 11.31) you don't have the ability to do a forcible unmount. However, you may be able to get the client to unmount the filesystem without rebooting it.
I've written a technical paper that discusses various strategies to manually unmount filesystems in situations like these. The paper is located here:
http://docs.hp.com/en/3929/ForciblyUnmountingNFSFilesystems.pdf
Good luck,
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2007 06:47 AM
06-29-2007 06:47 AM
Re: NFS share directory
The NFS server CT2 has a new IP Address. I made changes wherever I could find them to point to the new ip address of CT2 on CT1.
Cannot umount because I get the :is busy thing.
When trying to do the netstat -in I only get two lan0 lo0. I don't see any that may be pointing to the old ip address (or similar) to do the ifconfig lan# portion of the white paper.
I know I may be rebooting.
Look as though I may have to reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2007 07:12 AM - last edited on 06-18-2021 03:59 AM by Ramya_Heera
06-29-2007 07:12 AM - last edited on 06-18-2021 03:59 AM by Ramya_Heera
Re: NFS share directory
Hi Jesse,
> When trying to do the netstat -in I only get
> two lan0 lo0. I don't see any that may be
> pointing to the old ip address (or similar)
> to do the ifconfig lan# portion of the white
> paper.
The instructions in the technical paper are to log onto the client and use the ifconfig command to create a temporary virtual interface using the old server's IP address. In this case you would be able to assign the IP address to either your physical interface (lan0) or your loopback interface (lo0). It doesn't matter, as long as the hung NFS mount point can suddenly get a response from the IP address it's sending to.
Before rebooting, I'd give this a try.
1) Log into the NFS client
2) Use the ifconfig command to create a virtual interface using the NFS server's old IP address:
# ifconfig lo0:1 up
Hopefully creating the temporary virtual interface will cause the client to stop hanging on the mounted filesystem and a bdf command will return an ESTALE (stale file handle error message) for that NFS mount point. At that point you *might* be able to unmount the filesystem successfully. Try a few times, like in the technical paper, because it might take some time for the client's buffer cache pages to flush.
If you're able to get the filesystem to unmount then remove the virtual IP interface from the loopback interface:
# ifconfig lo0:1 0
Hope this helps,
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
