Thanks all. The problem has quieted down considerably this week so it isn't as much of a priority as before. But see my replies below.<div><br><br><div class="gmail_quote">On Wed, Oct 5, 2011 at 4:37 PM, Henrik Størner <span dir="ltr"><<a href="mailto:henrik@hswn.dk" target="_blank">henrik@hswn.dk</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On 05-10-2011 17:41, Steve Holmes wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The test is an external script which basically does a 'sudo touch foo'<br>
on each file system and waits for it to either return with no problem,<br>
or return with an error indicating that the file system is read-only, or<br>
after 60 seconds declares that the file system is 'hung'.<br>
</blockquote></div>
[snip]<div><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The problem with the test is that once or twice a day we get a flurry of<br>
alerts from a dozen or so servers, all at about the same time reporting<br>
that there is a hung file system. Other file systems on the same server<br>
are reporting that it takes longer to do the touch than we think it<br>
should (e.g. 12 to 25 or even 60 seconds). The alerts all go away the<br>
next test cycle. The file systems are on local fiber channel disks (i.e.<br>
not NFS mounted). The servers getting the alerts are not all VMs and it<br>
is not always the same set of servers that show up.<br>
</blockquote>
<br></div>
Sounds nasty, troubleshooting that kind of "only happens occasionally" problems is really difficult.<br>
<br>
OK, off the top of my head here are some ideas:<br>
<br>
* sudo - what kind of user authentication are you using ? If it's LDAP or NIS, could that explain why the test suddenly takes longer ?<br>
<br></blockquote><div><br></div><div>Local authentication. So that isn't it.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
* clocks - how do you measure the time it takes to run the test ? If you just use "date" before and after the touch-command, what happens if your server's clocks are stepped (jump a few seconds) while the test is running? In my experience, clocks on virtual machines are horrible at keeping correct time and can quite easily skip a couple of seconds if set to follow the clock of the host OS.<br>



<br></blockquote><div><br></div><div>The script is sleeping for N seconds and adding N to a counter.  So, I don't think that is the problem. We increased the total time for a test to 60 seconds (it was 30), but that didn't help. On some systems if we go much more than 60 seconds per file system the whole test could break the 5 minute limit (and I'd have to reduce the frequency of the test). </div>


<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
* Have you looked at the vmstat1 graphs for these systems ? How is the "I/O wait" on them ? Some types of I/O on Linux systems can cause quite a slow-down; deleting large files on ext2 or ext3 systems could be quite time-consuming and cause the whole system to really stall. Also doing things that touch a lot of files - a large find, or grep'ing through a large number of files, especially if you don't mount filesystems with the "noatime" option - can cause a lot of I/O that slows down filesystem operations.<br>



<br></blockquote><div><br></div><div>For some reason I don't have vmstat1 graphs. Old problem I've never gone back to try to fix. So, no...</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



* I've seen VMware Workstation consistently bring a system to its knees when a VM was being shut down. Apparently some bad interaction between the kernel version (2.6.18, if memory serves me right) and the way it was updating the virtual disk images - it would just churn away for 5 or 10 minutes doing nothing but hitting the disk. Disappeared when I upgraded the kernel on the box. No idea if your combination of RHEL and ESX could do the same thing. But it was quite reproducible here, so it should be easy to spot.<br>



<br></blockquote><div><br></div><div>Our problem is really spotty, so probably not this. We've had the VMware admins looking into underlying problems (which is where we think the problem really is), but they've not come up with anything.</div>


<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Just some thoughts.<br>
<br></blockquote><div><br></div><div>Thanks!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Regards,<br>
Henrik<br>
______________________________<u></u>_________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/<u></u>mailman/listinfo/xymon</a><br>
</blockquote></div><br><br>From Jeremy:<div><br clear="all"><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">


<span style="font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)"><div>To prove that it's not a Xymon problem, why not create a cron task that does the same thing, but logs how long it takes.  If the log shows delays, then it's got nothing to do with Xymon.  Perhaps create /etc/cron.d/touchtest with the following:</div>


<div><br></div><div> * * * * * root time touch /path/to/file >> /tmp/touchlog 2>&1</div><div> 50 23 * * * root cp /dev/null /tmp/touchlog</div><div><br></div></span></blockquote><div><br></div><div>We thought about doing exactly this, but have not yet implemented it. </div>

<div>Thanks,</div><div><br></div><div>Steve</div>
-- <br><div><font face="arial, sans-serif"><span style="border-collapse:collapse"><span style="font-size:13px;background-color:rgb(255, 255, 255)">If they give you ruled paper, write the other way. -Juan Ramon Jimenez, poet, Nobel Prize in literature (1881-1958) </span><br>


</span></font><br>Truth never damages a cause that is just. -Mohandas Karamchand Gandhi (1869-1948) </div><br>
</div>
</div>