Documente Academic
Documente Profesional
Documente Cultură
Table of Contents
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 VMware Storage VMotion Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 What is Moved by VMware Storage VMotion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How VMware Storage VMotion Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . VMware Storage VMotion Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . VMware Storage VMotion Best Practices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 5 6
VMware Storage VMotion Uses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Storage Tiering with Sun Storage Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Sun Storage Array Performance and Scalability Management . . . . . . . . . . . . . . . . 8 Storage Maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Sun Storage 6000 and 2500 series architecture guidelines for VMware Storage VMotion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Introduction
VMware Storage VMotion, allows the user to perform live online migration of a running Virtual Machines disks, or disk files from ESX Servers perspective, from internal disk drives on a server, within and across storage arrays without the need for downtime while maintaining transaction integrity. The key difference between traditional live storage migration and Storage VMotion is that Storage VMotion can perform live online migration of the entire operating system, including Swap or page files and any virtual machine related configuration and log files, from one storage device to another. The purpose of this document is to provide guidelines and best practices for using VMware Storage VMotion with Sun Storage 6000 series, including the new ST6580 and ST6780, and the Sun Storage 2500 series storage arrays. Although all Fibre Channel or iSCSI capable Sun Microsystems Storage arrays listed in the VMware Storage/SAN Compatibility Guide are supported with VMware Storage VMotion. The guide is updated on a regular basis with new storage arrays added so it is highly recommended that the online version of the guide be referred to prior to providing any architectural recommendations.
The disks can be moved independently as needed or required. The OS disk can be moved without having to move data disks or luns and any and all disks can be placed on any disk/lun configuration on the particular ESX server.
Step 1. Copy virtual machine home directory to new location. This step uses NFC copier to copy the files over to the new location
Step 2. Self-VMotion to new virtual machine home. A self-VMotion uses the same process as a normal VMotion operation. This step enables the use of the new swap file and reopen other copied files such as the virtual machine config file and other such files.
Step 3. Take a disk-only snapshot. This creates a child disk which will now be used to maintain ALL changes being made to the Virtual Machine data.
Step 6. Delete original virtual machine home and disks and enable read/write on new copied disk.
Virtual machines requiring Storage VMotion capability must not have any cluster relationship with another virtual machine as is the case when using a clustering technology such as Microsoft Cluster Server or Sun Cluster at the virtual machine level Simultaneous Storage VMotion and VMotion on the same virtual machine is not allowed. A virtual machines datastores can be moved to a different storage first using Storage VMotion and the virtual machine can be moved to a different ESX server second or vice-versa.
If moving virtual machine disks on datastores residing on the same storage array, use different target ports on the array for the source and destination luns for maximum performance Coordination between storage, server and VMware administrators is key as all components need to work seemlessly for a successful Storage VMotion operation It is strongly recommended that Storage VMotion be performed during off peak hours for the specific virtual machine in order to avoid any noticeable performance impact
Snap Shot technologies within an array can be used to migrate data from one lun to another due to any number of reasons such as a new raid layout, for example moving from RAID-5 to RAID-6. These snapshot technologies such as ShadowImage for Sun Storage 9000 series or SnapShot for Sun Storage 6000 or 2500 array series also may require a license feature as is the case with ShadowImage for Sun Storage 9000 series and require further configuration tasks to setup a mirror, sync the luns, break the mirror and then perform further administration tasks at the ESX server level for the secondary lun to be mapped to the same ESX server. Storage VMotion is also not a technology replacement for In-Storage Replication Data Services. Storage VMotion does not create a copy of the data, rather migrates virtual machine and its associated disk files between a given set of LUNs.
Stop all I/O to luns to be migrated, create a full backup and perform a restore to the destination array Possible issues include unnecessary and prolonged downtime, errors during backups and/or restores, possible overloading of the backup infrastructure which may take resources away from regular day-to-day backup requirements or having to create or add new backup resources such as tape drives, etc. To avoid all of these and many other much more complicated, task-oriented methods to perform a simple lun migration from one array to another or a full migration of all ESX server luns from one array to anther or to a different set of luns with in the same array, the use of Storage VMotion is the obvious choice as it maintains uptime for the virtual machines in any situation without having go through complex tasks of setting up remote replication, backup and recovery or an internal snapshot technology. Virtual machine disks resident on an iSCSI array can be migrated to Fibre Channel or vice-versa. For instance, a Test Virtual Machine moving into a Production status can simply be migrated from a test Sun Storage 2510 to a new Fibre Channel Sun Storage 6780 Production array using Storage VMotion.
Figure 2. VMs residing on internal drives of an ESX server are exposed to SPoF. Shared Storage offers enhanced redundancy and availability.
The configuration can be further enhanced by adding arrays which would then allow for complete redundancy at all levels. (See Figure 3). Virtual machine disks can be moved seamlessly from internal server disks to the single Sun Storage 6140 and then can be further scaled and divided between the Sun Storage 6140 and the Sun Storage 6780 based on the degree of data and virtual machine criticality. Data requiring high performance and redundancy can be moved independently to the higher performance more scalable ST6780 and other data and virtual machine disks can stay on the ST6140. All of this data migration can be performed using VMware Storage VMotion.
Figure 3. Low $$/GB storage should be used for non-essential data and High $$/GB, high performing storage for critical data.
Storage Maintenance
Another use of Storage VMotion could be storage maintenance which may have an impact on production I/O. Storage space reclamation is a major factor and another compelling reason for use of Storage VMotion.
Sun Storage 6000 and 2500 Series Architecture Guidelines for VMware Storage VMotion
When architecting a storage solution for VMware, it is important to consider all aspects of the software including Storage VMotion, which can have a considerable impact on storage I/O performance when active. (See Figure 4).
Figure 4. If possible, isolate Storage VMotion I/O traffic from Production I/O by using different Initiators/Targets.
Given the illustration above, some important best practices to consider: It is strongly recommended to separate Storage VMotion traffic from Production I/O traffic at the HBA level to the Storage array port to avoid any possible performance bottle necks Another reason to design the solution as such is so data moves from Source Lun to Destination Lun using a completely different I/O path which will allow Storage VMotion to complete the process quicker than if the same path was to be used to moved hence possible creating a bottleneck. The label Storage VMotion path and Production path is generic in terms of the illustration above.
Sun Storage Common Array Manager software can be used to change Preferred Controller for each Lun or Volume on the array which allows the I/O load to be spread across controllers. (See Figure 5).
Figure 5. Avoid moving VMware datastores from a lun within the same volume on an array. For example, in the illustration above, moving a datastore from Lun 2 to Lun 3 is not recommended as it will put unnecessary I/O stress on that volume. The given move also defeats the purpose of using Storage VMotion as a tool to disperse data effectively and decrease performance bottlenecks unless there was a specific reason to perform this task such as the need for more space at the lun level. For the Sun Storage 2510 array, it is strongly recommended to use dedicated host network interface and array port to avoid severe I/O bottlenecks when moving datastores from or to the array. Since the array ports run at 1 GigE speeds, moving datastores from a Fibre Channel array such as the Sun Storage 2540 could result in very slow Storage VMotion operation. Since Storage VMotion only currently supports Fibre Channel and iSCSI storage arrays, Sun Storage 2530 array is not supported with Storage VMotion Follow all Sun Storage and VMware best practices and guidelines to configure the ST6000 series and ST2500 series arrays for use with VMware ESX servers
References
Sun Storage 6580 and 6780 Release Notes http://dlc.sun.com/pdf/820-5776-11/820-5776-11.pdf Sun Storage 6580 and 6780 Hardware Installation Guide http://dlc.sun.com/pdf/820-5773-10/820-5773-10.pdf Sun Storage 2500 Series Array Hardware Installation Guide http://dlc.sun.com/pdf/820-0015-12/820-0015-12.pdf Sun Storage 6140 Array Hardware Installation Guide http://dlc.sun.com/pdf/819-7497-11/819-7497-11.pdf Sun Storage Common Array Manager Software Installation Guide http://dlc.sun.com/pdf/820-5747-10/820-5747-10.pdf VMware VI3 and Virtual Infrastructure Basic System Administration Guide www.VMware.com/pdf/vi3_35/esx_3/r35u2/vi3_35_25_u2_admin_guide.pdf VMware Storage/SAN Compatibility Guide www.VMware.com/resources/compatibility/pdf/vi_san_guide.pdf VMware Remote Command-Line Interface Installation and Reference Guide www.VMware.com/pdf/vi3_35/esx_3/r35u2/vi3_35_25_u2_rcli.pdf VMware Fibre Channel SAN Configuration Guide www.VMware.com/pdf/vi3_35/esx_3/r35u2/vi3_35_25_u2_san_cfg.pdf
Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA 95054 USA Phone 1-650-960-1300 or 1-800-555-9SUN (9786) Web sun.com
2009 Sun Microsystems, Inc. All rights reserved. Sun, Sun Microsystems, and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. or its subsidiaries in the United States and other countries. Information subject to change without notice. SunWIN #559704 Lit. #SYWP14884-0 04/09