[LU-13668] open-for-read should not conflict with mirror creation Created: 12/Jun/20  Updated: 14/Jan/22  Resolved: 11/Sep/21

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

Type: Improvement Priority: Minor
Reporter: Alex Zhuravlev Assignee: Alex Zhuravlev
Resolution: Fixed Votes: 0
Labels: HPv3

Issue Links:
Related
is related to LU-13693 lfs getstripe should avoid opening re... Resolved
Rank (Obsolete): 9223372036854775807

 Description   

it should be possible to create mirror(s) while a file is opened for read.



 Comments   
Comment by Alex Zhuravlev [ 15/Jun/20 ]

as reported by jhammond even lfs getstripe can interrupt replication:

 # lfs mirror extend -N /mnt/lustre/f0 &
# lfs getstripe /mnt/lustre/f0
... 
error: lfs mirror extend: /mnt/lustre/f0: data copy failed: Device or resource busy
Comment by Gerrit Updater [ 17/Jun/20 ]

Alex Zhuravlev (bzzz@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38964
Subject: LU-13668 mdt: change lock mode for lease
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 64412dd3964f2bece51aff3046b2c4af725d2392

Comment by Jian Yu [ 20/Jun/20 ]

I hit the same issue while reading or writing to a file that is being replicated:

# lfs mirror extend -N --pool=slow_pool -c 3 /mnt/lustre/dir/file &
[1] 55601
# tail /mnt/lustre/dir/file
<~snip~>
error: lfs mirror extend: /mnt/lustre/dir/file: data copy failed: Device or resource busy

# lfs mirror extend -N --pool=slow_pool -c 3 /mnt/lustre/dir/file &
[1] 55603
# echo foo >> /mnt/lustre/dir/file
error: lfs mirror extend: /mnt/lustre/dir/file: data copy failed: Device or resource busy
Comment by Gerrit Updater [ 11/Sep/21 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/38964/
Subject: LU-13668 mdt: change lock mode for lease
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 2869f429ddc92ea6660fe210b098f6ff83c167f1

Comment by Peter Jones [ 11/Sep/21 ]

Landed for 2.15

Comment by Gerrit Updater [ 14/Jan/22 ]

"Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/46113
Subject: LU-13668 mdt: change lock mode for lease
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: 02e845c3f9dfdcc08cd3c3ff3a8c6ee750b1eb68

Comment by Etienne Aujames [ 14/Jan/22 ]

This issue could be annoying when migrating files with "--non-blocking" option on a filesystem with a scanning software (like robinhood).
We observed at the CEA that robinhood can cause lot of migration failures by getting file layout information (or fid : "lfs path2fid").

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