[LU-15536] create an imperative SoM syncing utility Created: 08/Feb/22  Updated: 23/Dec/22

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

Type: Bug Priority: Minor
Reporter: John Hammond Assignee: Jian Yu
Resolution: Unresolved Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

We have ./lustre/doc/llsom_sync.8 to sync size on MDT xattrs but it is based on changelogs. For scanning based on SoM to be useful we need a utility (of lfs subcommand) that can be used to resynchronize the SoM xattrs of the files we supply.

In addition to a usual interface

lfs somsync FILE...

we should also support Lustre client mount point followed by a list of FIDs

lfs somsync --by-fid MOUNT FID...

(Similar to 'lfs rmfid', allowing use with xargs.)

Note that lsom_update_one() has the steps to resynchronize SoM.



 Comments   
Comment by John Hammond [ 11/Feb/22 ]

yujian could you take a look at this?

Comment by Jian Yu [ 11/Feb/22 ]

Sure, John.

Comment by Gerrit Updater [ 23/Dec/22 ]

"Jian Yu <yujian@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49498
Subject: LU-15536 utils: add lfs somsync utility
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: cfabe93c5bcec11fdbc7d9ecdfbcd184bba09e1e

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