Friday, July 29, 2011

Adding Pass-through disks to a Hyper-V cluster

I could not find decent documentation on how to add iscsi pass-through disks to a VM in a Hyper-V cluster. Here are the steps i used:

  1. I'm assuming you already have the disk in Disk Management. Bring it online, initialize it and take it back offline.
  2. In Cluster Management, right-click on "storage" and click "Add a Disk". Add the disks you are going to use as pass-through. This will add the disks as "Available Storage".
  3. To make this easy, shut down the server you're adding the disk(s) to. Now, in Cluster Mgmt, highlight the server you're adding it too and select "Manage Virtual Machine" on the right pane.
  4. In the instance of Hyper-V Mgmt that opens, right click the server you're adding the disk(s) to and click "Settings". Add the disk(s) as a scsi resource.
  5. Now, go back to Cluster Mgmt and select the server in the left hand pane. In the middle pane, right click on the server and go to More Actions -> Refresh VM Configuration.
  6. Back to the left pane. Right click on the server resource and select "Add Storage". Check the disk(s) you added and click OK. Now the disks are added as a cluster resource and can migrate.