7.4 Logging Out of an iSCSI Device that Contains an NSS Pool

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.

  1. Log in to the server as the root user, then launch a terminal console.

  2. Launch NSSMU.

    nssmu
  3. Dismount the volumes on the pool.

    1. In the NSSMU main menu, select Volumes, then press Enter.

    2. Select the volume, then press F7 to dismount it.

    3. If the pool contains multiple volumes, repeat Step 3.b for each volume.

    4. Press Esc to exit the Volumes page.

  4. Deactivate the pool.

    1. In the NSSMU main menu, select Pools, then press Enter.

    2. Select the pool, then press F7 to deactivate it.

    3. Press Esc to exit the Pools page.

  5. 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.

  6. 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.

  7. Log out of the iSCSI connection.

    1. Launch YaST to manage the iSCSI client.

      yast2 iscsi-client
    2. Select the Connected Targets tab, then select the iSCSI device and click Logout.