30.1 NSS Server Hangs on Ceph Storage with the RADOS Block Device

When you create an NSS pool and volume on Ceph storage with the RADOS block device and restart the rbdmap.service, the server gets hanged. This is because the NSS pool is not unmounted before getting the Ceph storage down.

To avoid this issue, perform the following:

  1. Log in to the server as the root user.

  2. Create a stopnss.bsh file in /opt/novell/nss/sbin and provide the execute permission.

  3. Add the following in stopnss.bsh:

    #! /bin/bash
    umount -a -t nsspool
  4. Go to /etc/systemd/system/multi-user.target.wants/novell-nss.service, and do the following changes:

    1. Add rbdmap.service in both the Requires and After under the "Unit" section. For example,

      [Unit]
      Requires=rbdmap.service
      After=rbdmap.service
    2. Uncomment ExecStop and provide the full path of stopnss.bsh under the "Service" section.

      [Service]
      ExecStop=/opt/novell/nss/sbin/stopnss.bsh