hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xie Gang <xiegang...@gmail.com>
Subject Inconsistence between the datanode volume info and OS df
Date Wed, 10 Jan 2018 06:20:30 GMT
Hi,

Recently, we hit an issue that, there is a difference between the freeSpace
of the datanode volume info and the OS df:

For example:
the jmx of the dn shows:

 "VolumeInfo" :
"{\"/....\":{\"freeSpace\":1445398864500,\"usedSpace\":228138206927,\"reservedSpace\":53687091200}}",

But the df shows:
/dev/sda 2146676656 253778008 1785508084 13% /...

There is about 400GB gap which is regarded as Non DFS used. And the most
strange thing is that, after I restart the dn process, the gap disappear.
And after some days, the gap shows again.

The yarn shared the same server of the dn and has some file cache. Could it
be related?

The direct cause is that the freeSpace from dn is quit different from the
available space from df. After tracking down the code, freeSpace of the dn
is from dirFile.getUsableSpace(). could it have some problem? Do we hit
this issue before?

Thanks,
Gang


-- 
Xie Gang

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message