[LU-14508] lfs mirror operations do not preserve timestamps Created: 10/Mar/21 Updated: 13/Feb/23 Resolved: 22/Jul/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 |
|
lfs mirror extend -N sometimes causes the file atime to go backwards: # echo XXX > f0; stat f0; sleep 60; cat f0; stat f0; sleep 60; date; lfs mirror extend -N -p ddn_hdd f0; stat f0 File: ‘f0’ Size: 4 Blocks: 1 IO Block: 4194304 regular file Device: 2c54f966h/743766374d Inode: 144115205289279491 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2021-03-10 10:17:48.000000000 -0600 Modify: 2021-03-10 10:17:48.000000000 -0600 Change: 2021-03-10 10:17:48.000000000 -0600 Birth: - XXX File: ‘f0’ Size: 4 Blocks: 8 IO Block: 4194304 regular file Device: 2c54f966h/743766374d Inode: 144115205289279491 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2021-03-10 10:18:48.000000000 -0600 Modify: 2021-03-10 10:17:48.000000000 -0600 Change: 2021-03-10 10:17:48.000000000 -0600 Birth: - Wed Mar 10 10:19:48 CST 2021 File: ‘f0’ Size: 4 Blocks: 8 IO Block: 4194304 regular file Device: 2c54f966h/743766374d Inode: 144115205289279491 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2021-03-10 10:17:48.000000000 -0600 Modify: 2021-03-10 10:17:48.000000000 -0600 Change: 2021-03-10 10:17:48.000000000 -0600 Birth: - |
| Comments |
| Comment by Andreas Dilger [ 10/Mar/21 ] |
|
This could happen if the most recent atime was stored on the OST objects from patch https://review.whamcloud.com/38024 " |
| Comment by Gerrit Updater [ 11/Mar/21 ] |
|
John L. Hammond (jhammond@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/42009 |
| Comment by John Hammond [ 12/Mar/21 ] |
|
bobijam could you take over on this one too? I created a patch that doesn't quite work and seems to have some ldlm issues. But perhaps you can fix it or at least reuse the tests. |
| Comment by Gerrit Updater [ 22/Jul/21 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/42009/ |
| Comment by Peter Jones [ 22/Jul/21 ] |
|
Landed for 2.15 |