Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-14074

LNet: lustre_rmmod fails after lnetctl is used

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.15.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      After using the lnetctl utility a reference count is taken on the lnet modules and lnetctl lnet unconfigure needs to be called in order for lustre_rmmod to remove the lnet module.

      I think it would be a good idea to modify lustre_rmmod to unconfigure lnet to avoid having to do it manually.

      Steps to reproduce:

      modprobe lustre
      lnetctl lnet configure
      lustre_rmmod 

      Attachments

        Issue Links

          Activity

            [LU-14074] LNet: lustre_rmmod fails after lnetctl is used
            pjones Peter Jones added a comment -

            Landed for 2.15

            pjones Peter Jones added a comment - Landed for 2.15

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/41698/
            Subject: LU-14074 scripts: automatic LNet unconfigure
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: ebdf71a2df044c441ff633dbfc2f463520892bfb

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/41698/ Subject: LU-14074 scripts: automatic LNet unconfigure Project: fs/lustre-release Branch: master Current Patch Set: Commit: ebdf71a2df044c441ff633dbfc2f463520892bfb

            Cyril Bordage (cbordage@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/41698
            Subject: LU-14074 scripts: automatic LNet unconfigure
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 4a61ed82c999a8d4449407de19aa6524a20214cf

            gerrit Gerrit Updater added a comment - Cyril Bordage (cbordage@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/41698 Subject: LU-14074 scripts: automatic LNet unconfigure Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 4a61ed82c999a8d4449407de19aa6524a20214cf

            I agree that this would be very useful. When this change is made, the code in lustre/scripts/lnet.in should be modified correspondingly:

            -        lustre_rmmod ptlrpc || exit 1
            -        lnetctl lnet unconfigure || exit 1
            -        lustre_rmmod libcfs ldiskfs || exit 1
            +       lustre_rmmod || exit 1
            

            along with lustre/scripts/systemd/lnet.service.in:

            -ExecStop=@sbindir@/lustre_rmmod ptlrpc
            -ExecStop=@sbindir@/lnetctl lnet unconfigure
            -ExecStop=@sbindir@/lustre_rmmod libcfs ldiskfs
            +ExecStop=@sbindir@/lustre_rmmod
            
            adilger Andreas Dilger added a comment - I agree that this would be very useful. When this change is made, the code in lustre/scripts/lnet.in should be modified correspondingly: - lustre_rmmod ptlrpc || exit 1 - lnetctl lnet unconfigure || exit 1 - lustre_rmmod libcfs ldiskfs || exit 1 + lustre_rmmod || exit 1 along with lustre/scripts/systemd/lnet.service.in : -ExecStop=@sbindir@/lustre_rmmod ptlrpc -ExecStop=@sbindir@/lnetctl lnet unconfigure -ExecStop=@sbindir@/lustre_rmmod libcfs ldiskfs +ExecStop=@sbindir@/lustre_rmmod

            People

              cbordage Cyril Bordage
              ashehata Amir Shehata (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: