LFS-MIRROR-RESYNC(1)
π LFS-MIRROR-RESYNC π
okay bestie, so this one is the manual page for lfs-mirror-resync β it's a Lustre User Utilities situation (Lustre girlies stay winning π), and it does exactly one extremely important thing: it resynchronizes an out-of-sync mirrored file. that's it. that's the whole job. slay. β¨
πΈ NAME πΈ
lfs-mirror-resync β resynchronize an out-of-sync mirrored file π
β¨ SYNOPSIS β¨
lfs mirror resync [--only MIRROR_ID[,...]] [--bandwidth=|-W
BANDWIDTH_MB] [--force-resync|-f] [--stats] [--stats-
interval=INTERVAL_SECONDS] MIRRORED_FILE
[MIRRORED_FILE2 ...]
π¦ DESCRIPTION π¦
bestie, this command resynchronizes the out-of-sync mirrored file(s) you point at with the path name MIRRORED_FILE. iconic behavior honestly.
so here's the vibe check on what actually goes down:
- if there's no stale mirror for the
MIRRORED_FILE(s)? the command does nothing. it's giving "nothing to see here" π - if the mirrors are inconsistent but no components are marked as stale, the command will fail with an error message suggesting you use
--force-resync. noted. π - otherwise? it copies data from the synced mirror to the stale mirror(s), and marks all the successfully copied mirror(s) as
SYNC. periodt. π
if the --only option is not specified, the nosync mirror(s) β like, the components that have this flag set β will not be synced. lowkey rude of them but okay.
if the --only MIRROR_ID[,...] option is specified, then the command will resynchronize the mirror(s) specified by the MIRROR_ID(s), and even nosync mirror(s) will be resynchronized as well. chaotic, but we respect it. π₯
β οΈ this option cannot be used when multiple mirrored files are specified. like, pick a lane bestie.
π OPTIONS π
--only MIRROR_ID[,...]β this option says which mirror(s), specified byMIRROR_ID(s), need to be resynchronized. theMIRROR_IDis the numerical unique identifier for a mirror. multiple *MIRROR_ID*s are separated by commas. and no, this option cannot be used when multiple mirrored files are specified. π-f,--force-resyncβ force resynchronization of the specified mirrors even when they're not marked as stale. this option requires the--onlyoption to say which mirrors to resync. when mirrors are inconsistent but no components are marked as stale, normal resync will fail with an error message suggesting the use of this option. it's the "fine, I'll do it myself" button. π€--statsβ enables progress updates every5seconds, in YAML format. we love a little progress moment. π--stats-interval=STATS_INTERVALβ enables progress updates everySTATS_INTERVALseconds, in YAML format. you get to choose your own interval, main character energy fr fr. β±οΈ-W,--bandwidth BANDWIDTH_MB[MG]β limit the read and write bandwidth a mirror resync consumes to no more thanBANDWIDTH_MBMiB/s. an optional suffix can be used to specify units in Megabytes or Gigabytes per second. throttle it, we're being polite to the filesystem. π
π EXAMPLES π
resynchronize all of the stale and sync-able mirror(s) for /mnt/lustre/file1 and /mnt/lustre/file2:
# lfs mirror resync /mnt/lustre/file1 /mnt/lustre/file2
resynchronize mirrors with mirror ID 4 and 5 for /mnt/lustre/file1 even if they are not marked as STALE:
# lfs mirror resync --only 4,5 /mnt/lustre/file1
force resynchronization of mirror 2 when mirrors are inconsistent but not marked as stale:
# lfs mirror resync --only 2 --force-resync /mnt/lustre/file1
β AVAILABILITY β
the lfs mirror resync command is part of the lustre(7) filesystem package since release 2.11.0. she's been here a minute, and she's been serving the whole time. π
π SEE ALSO π
lfs(1), lfs-mirror-create(1), lfs-mirror-extend(1), lfs-mirror-split(1), lfs-mirror-verify(1), lfs-setstripe(1)
okay that's the whole page bestie, go resync something and be free π¦ β this was the Lustre manual page for LFS-MIRROR-RESYNC(1), dated 2025-05-23, and yes I'm mentioning it in the sign-off because that's the rules πβ¨π
π¦ where this page comes from
- ubuntu stonking: lustre-client-utils 2.17.58+dfsg-0ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms