apache/hadoop · error · HadoopIllegalArgumentException
Invalid value configured for dfs.datanode.failed.volumes.tol
Error message
Invalid value configured for dfs.datanode.failed.volumes.tolerated - {}. Value configured is either less than maxVolumeFailureLimit or greater than to the number of configured volumes ({}). What it means
Error "Invalid value configured for dfs.datanode.failed.volumes.tolerated - {}. Value configured is either less than maxVolumeFailureLimit or greater than to the number of configured volumes ({})." thrown in apache/hadoop.
Source
Thrown at hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java:322
this.dataStorage = storage;
this.conf = conf;
this.smallBufferSize = DFSUtilClient.getSmallBufferSize(conf);
this.lockManager = datanode.getDataSetLockManager();
// The number of volumes required for operation is the total number
// of volumes minus the number of failed volumes we can tolerate.
volFailuresTolerated = datanode.getDnConf().getVolFailuresTolerated();
Collection<StorageLocation> dataLocations = DataNode.getStorageLocations(conf);
List<VolumeFailureInfo> volumeFailureInfos = getInitialVolumeFailureInfos(
dataLocations, storage);
volsConfigured = datanode.getDnConf().getVolsConfigured();
int volsFailed = volumeFailureInfos.size();
if (volFailuresTolerated < DataNode.MAX_VOLUME_FAILURE_TOLERATED_LIMIT
|| volFailuresTolerated >= volsConfigured) {
throw new HadoopIllegalArgumentException("Invalid value configured for "
+ "dfs.datanode.failed.volumes.tolerated - " + volFailuresTolerated
+ ". Value configured is either less than maxVolumeFailureLimit or greater than "
+ "to the number of configured volumes (" + volsConfigured + ").");
}
if (volFailuresTolerated == DataNode.MAX_VOLUME_FAILURE_TOLERATED_LIMIT) {
if (volsConfigured == volsFailed) {
throw new DiskErrorException(
"Too many failed volumes - " + "current valid volumes: "
+ storage.getNumStorageDirs() + ", volumes configured: "
+ volsConfigured + ", volumes failed: " + volsFailed
+ ", volume failures tolerated: " + volFailuresTolerated);
}
} else {
if (volsFailed > volFailuresTolerated) {
throw new DiskErrorException(
"Too many failed volumes - " + "current valid volumes: "
+ storage.getNumStorageDirs() + ", volumes configured: "
+ volsConfigured + ", volumes failed: " + volsFailedView on GitHub (pinned to 2add963021)
Solutions
- Set dfs.datanode.failed.volumes.tolerated in hdfs-site.xml to a value between the max volume failure limit and the number of configured data volumes.
- Count the directories in dfs.datanode.data.dir and ensure the tolerated value does not exceed that count.
When it happens
Trigger: DataNode startup when dfs.datanode.failed.volumes.tolerated is negative, below the max volume failure limit, or greater than the number of configured data volumes.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/f10ede15cb030b85.
Report an issue: GitHub.