Re: How to avoid rebooting Linux NFS-client when NFS-server is not available?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dick Streefland wrote 24.07.2013 13:03:
> Peter Funk <pf@xxxxxxxxxxxxxx> wrote:
> | We've researched this question for quite a while now and nobody here
> | found a solution to the following problem:
> | 
> |  1: A Linux computer is NFS client of some other Linux NFS server
> |     and has some active mounts and some processes working with files 
> |     on that NFS server.  
> | 
> |  2: Now the NFS server becomes unavailable and a system administrator 
> |     wants to clean up the situation on the NFS client computer without 
> |     having to reboot this client computer.
> | 
> | Is this possible?  And if how exactly?
> 
> What you could try is temporarily add the IP number of the dead NFS
> server to another NFS server. The other NFS server should reject any
> request for the dead mount, and the client can continue with an error.

Indeed: This workaround seems to work!

Assume example: The NFS-server has IP 192.168.123.45 and the client
has also the nfs-kernel-server package installed and it is running.
Then this sequence on the client did the trick::

    ifconfig eth0:fakesrv 192.168.123.45 up
    umount -f -l ....
    umount -f -l ....
    ....
    ifconfig eth0:fakesrv down

Best Regards and many thanks for your suggestion,
Peter Funk
-- 
Peter Funk, home: ✉Oldenburger Str.86, D-27777 Ganderkesee
mobile:+49-179-640-8878 phone:+49-421-20419-0 <http://www.artcom-gmbh.de/>
office: ArtCom GmbH, ✉Haferwende 2, D-28357 Bremen, Germany
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux