[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: |
|
||||||||||||||||||||
| 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 |
| Comment by Gerrit Updater [ 19/May/21 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43168/ |
| Comment by Peter Jones [ 19/May/21 ] |
|
Landed for 2.15 |