[LU-16834] obdfilter-survey throws "error: attach: File exists" Created: 17/May/23  Updated: 13/Sep/23  Resolved: 13/Sep/23

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

Type: Improvement Priority: Minor
Reporter: Arshad Hussain Assignee: Arshad Hussain
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Gantt End to Start
has to be done after LU-16827 obdfilter-survey: /usr/bin/obdfilter-... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

This was seen while debugging/working on LU-16786

In case (corner) where type=disk and targets/ostnames are repeated the obdfilter-survey throws "error: attach: File exists". This is because the on first iteration the attach and setup is already done. It is not a fatel error the run still continues but for second ost it fails to attach.

Reproducer:

$ NETTYPE=tcp thrlo=2 nobjhi=1 thrhi=4 size=231 case=disk rslt_loc=/tmp targets="lustre-OST0000 lustre-OST0000" ./lustre-iokit/obdfilter-survey/obdfilter-survey
<snip>
"error: attach: File exists"
<snip>


 Comments   
Comment by Gerrit Updater [ 17/May/23 ]

"Arshad Hussain <arshad.hussain@aeoncomputing.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/51034
Subject: LU-16834 obdfilter: Do not attach device if already present
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 4148a4913ba40972d9bad137734d54d35aed36e0

Comment by Gerrit Updater [ 13/Sep/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/51034/
Subject: LU-16834 obdfilter: Do not attach device if already present
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 5f3bc2ce7cb8579075bcaaca60bb15b2b037fa85

Comment by Peter Jones [ 13/Sep/23 ]

Landed for 2.16

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