<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question is it safe to run e2fsck -y /dev/sdXX on hdfs files in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/is-it-safe-to-run-e2fsck-y-dev-sdXX-on-hdfs-files/m-p/194672#M71270</link>
    <description>&lt;P&gt;we see the system log on one of the worker machine  ( dmesg )&lt;/P&gt;&lt;P&gt;and from the log we saw that:&lt;/P&gt;&lt;P&gt;(sdc): warning: mounting fs with errors, running
e2fsck is recommended&lt;/P&gt;&lt;P&gt;disk - sdc include the HDFS folder - hdfs files&lt;/P&gt;&lt;PRE&gt;df | grep sdc  /dev/sdc                 1922721048  1560852 1921143812   1% /grop/sdc

ls /grop/sdc/hadoop/

hdfs  yarn&lt;/PRE&gt;&lt;P&gt;so  is it safe to run the following ( as OS logs recommended ) , &amp;lt;in spite disk include HDFS files , is it risky?&amp;gt;&lt;/P&gt;&lt;PRE&gt;e2fsck -y /dev/sdc

&lt;BR /&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 14 Nov 2017 02:30:29 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2017-11-14T02:30:29Z</dc:date>
    <item>
      <title>is it safe to run e2fsck -y /dev/sdXX on hdfs files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/is-it-safe-to-run-e2fsck-y-dev-sdXX-on-hdfs-files/m-p/194672#M71270</link>
      <description>&lt;P&gt;we see the system log on one of the worker machine  ( dmesg )&lt;/P&gt;&lt;P&gt;and from the log we saw that:&lt;/P&gt;&lt;P&gt;(sdc): warning: mounting fs with errors, running
e2fsck is recommended&lt;/P&gt;&lt;P&gt;disk - sdc include the HDFS folder - hdfs files&lt;/P&gt;&lt;PRE&gt;df | grep sdc  /dev/sdc                 1922721048  1560852 1921143812   1% /grop/sdc

ls /grop/sdc/hadoop/

hdfs  yarn&lt;/PRE&gt;&lt;P&gt;so  is it safe to run the following ( as OS logs recommended ) , &amp;lt;in spite disk include HDFS files , is it risky?&amp;gt;&lt;/P&gt;&lt;PRE&gt;e2fsck -y /dev/sdc

&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Nov 2017 02:30:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/is-it-safe-to-run-e2fsck-y-dev-sdXX-on-hdfs-files/m-p/194672#M71270</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-11-14T02:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: is it safe to run e2fsck -y /dev/sdXX on hdfs files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/is-it-safe-to-run-e2fsck-y-dev-sdXX-on-hdfs-files/m-p/194673#M71271</link>
      <description>&lt;P&gt;f you don't run the filesystem checker, the apparent corruption in the filesystem may get worse. Unchecked, this can lead to data corruption or at the unlikely worst destruction of the filesystem.&lt;/P&gt;&lt;P&gt;During the filesystem check, file structures within the filesystem will be checked, and if necessary repaired. The repair takes no account of content; it's all about making sure the filesystem is self-consistent.&lt;/P&gt;&lt;P&gt;If you run &lt;CODE&gt;e2fsck -y /dev/sdc&lt;/CODE&gt; you have no opportunity to validate the corrections being applied.&lt;/P&gt;&lt;P&gt;On the other hand if you run &lt;CODE&gt;e2fsck -n /dev/sdc&lt;/CODE&gt; you can see what would happen without it actually being applied, and if you run &lt;CODE&gt;e2fsck /dev/sdc&lt;/CODE&gt; you will be asked each time a significant correction needs to be applied.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In summary&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;If you ignore the warning and do nothing, over time you may lose your data&lt;/LI&gt;&lt;LI&gt;If you run with &lt;CODE&gt;-y&lt;/CODE&gt; you have no option to review the potentially destructive changes, and you may lose your data&lt;/LI&gt;&lt;LI&gt;If you run with &lt;CODE&gt;-n&lt;/CODE&gt; you will not fix any errors, and over time may lose your data, but you will get to review the set of changes that would be made&lt;/LI&gt;&lt;LI&gt;If you run with no special flag you will be prompted to fix relevant errors, and you can decide for each whether you are going to need direct professional assistance&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Recommendation&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;Run &lt;CODE&gt;e2fsck -n /dev/sdc&lt;/CODE&gt; to review the errors&lt;/LI&gt;&lt;LI&gt;Decide whether this merits a subsequent &lt;CODE&gt;e2fsck /dev/sdc&lt;/CODE&gt; (or possibly &lt;CODE&gt;e2fsck -y /dev/sdc&lt;/CODE&gt;) or whether you would prefer to obtain direct professional assistance&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 23 Nov 2017 01:26:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/is-it-safe-to-run-e2fsck-y-dev-sdXX-on-hdfs-files/m-p/194673#M71271</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-11-23T01:26:35Z</dc:date>
    </item>
  </channel>
</rss>

