Unmount NFS share on solaris

Posted on 2007-10-03
Last Modified: 2013-12-19
Hi All
I need to unmount a nfs share on a solaris server because the NFS server is down.

I tried
umount -f /share but it just freezes

I also tried
fuser -c /share to see what process might be using it..and that freezes too

Any guidance please ?
Question by:http://
    LVL 40

    Accepted Solution


    Try this:

    To unmount an NFS-mounted file system after the server has died:

    1.  Do not execute any commands that access the NFS mount point, such as
         `df', or commands that try to read or write to that file system.

    2.  Run `mount -v' to get the canonical name of the host and its exported
        file system (in the example above, "remoteserver:/").

    3.  Run `fuser -k', giving it the canonical name reported by `mount -v':
        # fuser -k remoteserver:/

    4.  Run `umount' to unmount the remote file system:
        # umount remoteserver:/

    If the `umount' doesn't succeed, wait 5 or 10 minutes, then try `fuser -k'
    and `umount' again.  This waiting period is a normal span for NFS regardless
    of the implementing vendor.  It allows the I/O to time out, which returns an
    error back to the program, unblocking it.
    LVL 19

    Author Comment

    The thing is that
    fuser -k remoteserver:/ does not work because remoteserver is down
    LVL 40

    Expert Comment


    But fuser is supposed to work on your server to identify processes that are having open files on that filesystem and then kill it. This is read from your server memory and not from the remote server.

    LVL 19

    Author Comment

    Yeah I know..but the error message it is throwing is the following

    remoteserver:/ No such file or directory
    LVL 40

    Assisted Solution


    There could be a corruption in the mounted file systems table.

    The following lines are taken from the man page of mount:

     The table of currently mounted file systems can be found  by examining  the mounted file system information file. This is provided by  a  file  system  that  is  usually  mounted  on
     /etc/mnttab.   The   mounted   file  system  information  is described in mnttab(4). Mounting a file system adds an entry to  the  mount  table;   a  umount removes an entry from the  table."

    can you check the content of this file (it is text file)?

    LVL 6

    Assisted Solution

    I just encountered the same situation on a Solaris server and what worked for me was
    `fuser -k <name_of_locally_mounted_dir>`

    I first tried the `fuser -k <remote_server>/<remote_path> but got the same error message as above....

    Featured Post

    New My Cloud Pro Series - organize everything!

    With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

    Join & Write a Comment

    Suggested Solutions

    If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now