LFS-MIRROR-VERIFY(1) Lustre User Utilities LFS-MIRROR-VERIFY(1)

# [NAME](#NAME)

lfs-mirror-verify - verify mirrored file(s)

# [SYNOPSIS](#SYNOPSIS)

`lfs mirror verify` \[**--only** *MIRROR\_ID*\[,*MIRROR\_ID2*,...]] \[**--stale**|**-s**] \[**--verbose**|**-v**] *MIRRORED\_FILE* \[*MIRRORED\_FILE2* ...]

# [DESCRIPTION](#DESCRIPTION)

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\_ID2*,...] option is specified, then the command will only verify the mirrors specified by *MIRROR\_ID*s contain exactly the same data. At least two *MIRROR\_ID*s are required. 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. This option can be repeated for multiple times to print more information.

if **--stale**|**-s** option is specified, then the command will check the mirrors of file and mark them stale based on the data consistency and intelligent heuristics.

# [OPTIONS](#OPTIONS)

[**--only** *MIRROR\_ID*\[,MIRROR\_ID2*,...\]*](#only)

This option indicates which mirrors specified by *MIRROR\_ID*s need to be verified. The *MIRROR\_ID* is the numerical unique identifier for a mirror. Multiple *MIRROR\_ID*s are separated by comma.

[**-s**, **--stale**](#s)

This option indicates the command will check the mirrors of file and mark them stale based on the data consistency and intelligent heuristics.

[**-v**, **--verbose**](#v)

This option indicates the command will print where the differences are if the data do not match.

# [EXAMPLES](#EXAMPLES)

Verify that each mirror of /mnt/lustre/file1 contains exactly the same data:

```
# lfs mirror verify /mnt/lustre/file1
```

Separately verify that each mirror of /mnt/lustre/file1 and /mnt/lustre/file2 contain exactly the same data. Print where the differences are if the data do not match:

```
# lfs mirror verify -v /mnt/lustre/file1 /mnt/lustre/file2
```

Verify mirrors with mirror ID 4 and 5 of /mnt/lustre/file1 contain exactly the same data:

```
# lfs mirror verify --only 4,5 /mnt/lustre/file1
```

# [AVAILABILITY](#AVAILABILITY)

The **lfs mirror verify** command is part of the [**lustre**(7)](/man/enterprise-packages/lustre/lustre.7) filesystem package since release 2.11.0

# [SEE ALSO](#SEE_ALSO)

[**lfs**(1)](/man/enterprise-packages/lustre/lfs.1), [**lfs-mirror-create**(1)](/man/enterprise-packages/lustre/lfs-mirror-create.1), [**lfs-mirror-extend**(1)](/man/enterprise-packages/lustre/lfs-mirror-extend.1), [**lfs-mirror-resync**(1)](/man/enterprise-packages/lustre/lfs-mirror-resync.1), [**lfs-mirror-split**(1)](/man/enterprise-packages/lustre/lfs-mirror-split.1), [**lfs-setstripe**(1)](/man/enterprise-packages/lustre/lfs-setstripe.1)

2024-08-20 Lustre

---

Document: lfs-mirror-verify(1) from lustre 2.17.60-r0 (Chainguard OS)
Source: https://github.com/lustre/lustre-release
