From d8d9b78a5c08eb1d938ab9e3bdaf7f756bfbb5ec Mon Sep 17 00:00:00 2001 From: Bobi Jam Date: Thu, 18 Oct 2012 18:10:09 +0800 Subject: [PATCH] LU-1279 utils: mount.lustre load ptlrpc module if necessary When LNET modules have not loaded, and mounting multiple targets at the same time could fail. Use mount.lustre to load the network modules if necessary. Signed-off-by: Bobi Jam Change-Id: I9d7a4007cc5b233055a4a985237b01ff0874cf54 Reviewed-on: http://review.whamcloud.com/4292 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Bob Glossman --- lustre/utils/mount_lustre.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lustre/utils/mount_lustre.c b/lustre/utils/mount_lustre.c index fe1920f..374815e 100644 --- a/lustre/utils/mount_lustre.c +++ b/lustre/utils/mount_lustre.c @@ -514,6 +514,12 @@ int main(int argc, char *const argv[]) progname = strrchr(argv[0], '/'); progname = progname ? progname + 1 : argv[0]; + /* + * LU-1279. When LNET modules have not loaded, and mounting multiple + * targets at the same time could fail. + */ + rc = system("/sbin/modprobe ptlrpc 2>&1 > /dev/null"); + set_defaults(&mop); rc = osd_init(); -- 1.8.3.1