Bringing down two servers using NFS

Bringing down two servers using NFS

Post by Lisa M. Fry » Sun, 13 Nov 1994 04:12:00



   What is the best way to bring down two servers each running NFS?  I
have two SPARCServers 1000.  Each server mounts NFS filesystems from the
other server.  How do I bring both machines down at relatively the same
time.  Currently, I do a shutdown of one and then the other.  However,
the second server takes about a half-hour to come down because it must
wait to timeout when unmounting all the NFS-mounted filesystems which
reside on the other server.  I know there must be an easier way to do
this.  Any ideas / suggestions will be appreciated.  TIA


       Network Software Specialist     LMS Annex Room 105
       Kutztown University             phone: 610-683-4474
       Kutztown, PA. 19530             fax:   610-683-4634

  "You can bring a person to the university, but you can't make him think."

 
 
 

Bringing down two servers using NFS

Post by Rob McMah » Tue, 15 Nov 1994 20:12:30



writes:

Quote:>>...  Each server mounts NFS filesystems from the other server.  How do I
>>bring both machines down at relatively the same time.  Currently, I do a
>>shutdown of one and then the other.  However, the second server takes about
>>a half-hour to come down because it must wait to timeout when unmounting all
>>the NFS-mounted filesystems which reside on the other server.

>The best way is *not* to mount filesystems from one server to the other, or
>automount them.  Alternatively you can unmount (by hand) the filesystems on
>the one before shutting down the other.

This has just reminded me of something I've always thought was wrong.  On the
way back up you get in trouble if you cross-mount because the system tries to
NFS mount filesystems off other machines before it exports its own, hence each
of two servers brought up at the same time will end up* on the other.
Surely this is the wrong way round ?  I always used to swap it on our 4.1.3
machines (export before import) before we trusted the automounter enough to
use it exclusively.  On Solaris 2, nfs.client and nfs.server are even done at
different run levels, so this seems a more fundamental step to take.

Cheers,

Rob
--
UUCP:   ...!mcsun!uknet!warwick!cudcv   PHONE:  +44 203 523037

Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England

 
 
 

Bringing down two servers using NFS

Post by Casper H.S. D » Tue, 15 Nov 1994 20:49:26



>This has just reminded me of something I've always thought was wrong.  On the
>way back up you get in trouble if you cross-mount because the system tries to
>NFS mount filesystems off other machines before it exports its own, hence each
>of two servers brought up at the same time will end up* on the other.
>Surely this is the wrong way round ?  I always used to swap it on our 4.1.3
>machines (export before import) before we trusted the automounter enough to
>use it exclusively.  On Solaris 2, nfs.client and nfs.server are even done at
>different run levels, so this seems a more fundamental step to take.

If you add the bg option, the server will only hang a relatively shortwhile
before continueing.  The timeout is pretty quick, once the other machine
has portmapper started.  (RPC will return an error code because there's no
mountd registered on the otehr side yet).

But really: a situation like that calls for the automounter.

Casper

 
 
 

Bringing down two servers using NFS

Post by Casper H.S. D » Mon, 14 Nov 1994 21:49:35



Quote:>   What is the best way to bring down two servers each running NFS?  I
>have two SPARCServers 1000.  Each server mounts NFS filesystems from the
>other server.  How do I bring both machines down at relatively the same
>time.  Currently, I do a shutdown of one and then the other.  However,
>the second server takes about a half-hour to come down because it must
>wait to timeout when unmounting all the NFS-mounted filesystems which
>reside on the other server.  I know there must be an easier way to do
>this.  Any ideas / suggestions will be appreciated.  TIA

The best way is *not* to mount filesystems from one server to the
other, or automount them.  Alternatively you can unmount (by hand)
the filesystems on the one before shutting down the other.

Or don't unmount the NFS filesystems at all.  (Remove the nfs entries
from /etc/mnttab prior to shutting down)

Why do you shut your servers down anyway?

Casper

 
 
 

1. NFS server brings everything down

Hello all,
Everytime our NFS server goes down, it causes all other servers that
automount the NFS share to hang and usually rebooting is the only option.
This is really becoming annoying. It happens once in six months and causes a
lot of problems. All machines are Sun's with Solaris 7. Any suggestions?

Thanks

2. Setting up UK keyboard

3. Linux brings Sun Solaris NFS server down

4. Laptops revisited

5. Ethernet

6. NFS: When one server goes down, entire network slows down to a crawl.

7. mouse & virtual consoles

8. Bringing down the X11R3 server

9. sendmail on Solaris 8 brings down MS Exchange servers - is this possible?

10. moving from sun to pc linux brings web/db server down

11. Second Server (In action when main server go down)

12. Plan to have Two Servers each attached to the same two 7133-D40 using 6230 adapters