<?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 Re: Detected data dir(s) that became unmounted and are now writing to the root partition in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Detected-data-dir-s-that-became-unmounted-and-are-now/m-p/116049#M26181</link>
    <description>&lt;P&gt;I ran into this same issue, but unlike the original poster, restarting the Ambari agents on the data nodes was sufficient to clear the alarm.&lt;/P&gt;</description>
    <pubDate>Fri, 26 May 2017 19:42:03 GMT</pubDate>
    <dc:creator>jarnold</dc:creator>
    <dc:date>2017-05-26T19:42:03Z</dc:date>
    <item>
      <title>Detected data dir(s) that became unmounted and are now writing to the root partition</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Detected-data-dir-s-that-became-unmounted-and-are-now/m-p/116045#M26177</link>
      <description>&lt;P&gt;So, I was installing a new cluster for our development QA testing and failed to adjust the default configuration that Ambari gave me for dfs.datanode.data.dir. It ended up putting in every partition it found. I really only wanted one - /grid/1, which was a dedicated disk partition for HDFS block storage. I discovered this blunder after the complete installation completed. I did not want to just redo the whole install, opting instead to try to manually fix this as a good deep dive learning experience. I got it all worked out, and it was a good learning exercise, but I have one lingering issue that I cannot solve. I am getting 4 Ambari errors (one for each DN) that state:&lt;/P&gt;&lt;PRE&gt;Detected data dir(s) that became unmounted and are now writing to the root partition: /grid/1/hadoop/hdfs/data .&lt;/PRE&gt;&lt;P&gt;I figured out that Ambari agents monitor (and remember) which HDFS directories were previously mounted and it checks to see if a mounted disk goes away for some reason and displays an error. That's all fine - I get that. However, my setup seems to be correct yet Ambari is still complaining.&lt;/P&gt;&lt;P&gt;As part of correcting the configuration issue I laid upon myself, I did edit the following file (on each DN) to remove all those previously caches mount points that I did not want and I just left the one I did want. I ended up just stopping HDFS, removing all the /opt/hadoop/hdfs, //tmp/hadoop/hdfs, etc directories, removing the name node metadata directories, reformatting the namenode, and starting up HDFS. The file system is up an working. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But, can anyone tell me why I cannot get rid of this Ambari error?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here's the contents of one of dfs_data_dir_mount.hist files. All 4 are exactly the same. Below showa the mount where I have a disk for HDFS data storage. It all looks good. I must be missing something obvious. I did restart everything - nothing clears this error.&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;&lt;PRE&gt;[root@vmwqsrqadn01 ~]# cat /var/lib/ambari-agent/data/datanode/dfs_data_dir_mount.hist
# This file keeps track of the last known mount-point for each DFS data dir.
# It is safe to delete, since it will get regenerated the next time that the DataNode starts.
# However, it is not advised to delete this file since Ambari may
# re-create a DFS data dir that used to be mounted on a drive but is now mounted on the root.
# Comments begin with a hash (#) symbol
# data_dir,mount_point
/grid/1/hadoop/hdfs/data,/grid/1

[root@vmwqsrqadn01 ~]# mount -l | grep grid
/dev/sdb1 on /grid/1 type ext4 (rw,noatime,nodiratime,seclabel,data=ordered)
&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Apr 2016 10:53:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Detected-data-dir-s-that-became-unmounted-and-are-now/m-p/116045#M26177</guid>
      <dc:creator>Mark_Petronic</dc:creator>
      <dc:date>2016-04-26T10:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Detected data dir(s) that became unmounted and are now writing to the root partition</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Detected-data-dir-s-that-became-unmounted-and-are-now/m-p/116046#M26178</link>
      <description>&lt;P&gt;We'll, I would still love to understand how this worked but, a reboot of the 4 DNs made this error go away. Never would have thunk it! That's pretty strange... Anyway, maybe this will help some other poor soul who hits this same condition. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 12:22:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Detected-data-dir-s-that-became-unmounted-and-are-now/m-p/116046#M26178</guid>
      <dc:creator>Mark_Petronic</dc:creator>
      <dc:date>2016-04-26T12:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Detected data dir(s) that became unmounted and are now writing to the root partition</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Detected-data-dir-s-that-became-unmounted-and-are-now/m-p/116047#M26179</link>
      <description>&lt;P&gt;Not sure, but I guess restarting ambari-agent's did it.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 12:31:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Detected-data-dir-s-that-became-unmounted-and-are-now/m-p/116047#M26179</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-04-26T12:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Detected data dir(s) that became unmounted and are now writing to the root partition</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Detected-data-dir-s-that-became-unmounted-and-are-now/m-p/116048#M26180</link>
      <description>&lt;P&gt;Actually, I tried restarting them before the reboot. Restarted everything. Still had the errors. Then did the reboot and they cleared. Oh well, is what it is!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 10:26:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Detected-data-dir-s-that-became-unmounted-and-are-now/m-p/116048#M26180</guid>
      <dc:creator>Mark_Petronic</dc:creator>
      <dc:date>2016-04-27T10:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Detected data dir(s) that became unmounted and are now writing to the root partition</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Detected-data-dir-s-that-became-unmounted-and-are-now/m-p/116049#M26181</link>
      <description>&lt;P&gt;I ran into this same issue, but unlike the original poster, restarting the Ambari agents on the data nodes was sufficient to clear the alarm.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 19:42:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Detected-data-dir-s-that-became-unmounted-and-are-now/m-p/116049#M26181</guid>
      <dc:creator>jarnold</dc:creator>
      <dc:date>2017-05-26T19:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Detected data dir(s) that became unmounted and are now writing to the root partition</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Detected-data-dir-s-that-became-unmounted-and-are-now/m-p/116050#M26182</link>
      <description>&lt;P&gt;And that said, I actually restarted Ambari as well - so I can't say for certain that the agent restart was sufficient; it may well have been the agents &lt;EM&gt;plus&lt;/EM&gt; Ambari which did the trick.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 20:04:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Detected-data-dir-s-that-became-unmounted-and-are-now/m-p/116050#M26182</guid>
      <dc:creator>jarnold</dc:creator>
      <dc:date>2017-05-26T20:04:31Z</dc:date>
    </item>
  </channel>
</rss>

