[LU-10098] Lustre resource agent can mis-identify resource mounts Created: 06/Oct/17  Updated: 01/Feb/18  Resolved: 06/Nov/17

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.10.0, Lustre 2.10.1
Fix Version/s: Lustre 2.11.0, Lustre 2.10.3

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

Issue Links:
Duplicate
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

In the Lustre resource agent lustre_is_mounted() greps the mountpoint from /proc/mounts but if that mountpoint matches a substring of a different mountpoint
e.g. /mnt/ost1 and /mnt/ost11.
It will register as already mounted and fail to start.



 Comments   
Comment by Nathaniel Clark [ 06/Oct/17 ]

This issue also affects the LustreZFS agent previously distributed. The fix is to replace the lustre_is_mounted() function as in the following patch.

Comment by Gerrit Updater [ 06/Oct/17 ]

Nathaniel Clark (nathaniel.l.clark@intel.com) uploaded a new patch: https://review.whamcloud.com/29351
Subject: LU-10098 scripts: Fix mountpoint check in Lustre RA
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: d77308de6ccd9314fa3653f1a7d844057ee06a72

Comment by Gerrit Updater [ 06/Oct/17 ]

Nathaniel Clark (nathaniel.l.clark@intel.com) uploaded a new patch: https://review.whamcloud.com/29352
Subject: LU-10098 scripts: Fix mountpoint check in Lustre RA
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: 4a09e13f9922968cda966eb02cc94b983d964050

Comment by Gerrit Updater [ 06/Nov/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/29351/
Subject: LU-10098 scripts: Fix mounted check in Lustre RA
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: df96fab178534adb34067b20490a2d0629aabe2f

Comment by Peter Jones [ 06/Nov/17 ]

Landed for 2.11

Comment by Gerrit Updater [ 19/Dec/17 ]

John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/29352/
Subject: LU-10098 scripts: Fix mounted check in Lustre RA
Project: fs/lustre-release
Branch: b2_10
Current Patch Set:
Commit: 8a886b997c253da0472c3ab115b159f7878c1dde

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