StarWind iscsi SAN Software: Providing shared storage for Hyper-V's Live Migration feature on two physical servers www.starwindsoftware.com Copyright 2008-2011. All rights reserved.
COPYRIGHT Copyright 2008-2011. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording or otherwise, without the prior written consent of. TRADEMARKS StarWind, and the StarWind and the logos are trademarks of which may be registered in some jurisdictions. All other trademarks are owned by their respective owners. CHANGES The material in this document is for information only and is subject to change without notice. While reasonable efforts have been made in the preparation of this document to assure its accuracy, assumes no liability resulting from errors or omissions in this document, or from the use of the information contained herein. reserves the right to make changes in the product design without reservation and without notification to its users. TECHNICAL SUPPORT AND SERVICES If you have questions about installing or using this software, check this and other documents first - you will find answers to most of your questions here or there. If you need further assistance, please contact us.
Guide Introduction Note: Data Synchronization Channel redundancy is required. NIC teaming is recommended. The heartbeat and the client interfaces have to be separated using VLANs or different NIC ports. Copyright 2008-2011. All rights reserved. 3
Configuring StarWind Server Preparing Storage Two virtual disks are required for the configuration. Both of them have to be HA devices. This document provides description of creation of the first disk only. The procedure of creation of the second one is just the same except the second device will be used for storing virtual machines so it needs to be of a sufficient size (e.g.100 Gb). To create a disk: 1. Launch StarWind Console by clicking Start -> All Programs -> StarWind Software -> StarWind. Whenever the StarWind Console is running, its icon appears in the system tray. The StarWind Console may be accessed by double-clicking the icon using the left mouse button, or with a right- click of the mouse button and selecting Start Management Console from the popup menu. 2. From the Connections tree, select the computer you want to provision the iscsi target device on and double-click it to connect. 3. Enter login and password. The default login and password are root and starwind. You can always change them later. Also you can save the password by selecting the Save password checkbox. 4. Click OK to continue. Now when you are connected to the StarWind Service on the machine, you can create targets on it. To create a target: 1. Click button to continue. Copyright 2008-2011. All rights reserved. 4
2. In the wizard that appears, specify a unique target name. 3. Click Next to continue. 4. Select the HA device type by clicking Hard Disk -> Advanced Virtual -> High Availability device. 5. Specify the partner server parameters. Enter server's IP address or host name, and specify the user name and password for the StarWind Service. Copyright 2008-2011. All rights reserved. 5
6. Click Next to continue. Copyright 2008-2011. All rights reserved. 6
7. Specify partner target alias and/or partner target name. 8. Click Next to continue. Copyright 2008-2011. All rights reserved. 7
9. Specify location and name of your local virtual disk file and your partner's virtual disk file by clicking the button. 10. If you want to create new virtual disks, select the Create New checkbox. 11. Click Next to continue. Copyright 2008-2011. All rights reserved. 8
12. Specify the IP address for synchronization. 13. Set node priority using the Priority box. Note: In order to prevent data corruption in case of synchronization channel malfunction secondary node will be blocked until the synchronization channel operation is restored. You can also disable the automatic synchronization after node failure by clearing the Auto synchronization after failure checkbox. 14. Click Next to continue. Copyright 2008-2011. All rights reserved. 9
15. Specify one of the HA device initialization methods. 16. Click Next to continue. 17. Select the cache type, size and the expiry period in milliseconds. Copyright 2008-2011. All rights reserved. 10
18. Click the Next button to continue. Copyright 2008-2011. All rights reserved. 11
19. Make sure that the device parameters are correct. Click Back should any changes be required. 20. Click Next to continue. Copyright 2008-2011. All rights reserved. 12
21. A summary is displayed on the last wizard page. 22. Click Finish to close the wizard. Copyright 2008-2011. All rights reserved. 13
Configuring Windows Server 2008 The procedures described in this chapter have to be performed on both servers. Copyright 2008-2011. All rights reserved. 14
Install Failover Clustering and MPIO Feature To install Failover Clustering and MPIO features: 1. Open Server Manager by clicking Start -> Administrative Tools -> Sever Manager. 2. Click the Features item. 3. Click Add Features. An Add Features Wizard appears. 4. From the Features list, select the Failover Clustering and Multipath I/O checkboxes. 5. Click Next. 6. The server might need to reboot after installation is complete. Copyright 2008-2011. All rights reserved. 15
Install Hyper-V Role To install Hyper-V Role: 1. Open Server Manager by clicking Start -> Administrative Tools -> Sever Manager. 2. Click the Roles item. 3. Click Add Roles. Add Roles Wizard appears. 4. From the roles list, select the Hyper-V checkbox. 5. Follow the wizard instructions. Note: The server will reboot during the installation. Copyright 2008-2011. All rights reserved. 16
Connect Targets To connect targets: 1. Open the Microsoft iscsi Initiator by clicking Start -> Administrative Tools > iscsi Initiator. 2. Click the Discovery tab. 3. Click the Discover Portal... button and specify servers IP address in order to add the client connection interface IP of both local and partner server NIC. Copyright 2008-2011. All rights reserved. 17
Copyright 2008-2011. All rights reserved. 18
4. Switch to the Targets tab. This is how the discovered target looks for each of the servers. Local Server Partner server Quorum - inactive Quorum - connected Quorumpartner - connected Quorumpartner - inactive Copyright 2008-2011. All rights reserved. 19
The targets marked as connected should be connected through the client connection interface. 5. In the dialog window that appears, select the Add this connection to the list of Favorite Targets and Enable multi-path checkboxes. 6. Click the Advanced... button. Copyright 2008-2011. All rights reserved. 20
7. Click OK. 8. Connect the targets by clicking OK. Copyright 2008-2011. All rights reserved. 21
The inactive targets should be connected using the local server's Client interface 9. Click OK to connect the targets. 10. Follow the same procedure for the remaining target. 11. Do the same for another node. Copyright 2008-2011. All rights reserved. 22
Enable Multipath Support To enable Mutlipath Support: 1. Open the MPIO manager by clicking Start -> Administrative Tools -> MPIO. 2. Click the Discover Multi-Paths tab. 3. Select the Add support for iscsi devices checkbox. 4. Click Add. 5. Reboot the server. Note: Do not reboot both servers at the same time. Copyright 2008-2011. All rights reserved. 23
6. After rebooting the servers initialize disks and create partitions on them as you will do using physical hard drives. The procedures on the first server will be automatically shown on the second one. Copyright 2008-2011. All rights reserved. 24
Creating a Cluster To create a cluster: 1. Open Server Manager by clicking Features -> Failover Cluster Manager. 2. Click the Validate a Configuration... link to ensure that your servers meet the requirements to build a cluster. 3. In the Failover Cluster Manager window, click the Create a Cluster... link, and follow the wizard instructions. Copyright 2008-2011. All rights reserved. 25
Enabling Cluster Shared Volumes As soon as cluster is created, you will be redirected to to cluster Summary page. To enable Cluster Shared Volumes: 1. Click the Enable Cluster Shared Volumes... link. 2. Read the notice and select the I have read the above notice checkbox. 3. Click OK. Copyright 2008-2011. All rights reserved. 26
4. In the Cluster Shared Volumes section, click the Add Storage link on the Actions panel. Copyright 2008-2011. All rights reserved. 27
5. In the window that appears, select the HA Disk. 6. Click OK. Copyright 2008-2011. All rights reserved. 28
Making the VM Highly Available To make the VM Highly Available: 1. In your cluster management section, click Services and applications. Copyright 2008-2011. All rights reserved. 29
2. In the Actions panel, click Configure a Service or Application... link. 3. In the High Availability Wizard, click the Virtual Machine item. 4. Click Next. Follow the instructions to complete configuration. Copyright 2008-2011. All rights reserved. 30
5. Now select Services and application -> New Virtual Machine. 6. Select node. New Virtual Machine Wizard window appears. 7. On the Specify Name and Location step, select the Store the virtual machine in a different location checkbox. 8. Specify location of the cluster shared volume you have defined before. 9. Follow the wizard instructions to complete creation of virtual machines. Copyright 2008-2011. All rights reserved. 31
10. After configuring HA for the Virtual machine, power it on. The Live migrate and Quick migrate features are now available and you have a fully functional HA virtual machine without using a dedicated shared storage. Copyright 2008-2011. All rights reserved. 32
Contacts Support: www.starwindsoftware.com/support Support Forum: www.starwindsoftware.com/forums Sales E-mail: sales@starwindsoftware.com US Headquarters Direct phone number: 1-617-449-7717 Fax: 1-617-507-5845 EMEA, APAC Direct phone numbers: +44-0-2071936727 +44-0-2071936350 Voice Mail: 1-866-790-2646 Inc. 40 Mall Rd., Burlington MA 01803, USA www.starwindsoftware.com Copyright 2008-2011. All rights reserved. 33