Hi Maurice, On a Solaris 10 host:
/ > ls -la usr/ucb/shutdown etc/shutdown usr/sbin/shutdown lrwxrwxrwx 1 root root 20 Jan 16 2007 etc/shutdown -> ../usr/sbin/shutdown -rwxr-xr-x 1 root sys 4094 Jan 21 2005 usr/sbin/shutdown -rwxr-xr-x 1 root bin 19700 Jan 8 2007 usr/ucb/shutdown On a Nexenta host: / > ls -la usr/ucb/shutdown etc/shutdown usr/sbin/shutdown lrwxrwxrwx 1 root root 20 Jan 18 14:50 etc/shutdown -> ../usr/sbin/shutdown -rwxr-xr-x 1 root sys 4778 Jan 12 10:15 usr/sbin/shutdown -rwxr-xr-x 1 root bin 24344 Jan 12 10:12 usr/ucb/shutdown Also, /usr/sbin/shutdown is a script which ends up calling "init" which then tells the host (or init process) to go to a particular runlevel. The shutdown command has nothing to do with RPC, that error is most likely coming from elsewhere in the shutdown process. Most likely, you are seeing a big long timeout (not a failure to shutdown) You can monitor the services that are running as the machine is shutting down until your shell is killed by doing svcs -a, this might help you figure out where the delay is. Cheers, -Tim Maurice Volaski wrote: > I figured out part of the reason for the misbehavior described below > is that the "native" shutdown command is the "wrong" binary or at > least it's a buggy version of the "right" binary. That is, there are > multiple shutdown commands on the system. The "correct" shutdown > command is actually /usr/ucb/shutdown whereas simply executing > "shutdown" executes /usr/sbin/shutdown. > > In fact, there are whole directories of duplicated commands. For > example, try "ps". This will execute /usr/bin/ps, but that's not the > same as the command in /usr/ucb/i86/ps. There are actually five ps > commands! The duplicated commands are in /usr/ucb and in the > subdirectories of /usr/ucb/i86 and /usr/ucb/amd64. Not all the > commands are duplicated. Some are symlinks to commands in the normal > (i.e., Linux) locations. > > I'm assuming this situation results from the addition of the GNU > application userland, but that it is resulting in confusion. > > > >> The shutdown command doesn't seem to work. I get a complaint from RPC >> >> RPC: Program not registered. >> >> Then it apparently su's to root, switches to single user mode. If I >> then try again to shutdown, I get a different complaint from RPC >> >> RPC: Rpcbind failure -- RPC: Unable to receive >> >> and the command eventually seems to give up. >> > > _______________________________________________ gnusol-users mailing list [email protected] http://lists.sonic.net/mailman/listinfo/gnusol-users
