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 <id0>} {--write-mirror|-o <id1>[,<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.

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

OPTIONS

--read-mirror|-i <id0>
    This option indicates the content of which mirror specified by id0 needs to be read. The id0 is the numerical unique identifier for a mirror.

--write-mirror|-o <id1>[,<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.

EXAMPLES

lfs mirror copy -i1 -o2,3 /mnt/lustre/file1
    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 -o-1 /mnt/lustre/file1
    Copy the content of mirror with mirror ID 1 to all other mirrors in /mnt/lustre/file1.

AUTHOR
The lfs mirror copy command is part of the Lustre filesystem.

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