Tips for first-time SCSI pass-through disk users

Brien Posey

Although Hyper-V virtual machines are usually configured to use virtual hard disks, they can be configured to connect directly to a physical storage device. A virtual machine can connect to direct-attached storage (DAS) that is physically connected to the host server, or it can connect to a logical unit number on a SAN.

Those using the SCSI pass-through disk feature for the first time often have difficulty connecting a virtual machine (VM) to the desired disk. However, there is a method to the madness. The trick to making a logical unit number (LUN) available to a VM as a pass-through disk is that the LUN must not only be mapped to the host server but also be presented as offline.

The first step in the process is to connect the host server to the LUN. You don't have to do anything in this step if the LUN consists of DAS, but if the LUN resides on a SAN you will need to establish connectivity to the LUN from the Hyper-V server's host operating system.

Once connectivity is established, the LUN should be visible through the host OS disk management console. Normally, the disk management console shows the disk as offline (depending on the SAN policy). While this would seem to meet Hyper-V's criteria, there is one more issue to overcome before you can use the LUN as a SCSI pass-through disk: Ensuring the disk has been initialized.

If the disk management console displays the disk as "unknown," it means the disk has not been initialized and Windows cannot use it. In this situation, you must right-click on the disk and choose the "Initialize Disk" command from the shortcut menu. Windows will then ask if you want to initialize the disk using a Master Boot Record or a GUID partition table (GPT). A GPT is usually preferred, but you should base your selection on how the VM will use the pass-through disk.

When the Initialize Disk Wizard completes, the hard disk may display a status of "online." If this happens, you need to right-click on the disk and set the status to "offline." The LUN should now be ready to use for pass-through storage.

View the next item in this Essential Guide: Limitations of SCSI pass-through disks in Hyper-V or view the full guide: Using Hyper-V features to enhance storage

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: