The disk disconnect command disconnects a LUN from the host. The LUN must be connected (mapped to a Windows drive letter) for the command to succeed.
sdcli disk disconnect [-m MachineName] {-p LUNpath | -d MountPoint} [-f]
sdcli disk disconnect -d z
The preceding example disconnects the LUN mapped to the drive letter “Z:” on the SnapDrive host running the sdcli command.
sdcli disk disconnect -p \\storage2\sd_vds_only\mktng.lun -f
The preceding example forces disconnection of the LUN mktng.lun, which is in the sd_vds_only volume on storage2. Because the -f switch is being used, all open files in the LUN might be lost or corrupted.