Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux Procceses

Status
Not open for further replies.
Oct 6, 2000
13
0
0
US
My Red Hat 7.0 server had a power supply failure. Now when I boot almost all processes listed using ps -A have a ? for the tty. While the dameons are running, I still cannot connect using Samba or remote Xwindows. Any ideas?
 
Hi,

Its quite normal for most processes to have a ? . Try :

$ ps aux

To see if samba is listening you can do :

# ps aux | grep smbd
# /usr/sbin/lsof -i TCP:139

You should see process 'smbd' running and 'smbd' listening ...

I'd guess there is either a problem with (one of ?) the network cards not operating or some firewalling issue. Does the following look OK for your lan interface (assuming eth0) :

# /sbin/ifconfig eth0

It should be 'up' with an iP address etc.

Obviously, check if you can 'ping' the server from the clients... Restart the network if required :

# /etc/rc.d/init.d/network restart

Other than that it could be the ipchains firewall (lokkit). If you turned it off manually but didn't set it off 'permanently' with /sbin/chkconfig then it would start on reboot. You can test by doing :


# /etc/rc.d/init.d/ipchains stop
# /etc/rc.d/init.d/network restart

Hope this helps



 
Well I can telnet in. And can ping other servers. Samba is running and listening. I am afraid my problem my be bigger than just that. Here is what a ps -A looks like. I never seen this before.
PID TTY TIME CMD
1 ? 00:00:05 init
2 ? 00:00:00 kflushd
3 ? 00:00:00 kupdate
4 ? 00:00:00 kpiod
5 ? 00:00:00 kswapd
6 ? 00:00:00 mdrecoveryd
331 ? 00:00:00 syslogd
341 ? 00:00:00 klogd
356 ? 00:00:00 portmap
372 ? 00:00:00 lockd
373 ? 00:00:00 rpciod
383 ? 00:00:00 rpc.statd
437 ? 00:00:00 identd
441 ? 00:00:00 identd
442 ? 00:00:00 identd
443 ? 00:00:00 identd
444 ? 00:00:00 identd
456 ? 00:00:00 atd
487 ? 00:00:03 snmpd
488 ? 00:00:00 snmpd
489 ? 00:00:00 snmpd
504 ? 00:00:00 xinetd
519 ? 00:00:00 sshd
540 ? 00:00:00 lpd
584 ? 00:00:00 sendmail
600 ? 00:00:00 gpm
733 ? 00:00:00 httpd
737 ? 00:00:00 httpd
738 ? 00:00:00 httpd
739 ? 00:00:00 httpd
740 ? 00:00:00 httpd
741 ? 00:00:00 httpd
742 ? 00:00:00 httpd
750 ? 00:00:00 httpd
751 ? 00:00:00 httpd
756 ? 00:00:00 crond
789 ? 00:00:00 xfs
804 ? 00:00:00 smbd
814 ? 00:00:00 nmbd
847 ? 00:00:00 rhnsd
858 ? 00:00:00 cmafdtnpeerd
863 ? 00:00:14 cmahostd
868 ? 00:00:00 cmathreshd
870 ? 00:00:00 cmafdtnpeerd
871 ? 00:00:00 cmafdtnpeerd
872 ? 00:00:00 cmafdtnpeerd
 
Hi,



Nothing there looks strange to me - the cmaxxxxxx stuff are compaq utilties of some sort.



You can always look in the /proc filesystem to get more info on processes. For example :



# cat /proc/584/maps



Would show the memory maps for process 584. Theres lots of other info if you are interested...



Ignoring the 'ps' for a minute, what doesn't work ??



Regards
 
I am unable to connect through Samba, though it is rinnung. Am also unable to to connect using remote Xwindows. These are the primary ways all my users access the system. It is also running Apache but that seems to be running fine.
 
Hi,

On the box (via telnet) what do you get from :

$ smbstatus
$ smbclient -L netbiosname

(i.e. where 'netbiosname' is the netbiosname of the linux server ). To test the nmb (wins) side if you have that running

$ nmblookup -d3 netbiosname

Regards
 
Here are the results of those commnands.
$ smbstatus
Samba version 2.0.7
Service uid gid pid machine
----------------------------------------------

No locked files

Share mode memory usage (bytes):
1048464(99%) free + 56(0%) used + 56(0%) overhead = 1048576(100%) total
$
$ nmblookup -d3 netbiosname
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
doing parameter netbios name = Linuxgw01
doing parameter workgroup = Barona
doing parameter server string = Redhat 7.0 Samba Server
doing parameter hosts allow = ALL
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 50
doing parameter security = server
doing parameter password server = tipay
doing parameter encrypt passwords = yes
doing parameter smb passwd file = /etc/smbpasswd
doing parameter unix password sync = Yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password
* %n\n *passwd:*all*authentication*tokens*updated*successfully*
doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
doing parameter local master = no
doing parameter name resolve order = wins lmhosts bcast
doing parameter wins server =
doing parameter dns proxy = no
pm_process() returned Yes
added interface ip=192.168.0.183 bcast=192.168.0.255 nmask=255.255.255.0
bind succeeded on port 0
Socket opened.
querying netbiosname on 192.168.0.255
name_query failed to find name netbiosname
$
$
smbclient-L returns all the correct data.
 
Weird. After running those commands everything is working now. Thanks for you help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top