Perform the steps in this procedure to avoid losing or
corrupting data.
Procedure
- Stop the I/O operation to the mounted iSCSI device.
- Unmount the mounted iSCSI device using the umount utility.
#umount /dev/sda1
Note: If
you try to unmount the iSCSI device while I/O is still running, the
unmount command fails with device is busy.
- Log out from the target:
#iscsiadm --mode node --target <IQN> --portal 192.0.2.* --logout
Note: If
you log out from the target while the iSCSI device is mounted and
I/O is running, it causes data corruption or loss. So execute step
1 and step 2 of this procedure before you run step 3.