[LU-15424] allow 'lfs migrate' for only a single FLR mirror Created: 09/Jan/22  Updated: 09/Jan/22

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Andreas Dilger Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: FLR2

Issue Links:
Related
is related to LU-9961 FLR2: Relocating objects to a new OST Open
Rank (Obsolete): 9223372036854775807
Epic Link: OST rebalance v1

 Description   

Currently, "lfs migrate" does not work very well for FLR mirrored files. If an FLR mirrored file is migrated, it will replace all of the mirrors with the target layout. It is not currently possible to migrate only a single mirror of a file.

It is not even possible to specify a mirrored layout for the target file ("lfs migrate" apparently doesn't parse the options correctly, and even if this was working it would significant increase write amplification to make multiple copies of a file for the common case of trying to remove objects from a specific OST.

It should be possible for "lfs migrate" to properly migrate only a single FLR mirror of a file by specifying --mirror-id or --comp-id as with "lfs mirror split". Internally, this might be implemented by extending the file with a new FLR mirror using the specified layout and then removing the old mirror, but the user interface should make this transparent.



 Comments   
Comment by Andreas Dilger [ 09/Jan/22 ]

It may also be useful in relation to LU-9961 to specify "--source-ost=N" (or similar, possibly multiple times or a comma-separated list) to select the mirror to migrate/remove. That would initially just select the mirror for removal, but could eventually allow replacing only the specific object.

Generated at Sat Feb 10 03:18:12 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.