From: Fan Yong Date: Tue, 8 Nov 2016 17:45:36 +0000 (+0800) Subject: LUDOC-259 lfsck: add the missed lfsck command and option X-Git-Tag: 2.10.0~15 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=f1e4fa7e73797c13a55d3de49bedfb9987e761d7;p=doc%2Fmanual.git LUDOC-259 lfsck: add the missed lfsck command and option Including the miss lfsck_query command: lfsck_query [-M | --device MDT_device] [-h | --help] [-t | --type lfsck_type[,lfsck_type...]] [-w | --wait] The missed lfsck_start option: [-d | --delay_create_ostobj] Signed-off-by: Fan Yong Change-Id: I1f14fb508ec1379d250176cf646156c786b92a06 Reviewed-on: https://review.whamcloud.com/26028 Tested-by: Jenkins Reviewed-by: Joseph Gmitter --- diff --git a/TroubleShootingRecovery.xml b/TroubleShootingRecovery.xml index f149e5b..3015893 100644 --- a/TroubleShootingRecovery.xml +++ b/TroubleShootingRecovery.xml @@ -207,14 +207,14 @@ root# e2fsck -fp /dev/sda # fix errors with prudent answers (usually Since Lustre software release 2.3, LFSCK can verify and repair the Object Index (OI) table that is used internally to map Lustre File Identifiers (FIDs) to MDT internal ldiskfs inode numbers, in - an internal table called the OI Table. An OI Scrub traverses this the IO - Table and makes corrections where necessary. An OI Scrub is required after + an internal table called the OI Table. An OI Scrub traverses the OI table + and makes corrections where necessary. An OI Scrub is required after restoring from a file-level MDT backup ( ), or in case the OI Table is otherwise corrupted. Later phases of LFSCK will add further checks to the Lustre distributed file system state. In Lustre software release 2.4, LFSCK namespace - scanning can verify and repair the directory FID-in-Dirent and LinkEA + scanning can verify and repair the directory FID-in-dirent and LinkEA consistency. In Lustre software release 2.6, LFSCK layout scanning can verify and repair MDT-OST file layout inconsistencies. File layout @@ -243,6 +243,7 @@ root# e2fsck -fp /dev/sda # fix errors with prudent answers (usually [-A | --all] \ [-c | --create_ostobj on | off] \ [-C | --create_mdtobj on | off] \ + [-d | --delay_create_ostobj on | off] \ [-e | --error {continue | abort}] \ [-h | --help] \ [-n | --dryrun on | off] \ @@ -333,6 +334,21 @@ root# e2fsck -fp /dev/sda # fix errors with prudent answers (usually + -d | --delay_create_ostobj + + + + + Delay creating the lost OST-object for dangling LOV EA + until the orphan OST-objects are handled. + off(default) or + on. + + + + + + -e | --error @@ -427,7 +443,7 @@ root# e2fsck -fp /dev/sda # fix errors with prudent answers (usually OI_scrub in that case. namespace: check and repair - FID-in-Dirent and LinkEA consistency. + FID-in-dirent and LinkEA consistency. Lustre-2.7 enhances namespace consistency verification under DNE mode. @@ -531,6 +547,91 @@ root# e2fsck -fp /dev/sda # fix errors with prudent answers (usually
+ Check the LFSCK global status +
+ Description + Check the LFSCK global status via a single + lctl lfsck_query command on the MDS. +
+
+ Usage +lctl lfsck_query <-M | --device MDT_device> \ + [-h | --help] \ + [-t | --type lfsck_type[,lfsck_type...]] \ + [-w | --wait] +
+
+ Options + The various + lfsck_query options are listed and described below. + For a complete list of available options, type + lctl lfsck_query -h. + + + + + + + + + Option + + + + + Description + + + + + + + + + -M | --device + + + + The device to query for LFSCK status. + + + + + + -h | --help + + + + Operating help information. + + + + + + -t | --type + + + + The LFSCK type(s) that should be queried, + including: layout, namespace. + + + + + + -w | --wait + + + + will wait if the LFSCK is in scanning. + + + + + +
+
+
LFSCK status interface
LFSCK status of OI Scrub via @@ -806,7 +907,7 @@ root# e2fsck -fp /dev/sda # fix errors with prudent answers (usually <literal> <literal>scanned-once</literal>(the first cycle scanning has been completed), <literal>inconsistent</literal>(one or more - inconsistent FID-in-Dirent or LinkEA entries that have + inconsistent FID-in-dirent or LinkEA entries that have been discovered), <literal>upgrade</literal>(from Lustre software release 1.8 IGIF format.)</para>