Whamcloud - gitweb
LU-9439 scripts: Change behavior of lustre_rmmod 59/26959/3
authorPrakash Surya <surya1@llnl.gov>
Wed, 20 Feb 2013 17:18:13 +0000 (09:18 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 12 May 2017 05:06:45 +0000 (05:06 +0000)
commit645153be3eb1fd8c634717507f73d85625d1b84a
tree9f3c3fa1a9c6b63be2cc87b9875285130be33e4b
parente58f8d609a81576eaf5bc9d0fa53bef274a01bfc
LU-9439 scripts: Change behavior of lustre_rmmod

The lustre_rmmod script was modified to take an arbitrary list of
modules and try to remove them and any modules dependent on them.
Previously its behavior was to always remove the libcfs module,
along with either the ldiskfs or another module passed as a
parameter.

The old interface was roughly maintained. Any of the following
commands will remove the ldiskfs, libcfs, and all dependent modules:

    $ lustre_rmmod
    $ lustre_rmmod ldiskfs
    $ lustre_rmmod ldiskfs libcfs

The benefit now, is that any other list of modules can be specified
without removing libcfs. For example, the following command will only
remove ptlrpc and its dependent modules (leaving libcfs intact):

    $ lustre_rmmod ptlrpc

The lnet init script was modified to perform a lustre_rmmod ptlrpc
before performing an lctl network down. By removing the ptlrpc
module, we can ensure that lnet is not in use. This will help
systems running lustre to shut down cleanly.

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Change-Id: If9681ebd785b6b5920e7d1553333ad8d6120de56
Reviewed-on: https://review.whamcloud.com/26959
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Ned Bass <bass6@llnl.gov>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/scripts/lnet
lustre/scripts/lustre_rmmod