<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-CA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Have you checked the filesystem from a rescue disk or does the fsck on reboot report that it is fixing errors each time? As far as I understand running `fsck -n /` on the active root
 filesystem will most always return some errors as the blocks in the filesystem are changing while the fsck is running it’s passes. Thus the warning at the beginning of the process about the filesystem being mounted. Sorry if I am misunderstanding your process,
 but if you have not tried checking the filesystem after booting into rescue mode that would be a good step.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> rhelv6-list-bounces@redhat.com [mailto:rhelv6-list-bounces@redhat.com]
<b>On Behalf Of </b>francis picabia<br>
<b>Sent:</b> December 21, 2017 07:21<br>
<b>To:</b> Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list <rhelv6-list@redhat.com><br>
<b>Subject:</b> Re: [rhelv6-list] fsck -n always showing errors<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">fsck -n is used to verify only.<o:p></o:p></p>
</div>
<p class="MsoNormal">The touch on /forcefsck will force a regular fsck on unmounted<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">partitions on boot up.<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">So what I've done is:<o:p></o:p></p>
</div>
<p class="MsoNormal">fsck -n<o:p></o:p></p>
</div>
<p class="MsoNormal">touch /forcefsck<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">reboot<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">times three.<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">It should be actually fixing the problems on reboot.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I can find there are at least some fsck errors on every Redhat 6 machine,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">whether virtual or physical.  I mean I've tested the fsck -n status on about<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">twelve systems which have some errors.  Only 2 showed a history<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">of SCSI errors, both happening to be VMware.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Maybe some other people can test this on their Redhat 6 systems<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">and see if fsck -n /var or similar comes back clean.  You might<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">be surprised to see the same state I've noticed.  There is<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">no issue like read-only file system.   Everything is functional.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, Dec 20, 2017 at 5:57 PM, Gianluca Cecchi <<a href="mailto:gianluca.cecchi@gmail.com" target="_blank">gianluca.cecchi@gmail.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, Dec 20, 2017 at 9:27 PM, francis picabia <<a href="mailto:fpicabia@gmail.com" target="_blank">fpicabia@gmail.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">With one development box I did touch /forcefsck and rebooted.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Retested fsck and still issues.  Repeated this cycle 3 times<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">and no improvement.<o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Hi,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">not going into the reasons of the problem, but into your "cycle".<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">if I have understood correctly your sentence, you run fsck and use "-n" option that automatically answers "no" to all the questions related to problems and suggestions to fix them.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">So, as you didn't fix anything, the next run the fsck command exposes the same problems again....<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Sometimes I have seen in vSphere environments storage problems causing linux VMs problems and so kernel to automatically put one or more filesystems in read-only mode: typically the filesystems where there were writes in action during the
 problem occurrence.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">So in your case it could be something similar with impact to all the VMs insisting on the problematic storage / datastore<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">If you have no monitoring in place, such as Nagios and a monitor like this:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/check_ro_mounts/details" target="_blank">https://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/check_ro_mounts/details</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">you can go ahead also some days before realizing that you had a problem<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Analyzing /var/log/messages you should see when it happened<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Take in mind that if the filesystem went in read-only mode due to a SCSI error (action taken by the kernel to prevent further errors and data corruption), you will not be able to remount it read-write, but you have to reboot the server.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Just a guess.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">HIH,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Gianluca<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p class="MsoNormal"><br>
_______________________________________________<br>
rhelv6-list mailing list<br>
<a href="mailto:rhelv6-list@redhat.com">rhelv6-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/rhelv6-list" target="_blank">https://www.redhat.com/mailman/listinfo/rhelv6-list</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>