Force unmount nfs share freebsd stale shares

If the processes which are currently using this partition does not respond to “kill -9” command then you WILL have to have the MOUNTED partition available anyways before killing the process. So here is a work-around of this situation.

1. Create a virtual interface on the problem server which has the IP address same as the mounted server (which has gone down).

Lets say my mounted server is having an IP and my server which is having the mounted partition is

Now to kill the hunged processes in, we will have to bring the server ( up inspite of the fact that it is actually down ;). So create a new virtual interface on ethernet card of

ifconfig eth0:1 netmask

Now what we have done here is we have brought the remote server IP up ;).

Now you can kill the processes and unmount the file system.

After finishing up, remember to bring down the interface.

ifconfig eth0:1 down

Thats it!! Why this works is because of the simple reason that the mount and unmount commands always take into account the IP address which mounting/unmounting rather then the hostname. So this will always work out for you.

Leave a Reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    Markdown is turned off in code blocks:
     [This is not a link](

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>