Mounting disks with noatime and nodiratime
If you are mounting disks purely for Hadoop and you use ext3 or ext4, or the XFS file system, we recommend that you mount the disks with the noatime
and nodiratime
attributes.
If you mount the disks as noatime
, the access timestamps are not updated when a file is read on the filesystem. In the case of the nodiratime
attribute, mounting disks does not update the directory inode access times on the filesystem. As there is no more disk I/O for updating the access timestamps, this speeds up filesystem reads.
In this recipe, we will describe why the noatime
and nodiratime
options are recommended for Hadoop, and how to mount disks with noatime
and nodiratime
.
Getting ready
You will need root privileges on your ...
Get HBase Administration Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.