Before you log out of an iSCSI device that is used for an NSS pool, you must first unmount the volumes, deactivate the pool, and unmount the pool. Log out of iSCSI immediately after you unmount the pool.
IMPORTANT:The nlvm unmount <poolname> command removes the pool’s Device Mapper object and allows the device to be disconnected gracefully. Otherwise, a server hang can occur.
Log in to the server as the root user, then launch a terminal console.
Launch NSSMU.
nssmu
Dismount the volumes on the pool.
In the NSSMU main menu, select Volumes, then press Enter.
Select the volume, then press F7 to dismount it.
If the pool contains multiple volumes, repeat Step 3.b for each volume.
Press Esc to exit the Volumes page.
Deactivate the pool.
In the NSSMU main menu, select Pools, then press Enter.
Select the pool, then press F7 to deactivate it.
Press Esc to exit the Pools page.
Press Esc to exit NSSMU.
Ensure that you have exited NSSMU before you continue. It is essential that there be no cached states for device, partition, and pool objects within NSSMU.
Use NLVM to unmount the pool.
nlvm unmount <poolname>
An unmounted pool is a temporary state. You must log out of the iSCSI connection immediately after executing the nlvm unmount <poolname> command before any NLVM or NSSMU command is executed. As soon as NSSMU is run, NSSMU remounts the pool in order to manage it. In addition, almost any NLVM command that is run after the unmount also causes the pool to be remounted unless you use the -m option.
Log out of the iSCSI connection.
Launch YaST to manage the iSCSI client.
yast2 iscsi-client
Select the Connected Targets tab, then select the iSCSI device and click Logout.