Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

About shutdown and showmount RPC Program not registered

2,574 views
Skip to first unread message

gxmsgx

unread,
Jul 29, 2009, 12:20:47 PM7/29/09
to
Hi all,
when I run the shutdown:

# cluster shutdown -g0 -y
...cut...
showmount: clab1: RPC: Program not registered
Do you want to continue? (y or n): :-(

..to resolve I had to enable the NFS service...

The question is:
I don't need/want to enable NFS service
any ideas to resolve this problem with another way?

thanks in advance


# ps -ef | egrep "nfs|rpc"
...cut...
daemon 1566 1 0 15:35:11 ? 0:00 /usr/sbin/rpcbind
daemon 1581 1 0 15:35:13 ? 0:00 /usr/lib/nfs/statd
daemon 1629 1 0 15:35:23 ? 0:01 /usr/lib/nfs/lockd

# showmount
showmount: clab1: RPC: Program not registered

# svcs network/nfs/server
STATE STIME FMRI
disabled 16:42:10 svc:/network/nfs/server:default

# echo 'share -F nfs -o ro=clab1 -d "test dirs" /export/test' >> /etc/
dfs/dfstab

# svcadm enable network/nfs/server

# exportfs -v
share -F nfs
- /export/test rw=clab1 "test dirs"

...showmount work and the shutdown command works happily without me

Martin Paul

unread,
Jul 30, 2009, 4:02:30 AM7/30/09
to
gxmsgx wrote:
> # cluster shutdown -g0 -y
> ...cut...
> showmount: clab1: RPC: Program not registered

That's an old, well known issue. You could:

Ignore the message, as it's harmless.

Edit /usr/sbin/shutdown and add "2>/dev/null" to the line that reads
"remotes=`/usr/sbin/showmount`". I always wondered why Sun never did
that. You might have to make that change again and again, as patches and
new installs might overwrite your changes.

Look at what the shutdown script does, and duplicate that in your own
script. As you use -g0 and -y, and probably don't need the "wall"
section which notifies users that are logged in, you might feel
perfectly safe with simply using "init 0" instead, like most of us.

hth,

mp.
--
SysAdmin | Institute of Scientific Computing, University of Vienna
PCA | Analyze, download and install patches for Solaris
| http://www.par.univie.ac.at/solaris/pca/

gxmsgx

unread,
Jul 30, 2009, 6:24:51 AM7/30/09
to
Martin Paul wrote:

> Edit /usr/sbin/shutdown and add "2>/dev/null" to the line that reads
> "remotes=`/usr/sbin/showmount`".

Thanks Martin,
I followed your advice and I changed the function notify() of the shutdown
command

from this:
if [ -x /usr/sbin/showmount -a -x /usr/sbin/rwall ]

to this:
if [ -x /usr/sbin/showmount -a -x /usr/sbin/rwall ] && \
[ `svcs -H network/nfs/server | awk '{print $1}'` = 'online' ]

...so as not to lose any "real" error.

gxmsgx

0 new messages