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:
Log in to the server as the root user.
Create a stopnss.bsh file in /opt/novell/nss/sbin and provide the execute permission.
Add the following in stopnss.bsh:
#! /bin/bash umount -a -t nsspool
Go to /etc/systemd/system/multi-user.target.wants/novell-nss.service, and do the following changes:
Add rbdmap.service in both the Requires and After under the "Unit" section. For example,
[Unit] Requires=rbdmap.service After=rbdmap.service
Uncomment ExecStop and provide the full path of stopnss.bsh under the "Service" section.
[Service] ExecStop=/opt/novell/nss/sbin/stopnss.bsh