Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 04-09-2010, 02:26 PM   #1
LQ Newbie
Registered: Aug 2005
Location: NE Ohio
Distribution: Ubuntu 10.04
Posts: 12

Rep: Reputation: 0
Veritas Cluster Filesystem on RedHat - du command time anomaly


I have a 2 node RH 5u4 64-bit. I have installed and configured the latest Veritas CFS (Cluster File System) which also uses Veritas Cluster Server. File system if VxFS. Storage is on EMC Symmetrix arrays with Veritas Mirroring between the arrays.

We have noticed that running 'du -hs' on the shared directory/filesystem where it takes about 3 minutes on one node and 30 - 45 minutes on the other node.

I've been running strace on 'du'. 'du' runs an 'lstat' on each file (66,000+ files). On the slower node, the ave time spent in 'du' is about .001 seconds longer, which accounts for the 30-45 minutes. Also, the standard deviation is much larger, which means to me that the lstat times are all over the place!

Another interesting thing is that iozone profiling shows that the i/o rates from both nodes are darn near identical, with no anomalies at various buffer & file sizes! And, iostat looks really good as does 'vxdmpadm iostat show'!!!

Any ideas on this one? Is lstat an issue on large clustered directories?

Thanks, Danté
Old 04-10-2010, 07:33 AM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,833
Blog Entries: 14

Rep: Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081
Do both nodes have the same memory and cpu? Are they the same in other respects? Are the fibre HBAs the same?

You might want to check kernel parameters (man sysctl) to verify both nodes have the same settings.

Are you trying the du on the second node while there is heavy activity on the first node?

Does shutting down the first node have any effect on this? It may be some sort of file locking.
Old 04-10-2010, 08:39 AM   #3
LQ Newbie
Registered: Aug 2005
Location: NE Ohio
Distribution: Ubuntu 10.04
Posts: 12

Original Poster
Rep: Reputation: 0
Great ideas for checking; I should have pointed out that both nodes are identical hardware, the rpm's installed post build and any configuration post build are the same and both are built from the same kickstart image.

Currently, WCM is running, but there's little to no activity going on this server as the app guys are waiting on me to hand it over to them (formally).

I'll recheck the kernel parms ... they have been adjusted per Oracle recommendations; Oracle now owns WCM and we also have an oracle client that connects to a back-end database which stores information about the files in the clustered file system. I'll check on Monday!
Old 04-12-2010, 01:09 PM   #4
LQ Newbie
Registered: Aug 2005
Location: NE Ohio
Distribution: Ubuntu 10.04
Posts: 12

Original Poster
Rep: Reputation: 0
here's what I've been able to find so far:

Packages on both servers are identical as is hardware; Veritas DMP is setup to have the ruleset min-q-length on all dmp devices and that appears to be working as expected.

Kernel Settings are identical on both nodes, too.

strace of du command shows a large 'delay' after getdents is called, but only from the *slow* node:

     0.000089 lstat("94436.xml", {st_mode=S_IFREG|0664, st_size=9001, ...}) = 0
     0.000083 lstat("94437.xml", {st_mode=S_IFREG|0664, st_size=9001, ...}) = 0
     0.000167 lstat("94438.xml", {st_mode=S_IFREG|0664, st_size=9001, ...}) = 0
     0.000131 getdents(4, /* 1024 entries */, 32768) = 32768
     0.004166 lstat("94439.xml", {st_mode=S_IFREG|0664, st_size=9001, ...}) = 0
     0.000091 lstat("94440.xml", {st_mode=S_IFREG|0664, st_size=9001, ...}) = 0
And, that is very consistent but happens on both nodes even if I swap the CFS Primary Server!

I have a feeling that some meta-data update occurs after calling getdents and that requires some communication/handshake that shows up under lstat as lstat is probably waiting on something to happen within the volume/filesystem.

Sound familiar to anyone?

Last edited by DantePasquale; 04-12-2010 at 01:13 PM. Reason: more info


cfs, cluster, redhat, veritas, vxfs

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Basic Veritas Cluster Server Troubleshooting http LXer Syndicated Linux News 0 11-14-2008 11:20 AM
LXer: Basic Veritas Cluster Server Troubleshootinghttp LXer Syndicated Linux News 0 11-14-2008 09:50 AM
veritas hasf cluster itik Linux - Software 0 07-20-2008 10:36 PM
update red hat kernel with veritas cluster itik Linux - Server 0 07-10-2008 08:50 AM
Veritas Netbackup on RHEL Cluster yanik Linux - Enterprise 0 08-14-2007 01:31 PM

All times are GMT -5. The time now is 09:37 AM.

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