Commands with options hang server

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Commands with options hang server
# 1  
Old 12-07-2012
Commands with options hang server

Hello Folks,

when i run simple ls command i am getting the output properly. See below:

Code:
[root@xxx logs]# ls
ecapPlat.err FileMover.log.2 FileScrubber.log.1 MeasServer.log mysentfile surv.log
ecapPlat.log FileMover.log.3 FileScrubber.log.2 MeasServer.log.1 netConfig.err TimeServer.log
FileMover.log FileMover.log.4 FileScrubber.log.3 MeasServer.log.2 sentryd.log
FileMover.log.1 FileScrubber.log Logd.log MeasServer.log.3 sentryReport.log
[root@xxx logs]#

But when i run ls -lrt, it simply hangs the server. See below:

Code:
[root@chnecap1A logs]# ls -lrt
total 191868
-rw-r--r-- 1 root root 764348 Dec 20 2010 mysentfile

(Above doesnt come back to command prompt)

Even ctrl+C doesnt work. Every time i need to open a new session.

Appreciate any help.

ManU

Last edited by jim mcnamara; 12-07-2012 at 11:52 AM..
# 2  
Old 12-07-2012
I'm guessing there is an error in the filesystem structure.

Or more likely:

Is nfs is involved? If the directory is a remote directory or there are symbolic links in the directory that refer to nfs mounted directories/files then this hanging can occur.

Please show the output of these commands:

Code:
uname -a
df -h

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

AIX 5.3 NFS export not mounting, rpcinfo hang/timeout on server

Been trying to get a directory NFS-mounted with no success. I've tried both NFS v3 and v4, but currently trying v4. I can't figure out what's going on here. server: sbkovwadmd01 sbkovwadmd01# chnfsdom Current local domain: edw.dev sbkovwadmd01# lssrc -a | grep nfs | grep active nfsd ... (3 Replies)
Discussion started by: eckertd
3 Replies

2. UNIX for Beginners Questions & Answers

Options for AIX server backups

Hello, I'm new to this forum. Forgive a question that may have been asked, but I would like to get advice on options for backups of an AIX server. The AIX server in question has about 2TB of storage, with 3 Oracle databases configured on it We're currently using tar backups to tape, LTO... (1 Reply)
Discussion started by: terrya
1 Replies

3. Red Hat

Server Hang in Linux RHEL 5.5

Dear All , One of our Oracle Database Server , which got hanged a couple of days before , so that we could not login to the Server , but it was pinging. So we tried various options and at last we did a reboot of this server. To find out the root cause of the Server Hang , when i checked the... (2 Replies)
Discussion started by: jegaraman
2 Replies

4. Red Hat

server hang problem

Hello everybody.. I have RHEL-4 Server with kernel - Linux 2.6.9-78.0.1.ELlargesmp x86_64 It is used for Development usage.. That server got hang and so reboot was required, when checked log file i found following messages, kernel: warning: many lost ticks. kernel: Your time source... (4 Replies)
Discussion started by: laxmikant
4 Replies

5. Solaris

Server Hang @ init command

Guys, I am having difficulties in bringing my server to OBP. The server hung infinitely after issuing init 0 command. I have already stopped all the applications running but to no avail. :confused: Has anyone encountered this problem before? Appreciate if you could shed some lights. ... (4 Replies)
Discussion started by: honmin
4 Replies

6. Shell Programming and Scripting

Help with shell script to run the commands reading options from local file

I have to use shell script to run series of commands on another unix box by connecting through SSH and giving user credentials. For running commands on remote machine I have to use options reading from a local file. Process: Connecting to remote unix server <host1.ibm.com> through ssh Login: ... (2 Replies)
Discussion started by: itsprout
2 Replies

7. Red Hat

How can i disable force options for linux commands

Sir , Is there any way for me to disable force (-f ) options to linux commands like rm. I tried to alias rm -f. alias rm -f = "rm -i" but it shows bad alias name error I need this command specifically for rm. Atleast i want this command to be interactive whether I issue rm ,rm... (2 Replies)
Discussion started by: iamjayanth
2 Replies

8. Shell Programming and Scripting

Can BASH execute commands on a remote server when the commands are embedded in shell

I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config. I am not sure if I can do this with BASH scripting. I have set up password less login by adding my public key to authorized_keys file, it works. I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies

9. UNIX for Advanced & Expert Users

Server Unixware hang up

Hi, I,ve a Unixware 7.1.4 Server, that it works OK, but suddenly it's hang up for six hours. In the server's console appears the messages of the registration product, the same that appears when the machine restart normally. while thats messages appears the console is lock and the server is out... (0 Replies)
Discussion started by: By_Jam
0 Replies

10. UNIX for Dummies Questions & Answers

Hang linux server :(

All greetings:) I had problem: hangs linux a server, and hangs always on miscellaneous and at various times, for example, can stand about one week, and can and in some minutes after reboot. Tried on a server to put windows 2003, with him problems do not arise. What could it be?:) I from... (4 Replies)
Discussion started by: SDaniel
4 Replies
Login or Register to Ask a Question