[LU-14526] SoM xattr not updated after mirror split Created: 16/Mar/21  Updated: 09/Mar/23  Resolved: 19/May/21

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.15.0

Type: Bug Priority: Minor
Reporter: John Hammond Assignee: Zhenyu Xu
Resolution: Fixed Votes: 0
Labels: bjhpflr

Issue Links:
Gantt End to End
has to be finished together with LU-14549 getxattr for lustre.lov and trusted.l... Resolved
Related
is related to LU-14508 lfs mirror operations do not preserve... Resolved
is related to LU-14765 sanity-flr test_44c: mirror split doe... Open
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

After mirror split, a file may have a "STRICT" size on MDT xattr which actually stale:

# rm -f f0
# dd if=/dev/zero of=f0 bs=1M count=100
100+0 records in
100+0 records out
104857600 bytes (105 MB) copied, 0.802629 s, 131 MB/s
# sync
# du --block-size=512 f0
204800  f0
#
# lfs mirror extend -N -c1 f0
# sync
# du --block-size=512 f0
395264  f0
#
# lfs mirror split --delete --mirror-id=1 f0
# sync
# du --block-size=512 f0
395264  f0
#
# # lfs getsom f0
file: f0 size: 104857600 blocks: 395264 flags: 1
# getfattr -n trusted.som --only-values f0 | hexdump -C
00000000  01 00 00 00 00 00 00 00  00 00 40 06 00 00 00 00  |..........@.....|
00000010  00 08 06 00 00 00 00 00                           |........|
00000018
#
# echo $((0x060800))
395264


 Comments   
Comment by John Hammond [ 22/Mar/21 ]

bobijam could you look at this? Would it be possible for the lfs/llapi mirror operations to include the needed operations to get the SoM updated correctly?

Comment by Gerrit Updater [ 30/Mar/21 ]

Bobi Jam (bobijam@hotmail.com) uploaded a new patch: https://review.whamcloud.com/43168
Subject: LU-14526 flr: mirror split downgrad SOM
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: c68f6292a40090cdbdb1b101f159d6db01bea83e

Comment by Gerrit Updater [ 19/May/21 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43168/
Subject: LU-14526 flr: mirror split downgrade SOM
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: a30750ad2cc5f10d9d1cc0e30199073091c06f2b

Comment by Peter Jones [ 19/May/21 ]

Landed for 2.15

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