[LU-17079] Refactor mkfs/mount plugin system Created: 01/Sep/23  Updated: 01/Sep/23

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

Type: Improvement Priority: Minor
Reporter: Tim Day Assignee: Tim Day
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Related
is related to LU-5315 mkfs.lustre FATAL: unhandled fs type ... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Lustre uses loadable plugins for mkfs/mount to support multiple back end types (mount_osd_zfs.so, mount_osd_ldiskfs.so). This allows for back end support to be vended out separately (in theory). In practice, this can lead to esoteric errors being output when the system isn't setup correctly.

The plugin system seems to have value. But it should output useful error messages and try harder to actually find the plugins. Otherwise, errors are hard to debug and the tools don't work well on different platforms. In particular, if I `sudo make install` openZFS - Lustre should be able to find the openZFS binaries.

 

This ticket will also cover some minor cleanups.



 Comments   
Comment by Gerrit Updater [ 01/Sep/23 ]

"Timothy Day <timday@amazon.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/52223
Subject: LU-17079 utils: improve mkfs.lustre error messages, do cleanup
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 6536aafa7c027ed6a2dab44f3f6eeb9dbe9346eb

Comment by Tim Day [ 01/Sep/23 ]

The bug in LU-5315 is easy to reproduce with openZFS if some ZFS binaries are in unusual locations. Old patches worth looking at:

https://review.whamcloud.com/c/fs/lustre-release/+/11063

https://review.whamcloud.com/c/fs/lustre-release/+/11193

 

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