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

# [NAME](#NAME)

lfs-mirror-copy - copy a mirror's content to other mirror(s) of a mirrored file

# [SYNOPSIS](#SYNOPSIS)

`lfs mirror copy` **--read-mirror**|**-i** *SRC\_ID0* **--write-mirror**|**-o** *TGT\_ID1*\[,*TGT\_ID2*,...] *MIRRORED\_FILE*

# [DESCRIPTION](#DESCRIPTION)

This command copies a mirror's content to other mirror(s) of a mirrored file, the file is specified by the path name *MIRRORED\_FILE*, the mirrors are specified by their mirror ID.

# [OPTIONS](#OPTIONS)

[**-i**, **--read-mirrorSRC\_ID0**](#i)

This option indicates the content of which mirror specified by *SRC\_ID0* needs to be read. The *SRC\_ID0* is the numerical unique identifier for a mirror.

[**-o**, **--write-mirrorTGT\_ID1**\[,*TGT\_ID2*,...\]](#o)

This option indicates the content of which mirror(s) specified by mirror IDs needs to be written. The mirror IDs are separated with comma. If the mirror id **-1** is used here, it means that all mirrors other than the read mirror are to be written.

# [NOTES](#NOTES)

Be ware that the written mirror(s) will be marked as non-stale mirror(s), be careful that after using this command, you could get a file with non-stale mirrors while containing different contents.

# [EXAMPLES](#EXAMPLES)

Copy the content of mirror with mirror ID 1 to the mirrors with mirror ID 2 and mirror ID 3 in /mnt/lustre/file1:

```
# lfs mirror copy -i1 -o2,3 /mnt/lustre/file1
```

Copy the content of mirror with mirror ID 1 to all other mirrors in /mnt/lustre/file1:

```
# lfs mirror copy -i1 -o-1 /mnt/lustre/file1
```

# [AVAILABILITY](#AVAILABILITY)

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

# [SEE ALSO](#SEE_ALSO)

[**lfs**(1)](/man/enterprise-packages/lustre/lfs.1), [**lfs-getstripe**(1)](/man/enterprise-packages/lustre/lfs-getstripe.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-read**(1)](/man/enterprise-packages/lustre/lfs-mirror-read.1), [**lfs-mirror-split**(1)](/man/enterprise-packages/lustre/lfs-mirror-split.1), [**lfs-mirror-verify**(1)](/man/enterprise-packages/lustre/lfs-mirror-verify.1), [**lfs-mirror-write**(1)](/man/enterprise-packages/lustre/lfs-mirror-write.1), [**lfs-setstripe**(1)](/man/enterprise-packages/lustre/lfs-setstripe.1)

2024-08-19 Lustre

---

Document: lfs-mirror-copy(1) from lustre 2.17.59-r2 (Chainguard OS)
Source: https://github.com/lustre/lustre-release
