LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 02-16-2016, 03:06 AM   #16
zeeshan047
LQ Newbie
 
Registered: Feb 2015
Posts: 15

Original Poster
Rep: Reputation: Disabled

hi,
Second command is running for last 1 hour and still no result, I have executed second command on another server which have same directories and configuration and it took 3 seconds and the result is 24971.

Code:

[root@racnode1 ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/cciss/c0d0p1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
shmfs on /dev/shm type tmpfs (rw,size=13g)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
oracleasmfs on /dev/oracleasm type oracleasmfs (rw)
none on /var/lib/xenstored type tmpfs (rw)

[root@racnode1 ~]# ls -LR /u01/app/11.2.0/grid/ |wc -l
 
Old 02-16-2016, 03:41 AM   #17
zeeshan047
LQ Newbie
 
Registered: Feb 2015
Posts: 15

Original Poster
Rep: Reputation: Disabled
hi,
Second command is running for last 1 hour and still no result , I have executed second command on another server which has same directory structure and configuration, it took 3 seconds and the result is 24971.

Code:
[root@racnode1 ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/cciss/c0d0p1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
shmfs on /dev/shm type tmpfs (rw,size=13g)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
oracleasmfs on /dev/oracleasm type oracleasmfs (rw)
none on /var/lib/xenstored type tmpfs (rw)

[root@racnode1 ~]# ls -LR /u01/app/11.2.0/grid/ |wc -l

Last edited by zeeshan047; 02-16-2016 at 03:42 AM.
 
Old 02-16-2016, 03:42 AM   #18
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,967

Rep: Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333
please try df -ih on both hosts and post/compare the results
 
Old 02-16-2016, 05:03 AM   #19
zeeshan047
LQ Newbie
 
Registered: Feb 2015
Posts: 15

Original Poster
Rep: Reputation: Disabled
First one is the server facing problem.

Code:


[root@racnode1 ~]# df -ih
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/VolGroup00-LogVol00
30M 4.3M 26M 15% /
/dev/cciss/c0d0p1 26K 56 26K 1% /boot
tmpfs 2.0M 169 2.0M 1% /dev/shm
shmfs 2.0M 169 2.0M 1% /dev/shm
none 2.0M 4 2.0M 1% /var/lib/xenstored


-bash-3.2$ df -ih
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda3 7.0M 274K 6.7M 4% /
/dev/sda1 101K 57 101K 1% /boot
tmpfs 219K 274 219K 1% /dev/shm
 
Old 02-16-2016, 05:22 AM   #20
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,967

Rep: Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333
30M 4.3M 26M 15% /
that means at about 4.3M files to count. That will take some time.
 
1 members found this post helpful.
Old 02-16-2016, 08:32 AM   #21
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 509

Rep: Reputation: 203Reputation: 203Reputation: 203
Quote:
Originally Posted by pan64 View Post
what will say: ls -lR /u01/app/11.2.0/grid | wc -l
probably it will take time too, in that case please tell us how long does it take.
also what will respond the command mount?
Great idea! One small suggestion: find will achieve the same thing, and might be faster if there are many files, as it doesn't need to sort them first:

Code:
find /u01/app/11.2.0/grid -print | wc -l
 
Old 02-16-2016, 08:37 AM   #22
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 509

Rep: Reputation: 203Reputation: 203Reputation: 203
Quote:
Originally Posted by pan64 View Post
30M 4.3M 26M 15% /
that means at about 4.3M files to count. That will take some time.
Compared to 274K on the server where there is no problem. No wonder they don't perform the same ;-)
 
Old 02-16-2016, 08:39 AM   #23
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,967

Rep: Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333
Quote:
Originally Posted by cliffordw View Post
Great idea! One small suggestion: find will achieve the same thing, and might be faster if there are many files, as it doesn't need to sort them first:

Code:
find /u01/app/11.2.0/grid -print | wc -l
in that case ls -lRU can be used too
 
Old 02-17-2016, 08:12 AM   #24
zeeshan047
LQ Newbie
 
Registered: Feb 2015
Posts: 15

Original Poster
Rep: Reputation: Disabled
issue solved , problem was there are lot of trace and log files on the server of size 55 GB causing the problem i have deleted all the log and trace files now , du -sh command working fine.

Thank you all .

Regards
Zeeshan
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Script/Command Require in case command hangs rajaniyer123 Linux - General 1 04-03-2012 06:45 PM
top command hangs rahulthewall3000 Linux - Laptop and Netbook 5 08-20-2008 04:47 AM
df command works, but hangs philh03 Linux - Server 3 07-22-2008 03:47 PM
PC hangs on lsusb command Adrian Baker Linux - General 0 07-07-2005 09:52 AM
rpm -qa command hangs mrpc_cambodia Red Hat 2 08-13-2004 03:12 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 09:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration