OS Manuals

lfs-mirror-copy(1)

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

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

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

lfs mirror copy --read-mirror|-i SRC_ID0 --write-mirror|-o TGT_ID1[,TGT_ID2,...] MIRRORED_FILE

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.

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.
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.

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.

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

The lfs mirror copy command is part of the lustre(7) filesystem package since release 2.13.0

lfs(1), lfs-getstripe(1), lfs-mirror-create(1), lfs-mirror-extend(1), lfs-mirror-read(1), lfs-mirror-split(1), lfs-mirror-verify(1), lfs-mirror-write(1), lfs-setstripe(1)

2024-08-19 Lustre

lustre 2.17.59-r2 · enterprise-packages · ingested 2026-10-11