LFS-MIRROR-COPY(1)

πŸ“¦ version 2.17.58, in ubuntu stonking

✨ lfs-mirror-copy(1) ✨

okay so bestie, welcome to the Lustre User Utilities corner of the universe πŸ’– this is the page for lfs-mirror-copy, and it's literally about copying one mirror's whole vibe to other mirrors of a mirrored file. no cap.


🌸 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 way it works is: you point at the file with the path name MIRRORED_FILE, and you pick the mirrors by their mirror ID. that's it, that's the tea β˜•


✨ OPTIONS ✨

  • -i, --read-mirrorSRC_ID0 β€” this one says which mirror's content you're reading, identified by SRC_ID0. SRC_ID0 is the numerical unique identifier for a mirror. like, the mirror's government name πŸ”’
  • -o, --write-mirrorTGT_ID1[,TGT_ID2,...] β€” this one says which mirror(s) you're writing to, identified by mirror IDs. separate multiple IDs with a comma. and if you use the mirror id -1 right here, it means all mirrors other than the read mirror are gonna get written. so -1 is the "everybody except my source" energy πŸ‘‘ (and yes, the exact token is --write-mirrorTGT_ID1 when you're not adding extra IDs, iykyk)

😭 NOTES 😭

be ware that the written mirror(s) will be marked as non-stale mirror(s). be careful: after using this command, you could get a file with non-stale mirrors while containing different contents. so like, the vibe check passes but the content is lowkey not matching? that's the danger bestie, fr fr πŸ’€

🌈 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. it's been iconic since then, no cap ✨


πŸ’… 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)


and that's the whole page, bestie! 🫢 this manual page is from Lustre, dated 2024-08-19, and it's page LFS-MIRROR-COPY(1) in the Lustre User Utilities. slay, go copy those mirrors πŸ’–βœ¨

πŸ“¦ where this page comes from