[LU-13048] Non-blocking migrate: Unable to release file from disk (Cannot send HSM request) Created: 04/Dec/19  Updated: 11/Jan/24

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

Type: Bug Priority: Major
Reporter: Artem Blagodarenko (Inactive) Assignee: Artem Blagodarenko
Resolution: Unresolved Votes: 1
Labels: None

Issue Links:
Related
is related to LU-5896 lfs: can't release a migrated file Open
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

The same root-case like in LU-5896, but about non-blocking migrate.
Non blocking swap layout (lfs migrate -n) uses different request and need separate fix.
old and new object version need to be added to struct close_data.
To reproduce add -n to migrate operation in sanity-ham 607
== sanity-hsm test 607: release migrated archived file =============================================== 03:24:42 (1574843082)
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.0379826 s, 27.6 MB/s
Starting copytool agt1 on localhost.localdomain
Waiting 200 secs for update
Cannot send HSM request (use of /mnt/lustre/d607.sanity-hsm/foodir/f607.sanity-hsm): Device or resource busy
sanity-hsm test_607: @@@@@@ FAIL: cannot release /mnt/lustre/d607.sanity-hsm/foodir/f607.sanity-hsm
  Trace dump:
  = /lustre/mnt/orig/cray-lustre/lustre/tests/test-framework.sh:5988:error()
  = lustre/tests/sanity-hsm.sh:5952:test_607()
  = /lustre/mnt/orig/cray-lustre/lustre/tests/test-framework.sh:6272:run_one()
  = /lustre/mnt/orig/cray-lustre/lustre/tests/test-framework.sh:6311:run_one_logged()
  = /lustre/mnt/orig/cray-lustre/lustre/tests/test-framework.sh:6107:run_test()
  = lustre/tests/sanity-hsm.sh:5957:main()
Dumping lctl log to /tmp/test_logs/1574843058/sanity-hsm.test_607.*.1574843083.log
Dumping logs only on local client.
Resetting fail_loc on all nodes...done.
FAIL 607 (2s)
mdt.lustre-MDT0000.hsm_control=shutdown
== sanity-hsm test complete, duration 26 sec ========================================================= 03:24:44 (1574843084



 Comments   
Comment by Gerrit Updater [ 24/Nov/22 ]

"Guillaume Courrier <guillaume.courrier@cea.fr>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49236
Subject: LU-13048: allow release after a non-blocking migrate
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: a4eb53262d32007c52a583de80d61b5b515951d6

Comment by Gerrit Updater [ 30/Nov/23 ]

"Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/53295
Subject: LU-13048 mdd: allow release after a non-blocking migrate
Project: fs/lustre-release
Branch: b2_15
Current Patch Set: 1
Commit: 3718d976e779730b88ddf6b8d9f5d49c323d0ce8

Comment by Gerrit Updater [ 11/Jan/24 ]

"Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/53652
Subject: LU-13048 tests: interop testing for patch 49236
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 4807ab3d10ff6d8f4a7a1a07085bc5285e2767a6

Generated at Sat Feb 10 02:57:54 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.