[LU-11461] Lustre resource agent fails with symlink target Created: 03/Oct/18  Updated: 11/Feb/19  Resolved: 06/Nov/18

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.11.0, Lustre 2.10.5
Fix Version/s: Lustre 2.12.0, Lustre 2.10.7

Type: Bug Priority: Critical
Reporter: Nathaniel Clark Assignee: Nathaniel Clark
Resolution: Fixed Votes: 0
Labels: HA, pacemaker

Issue Links:
Duplicate
is duplicated by LU-11592 Bug in Lustre RA handling mpath devices Resolved
Related
is related to LU-11947 Regression caused by LU-11461 Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

If Lustre resource agent is configured with a target device that is a symlink (e.g. /dev/disk/by-id/scsi-3...)

The "is mounted" check will fail because findmnt will return the resolved path, which will not match the symlink.



 Comments   
Comment by Gerrit Updater [ 03/Oct/18 ]

Nathaniel Clark (nclark@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33277
Subject: LU-11461 scripts: Support symlink target
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: d68ef000a714eae5b7fa7e1e65a6c9f458c2909e

Comment by Gerrit Updater [ 06/Nov/18 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33277/
Subject: LU-11461 scripts: Support symlink target
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: c36d70272541d3ba3dd9051e6f50cf89eaba639f

Comment by Peter Jones [ 06/Nov/18 ]

Landed for 2.12

Comment by Gerrit Updater [ 06/Nov/18 ]

Nathaniel Clark (nclark@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33597
Subject: LU-11461 scripts: Support symlink target
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: 3e205ee8ad0ae859fdae0bb350d0d7804c6509ed

Comment by Gerrit Updater [ 05/Jan/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33597/
Subject: LU-11461 scripts: Support symlink target
Project: fs/lustre-release
Branch: b2_10
Current Patch Set:
Commit: 14236f475f7fecd35934289b966d2bfe16a0d163

Comment by cedric milesi [ 06/Feb/19 ]

Interestingly this patch introduced a bug in my configuration (Lustre 2.12, ZFS as backend). Basically the realpath function is NOT returning an empty string when run against a ZPOOL/FS causing the function to fail.  (rc=2). 

 

Comment by Peter Jones [ 06/Feb/19 ]

Cedric 

Can you please open a new ticket that is linked to this one with the details so we can correct this in 2.12.1?

Thanks

Peter

Comment by Nathaniel Clark [ 11/Feb/19 ]

Cedric's issue is addressed in LU-11947

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