Sponsored Content
Full Discussion: ls hangs on a directory
Operating Systems Linux Red Hat ls hangs on a directory Post 302273742 by wazzu62 on Monday 5th of January 2009 04:58:29 PM
Old 01-05-2009
Quote:
Originally Posted by jim mcnamara
what does
Code:
ls -ld problem_directory
cd problem_directory
df -i .

show? if df completes in finite time ....
I thought of that....

ls -ld /files/amp
drwxrwxr-x 2 775 oacapp 695459840 Jan 5 13:49 /files/foobar


df -i .
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sdb1 26214400 7541112 18673288 29% /files


I think the problem is too many files in this subdirectory. Not sure how it happened but there are about +6 million files. I am using the output from the strace /bin/ls -l to manage the files. Slow but it is working.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script Hangs!

Hi, I have script which is based on TCL and expect. It is written to test my code. It usually runs fine for a while and hangs after sometime. Code snippet set l_temp_timeout $timeout OUTPUT_LOG2 2 >>>$expect_out(buffer)<<< OUTPUT_LOG2 2... (2 Replies)
Discussion started by: naveenpn
2 Replies

2. Solaris

Explorer hangs

Hi Guys, Anyone encontered a problem where when you run your SUN explorer, it hangs at sysconfig? I am having this problem for some of my servers. rgds, (1 Reply)
Discussion started by: ronny_nch
1 Replies

3. UNIX for Advanced & Expert Users

SSH hangs

Hi all, At a little bit of loss here. I have a Linux box (Redhat Enterprise 4) that has been working flawlessly for a while, that is until late Tuesday when none of the users could ssh into it. The machine is in a DMZ over which I have no control of the network settings. Here is the debug output... (6 Replies)
Discussion started by: ccj4467
6 Replies

4. Shell Programming and Scripting

SFTP HANGS

Hi , we are writing a shell script to test connection of our destination servers and facing an issue if the destination server doesnt respond. we are using the following command., sftp -B /dev/fd/0 <host@servername> << EOF >> file.txt quit EOF --------- The above command hangs for 20min and... (0 Replies)
Discussion started by: mohanpadamata
0 Replies

5. UNIX for Advanced & Expert Users

SFTP. ls and get hangs.

Hello I have a sftp problem. If I do sftp between some nodes that we installed it works fine i can list directories and get files. If I connect with sftp from the other side of a firewall (wich has port 22 open) I can log in and cd to which ever direcory i want i can do pwd but when i do... (4 Replies)
Discussion started by: vettec3
4 Replies

6. Hardware

HP DL160G6 hangs

Hi I have HP DL160G6 with SLES10SP3 x64. It hangs without any errors in the logs. My hardware is: description: Rack Mount Chassis product: ProLiant DL160 G6 vendor: HP serial: ******** width: 32 bits capabilities: smbios-2.5 dmi-2.5 configuration:... (0 Replies)
Discussion started by: dailyadm
0 Replies

7. Red Hat

Xrdp hangs

Hi, I'm trying to get xrdp to work. I installed xrdp 0.5.0 from EPEL and the Desktop group. Now I can connect to the server with rdesktop, but I can't do any input... there is an authentication window asking the root password "to set the network proxy used for downloading packages" and I can't... (0 Replies)
Discussion started by: FrankVanDamme
0 Replies

8. IP Networking

SFTP hangs

Ok sftp connects but hangs after I enter the password manually The ssh version is 1.0 bash-2.05$ ssh -V SSH Version Sun_SSH_1.0, protocol versions 1.5/2.0. When I go from solaris 9 to sftp to another server with latest proftpd version it hangs after the password. proftpd -V Compile-time... (6 Replies)
Discussion started by: slufoot80
6 Replies

9. IP Networking

Ftp hangs

On Oracle Linux 5, 64 bit (derivative of RHEL) ... I have a shell script that runs every Sunday, that ftp's a bunch of files from server 'prod' to server 'test'. Script executes on 'test'. This has been running for YEARS with no problem. Normally the FTP step takes about 1.5 to 2 hours. (pulls... (8 Replies)
Discussion started by: edstevens
8 Replies

10. Programming

Program Hangs

I have two programs, DriverScale.c and scale9.c. DriverScale.c calls scale 9.c which sends a W and a carraige return to the scale which SHOULD return the weight to DriverScale. However scale 9 hangs for at least 10 min, and then finally returns the weight. Compilation: ... (8 Replies)
Discussion started by: Meow613
8 Replies
DB2BAK(8)						      System Manager's Manual							 DB2BAK(8)

NAME
db2bak - Directory Server script for making a backup of the database SYNOPSIS
db2bak [archivedir] [-Z serverID] [-q] [-h] DESCRIPTION
Creates a backup of the database. This script can be executed while the server is running or stopped. OPTIONS
A summary of options is included below: archivedir The full path to the directory to store the backup. -Z Server Identifier The server ID of the Directory Server instance. If there is only one instance on the system, this option can be skipped. -q Quiet mode. Reduces output of task. -h Display the usage. EXAMPLE
db2bak -Z instance2 Makes a backup of the entire database for 'instance2', and stores it in the default server instance backup directory. db2bak /LDAP/backups/20130305 Creates a backup of the database and stores it in specified location. DIAGNOSTICS
Exit status is zero if no errors occur. Errors result in a non-zero exit status and a diagnostic message being written to standard error. AUTHOR
db2bak was written by the 389 Project. REPORTING BUGS
Report bugs to http://bugzilla.redhat.com. COPYRIGHT
Copyright (C) 2013 Red Hat, Inc. Mar 5, 2013 DB2BAK(8)
All times are GMT -4. The time now is 03:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy