[LU-10287] "lfs mirror verify" command Created: 27/Nov/17  Updated: 31/Jan/18  Resolved: 31/Jan/18

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.11.0

Type: Improvement Priority: Critical
Reporter: Jian Yu Assignee: Jian Yu
Resolution: Fixed Votes: 0
Labels: FLR, FLR2

Issue Links:
Related
is related to LU-9771 FLR1: Landing tickets for File Level ... Resolved
Rank (Obsolete): 9223372036854775807

 Description   
lfs mirror verify [--only <mirror_id,mirror_id[,...]>] [--verbose|-v] <mirrored file> [<mirrored file2>...]

This command verifies that each SYNC mirror of a mirrored file specified by the path name "mirrored file" contains exactly the same data. It supports specifying multiple mirrored files in one command line.

This is a scrub tool that should be run in regular basis to make sure that mirrored files are not corrupted. The command won't repair the file if it turns out to be corrupted.

Usually administrator should check the file content from each mirror and decide which one is correct and then invoke “lfs mirror resync” to repair it manually.

If --only <mirror_id,mirror_id[,...]> option is specified, then the command will verify the mirrors specified by mirror_ids contain exactly the same data. At least two mirror ids are needed. This option cannot be used when multiple mirrored files are specified.

If --verbose|-v option is specified, then the command will print where the differences are if the data do not match. Otherwise, the command will just return an error in that case.



 Comments   
Comment by Jian Yu [ 13/Dec/17 ]

Here is the patch for master branch: https://review.whamcloud.com/30387

Comment by Joseph Gmitter (Inactive) [ 20/Dec/17 ]

Split out to be parallel to the core code of LU-9771 as an additional task/enhancement.

Comment by Gerrit Updater [ 31/Jan/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30387/
Subject: LU-10287 flr: lfs mirror verify command
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: f1daa8fc6575e5b9e4a2f1f2ae4ceaefb889a694

Comment by Jian Yu [ 31/Jan/18 ]

Patch landed to master branch for Lustre 2.11.0.

Generated at Sat Feb 10 02:33:42 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.