Table of ContentsLibraryView in Frames

The disk disconnect command

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.

Note: You must make sure that the LUN you are disconnecting is not monitored with the Windows Performance Monitor (perfmon).
Syntax for this command is:

sdcli disk disconnect [-m MachineName] {-p LUNpath | -d MountPoint} [-f]

Attention: The -f switch causes the LUN to be forcibly unmounted, even if an application or the Windows operating system is using it. Therefore, use this feature with extreme care.

Example

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.