home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.unix.admin
- Subject: Re: shutdown (was Re: (rsh somehost reboot) never exits)
- Date: 6 Nov 1992 16:54:02 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 33
- Message-ID: <1de7vaINN7r1@early-bird.think.com>
- References: <janet.720669557@dunnart>> <PD.92Nov3155621@herts.x.co.uk> <janet.721043068@dunnart>
- NNTP-Posting-Host: telecaster.think.com
-
- In article <janet.721043068@dunnart> janet@cs.uwa.oz.au (Janet Jackson) writes:
- >What I meant was that shutdown on an NFS server should send messages
- >only to clients that have filesystems mounted from that server, as listed
- >in the server's /etc/rmtab.
-
- That's what it does.
-
- >>All SunOS machines on the local net receive the message - I think it
- >>uses rwall, but that name is not present in the binary.
-
- It uses the rwall protocol, but not by exec'ing the rwall program. It
- calls the rwall RPC directly.
-
- >Hmm...we have Suns on three subnets, and as far as I recall, when
- >any Sun that's an NFS server is shut down, most of the Suns on all the subnets
- >get the messages. I'll have to test this next time I shut down a system.
- >(Most exported filesystems are exported to most Suns. That's why I thought
- >shutdown might be looking at the export list.)
-
- No, it's probably because most clients mount file systems from all of the
- servers. There are many cases where entries don't get removed from
- /etc/rmtab (if a client crashes instead of shutting down gracefully, it
- won't unmount remote file systems), so shutdown messages often go to every
- machine that has *ever* mounted a file system from the server.
-
- One kludge is to truncate /etc/rmtab periodically. Note that you have to
- kill mountd around this, so that it will pick up the new end of file
- location.
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-