Browse Source

HDFS-7156. Update fsck documentation. Contributed by Masahiro Yamaguch.

Konstantin V Shvachko 10 năm trước cách đây
mục cha
commit
3472221989

+ 2 - 0
hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

@@ -254,6 +254,8 @@ Release 2.6.0 - UNRELEASED
     HDFS-6956. Allow dynamically changing the tracing level in Hadoop servers
     (cmccabe)
 
+    HDFS-7156. Update fsck documentation. (Masahiro Yamaguch via shv)
+
   OPTIMIZATIONS
 
     HDFS-6690. Deduplicate xattr names in memory. (wang)

+ 30 - 21
hadoop-hdfs-project/hadoop-hdfs/src/site/apt/HDFSCommands.apt.vm

@@ -82,28 +82,37 @@ HDFS Commands Guide
    See {{{./HdfsUserGuide.html#fsck}fsck}} for more info.
 
    Usage: <<<hdfs fsck [GENERIC_OPTIONS] <path>
+          [-list-corruptfileblocks |
           [-move | -delete | -openforwrite]
-          [-files [-blocks [-locations | -racks]]]>>>
-
-*------------------+---------------------------------------------+
-||  COMMAND_OPTION || Description
-*------------------+---------------------------------------------+
-|   <path>         | Start checking from this path.
-*------------------+---------------------------------------------+
-|   -move          | Move corrupted files to /lost+found
-*------------------+---------------------------------------------+
-|   -delete        | Delete corrupted files.
-*------------------+---------------------------------------------+
-|   -openforwrite  | Print out files opened for write.
-*------------------+---------------------------------------------+
-|   -files         | Print out files being checked.
-*------------------+---------------------------------------------+
-|   -blocks        | Print out block report.
-*------------------+---------------------------------------------+
-|   -locations     | Print out locations for every block.
-*------------------+---------------------------------------------+
-|   -racks         | Print out network topology for data-node locations.
-*------------------+---------------------------------------------+
+          [-files [-blocks [-locations | -racks]]]]
+          [-includeSnapshots]>>>
+
+*------------------------+---------------------------------------------+
+||  COMMAND_OPTION       || Description
+*------------------------+---------------------------------------------+
+|   <path>               | Start checking from this path.
+*------------------------+---------------------------------------------+
+|   -move                | Move corrupted files to /lost+found
+*------------------------+---------------------------------------------+
+|   -delete              | Delete corrupted files.
+*------------------------+---------------------------------------------+
+|   -files               | Print out files being checked.
+*------------------------+---------------------------------------------+
+|   -openforwrite        | Print out files opened for write.
+*------------------------+---------------------------------------------+
+|                        | Include snapshot data if the given path
+| -includeSnapshots      | indicates a snapshottable directory or
+|                        | there are snapshottable directories under it.
+*------------------------+---------------------------------------------+
+| -list-corruptfileblocks| Print out list of missing blocks and
+|                        | files they belong to.
+*------------------------+---------------------------------------------+
+|   -blocks              | Print out block report.
+*------------------------+---------------------------------------------+
+|   -locations           | Print out locations for every block.
+*------------------------+---------------------------------------------+
+|   -racks               | Print out network topology for data-node locations.
+*------------------------+---------------------------------------------+
 
 * Administration Commands