| LFS-MIRROR-COPY(1) | Lustre User Utilities | LFS-MIRROR-COPY(1) |
NAME
lfs-mirror-copy - copy a mirror's content to other mirror(s) of a mirrored file
SYNOPSIS
lfs mirror copy |
--read-mirror|-i SRC_ID0 --write-mirror|-o TGT_ID1[,TGT_ID2,...] MIRRORED_FILE |
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
- -i, --read-mirrorSRC_ID0
- 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,...]
- 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
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
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
The lfs mirror copy command is part of the lustre(7) filesystem package since release 2.13.0
SEE ALSO
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 |