VMWare Basics

17
Virtual DR: Disaster Recovery Planning for VMware Virtualized Environments VMware DR considerations  ©2008 Si lv er to n Co ns ul ti ng, In c. 2 Virtual DR: Disaster Recovery Planning for VMware Virtualized Environments VMware DR considerations Raymond Lucchesi President Silverton Consulting, Inc. [email protected] Http://www.SilvertonConsulting.com Abstract V irtual DR: Disaster Recovery Planning  for VMware Virtualized Environments  VMware server virtualization is being touted as a near panacea for DR by making it easier than ever to recover servers to a secondary site. But, just as virtual servers complicate backup procedures , server virtualization has an impact on storage infrastructures and may require tweaking disaster recovery plans for storage systems.

Transcript of VMWare Basics

Page 1: VMWare Basics

8/6/2019 VMWare Basics

http://slidepdf.com/reader/full/vmware-basics 1/17

Virtual DR: Disaster Recovery Planning for VMware Virtualized 

Environments 

VMware DR considerations 

 © 2008 S il ve rton Consu lt ing, Inc. 2

Virtual DR: Disaster Recovery Planning 

for VMware Virtualized Environments 

VMware DR considerations 

Raymond Lucchesi

President

Silverton Consulting, Inc.

[email protected]

Http://www.SilvertonConsulting.com

Abstract

V i r t u a l DR: D isas te r Recove ry P lann ing  f o r V Mw a re V i r t u a l i z ed E n v i r o n me n t s  

VMware server virtualization is being touted as a near panaceafor DR by making it easier than ever to recover servers to asecondary site. But, just as virtual servers complicate backupprocedures, server virtualization has an impact on storageinfrastructures and may require tweaking disaster recoveryplans for storage systems.

Page 2: VMWare Basics

8/6/2019 VMWare Basics

http://slidepdf.com/reader/full/vmware-basics 2/17

 © 2008 S il ve rton Consu lt ing, Inc. 4

VMware DR advantages

• Testability

• Hardware independence• P2V, V2V, & V2P

• Data encapsulation

 © 2008 S il ve rton Consu lt ing, Inc. 5

DR testability

• VM DR can be tested on otherESX servers in same or remotesite• Easy image copy availability

• Easy configuration changes to run VM

 © 2008 S il ve rton Consu lt ing, Inc. 6

Hardware (HW) independence

• Primary <> DR site HW• vmkernal isolates and

virtualizes all CPU, networkingand storage HW interaction• Except Raw Device Mapping (RDM)

Page 3: VMWare Basics

8/6/2019 VMWare Basics

http://slidepdf.com/reader/full/vmware-basics 3/17

 © 2008 S il ve rton Consu lt ing, Inc. 7

P2V, V2V, & V2P

• P2V - physical server hosted as aVM at DR site via VM converter and3rd party tools

• V2V - DR site ESX server HWdifferent than primary site HW

• V2P - VM hosted as a physicalserver at DR site, requirescompatible HW, 3rd party tools

 © 2008 S il ve rton Consu lt ing, Inc. 8

Data encapsulation

• VMware encapsulates all VM data infew files under one directory• Except RDM data

• File data can be restored to re-starta VM on a remote site ESX server

 © 2008 S il ve rton Consu lt ing, Inc. 9

VMware Datastores

• VMware clustered file system(VMFS)• DAS

• iSCSI

• FC storage

• NAS/NFS volumes

Page 4: VMWare Basics

8/6/2019 VMWare Basics

http://slidepdf.com/reader/full/vmware-basics 4/17

 ©2008 Silverton Consult ing, Inc. 10

VMFS capabilities

• Distributed, sharable file system,shared across ESX servers and VMs

• Flexible block sizing

• Flexible file system/volume sizing

• File system change journal

 ©2008 Silverton Consult ing, Inc. 11

VMFS datastore

• VMware cluster file system

LUN0LUN0

LUN0LUN0

LUN0LUN0

LUN7

LUN0LUN0

LUN0LUN0

LUN0LUN0LUN13

LUN0LUN0

LUN0LUN0

LUN0LUN0

LUN0

VMFS0 VMFS1 VMFS2

 ©2008 Silverton Consult ing, Inc. 12

Files for each VM(.vmx, .vmdk & others)

• File(s) that encapsulate the config,

O/S, application, and data for aVirtual Machine (VM)

LUN0LUN0

LUN0LUN0

LUN0LUN0

LUN0

VMFS0

vm1.vmx

vm1.vmdk

vm2.vmx

vm2.vmdk

vm3.vmx

vm3.vmdkESX

VM 1

VM 2

VM 3

Page 5: VMWare Basics

8/6/2019 VMWare Basics

http://slidepdf.com/reader/full/vmware-basics 5/17

 ©2008 Silverton Consult ing, Inc. 13

Raw Device Mapping (RDM)

Two modes

• Virtual compatibility mode• uses VMFS mapping file

• virtualizes physical device I/O

• Physical compatibility mode,• uses VMFS mapping file

• I/O directly to physical device bypassingESX I/O virtualization

• VM snapshots not supported

 ©2008 Silverton Consult ing, Inc. 14

Recap VMware

• Provides easy DR testability

• Removes H/W dependencies

• Encapsulates all VM data• RDM data lone exception

 ©2008 Silverton Consult ing, Inc. 15

VMware backup alternatives

• Backup SW agents on VMs• File level backup & restores

• Backup SW agents on ESX serviceconsole• Image level backup & restores

• VMware consolidated backup

• CDP

Page 6: VMWare Basics

8/6/2019 VMWare Basics

http://slidepdf.com/reader/full/vmware-basics 6/17

 ©2008 Silverton Consult ing, Inc. 16

VM backup agents

• Backup agents on VM read files

• VM backup agent transfers file data tobackup server over LAN

• Backup server writes data to backuptarget

→No .vmdk or .vmx images for DR

→Ability to do file level restores

→Performance considerations

 ©2008 Silverton Consult ing, Inc. 17

ESX service console backupagents

• Backup agents on ESX service consolereads .vmdk and .vmx files

• ESX backup agent transfers file data tobackup server over LAN

• Backup server writes data to backuptarget

→ No file level restore

→ Performance considerations

 ©2008 Silverton Consult ing, Inc. 18

VM consolidated backup(VCB)

•  “LAN-free” backup of VMs• Suspend VM

• Uses VM snapshot to replicate datastores• Catalog’s VM state on snapshot

• Resume VM

• Snapshots mounted or streamed to VCB proxy

• Snapshots backed up to target media via other backup SW

• VCB releases snapshots after backup

• Requires• VCB backup proxy (Windows 2003) server

• Other Backup SW

• Shared SAN access to VMFS and NAS datastores and snapshots

• VI3 supports all datastore types for VCB

Page 7: VMWare Basics

8/6/2019 VMWare Basics

http://slidepdf.com/reader/full/vmware-basics 7/17

 ©2008 Silverton Consult ing, Inc. 19

VMware Snapshot

• Copy of disk, memory, CPUstate taken point-in-time

• Parent-child relationship

• .REDO bitmap files

• Activity state of VM?

 ©2008 Silverton Consult ing, Inc. 20

VCB

Works well for

• Offloading ESX server backupcycles

• Image copies of VMs

• File level backups for Windows

 ©2008 Silverton Consult ing, Inc. 21

VCB

Works poorly for

• VMs with large .vmdk - needfile level backups

• OLTP or always on VMs

• RDM physical mode

Page 8: VMWare Basics

8/6/2019 VMWare Basics

http://slidepdf.com/reader/full/vmware-basics 8/17

 ©2008 Silverton Consult ing, Inc. 22

VCB integrated S/ W Tools

• VizionCore VrangerPRO

• esXpress

• Vmts.net - vmbk.pl

• Symantec Backup Exec systemrecovery option

• Also supported by SymantecBackup Exec, Net Backup, EMCNetworker, CommVault Galaxy andothers

 ©2008 Silverton Consult ing, Inc. 23

VMware backup recap

• How you backup VMs impactsDR

• VCB can help DR• For the right VMs

 ©2008 Silverton Consult ing, Inc. 24

VMware CDP

• VM based write splitters protect VM

files• Network and storage array writesplitters protect disk images

• Some CDPs support ESX writesplitters via Veritas Volumemanager also protecting

Page 9: VMWare Basics

8/6/2019 VMWare Basics

http://slidepdf.com/reader/full/vmware-basics 9/17

 ©2008 Silverton Consult ing, Inc. 25

VMware local clustering

• DRS for performance optimization

• HA for fault tolerance

• Both depend on• VMotion to migrate active VMs

• Shared access to datastores

 ©2008 Silverton Consult ing, Inc. 26

VM Dynamic ResourceScheduler (DRS)

• User defined pools of resources andVM prioritization

• Automatic or manually balances VMload across defined resource pools

• Also used for service outages

• Also supports power management

 ©2008 Silverton Consult ing, Inc. 27

VM High Availability (HA)

• Local fault tolerant cluster of ESXservers using heartbeat to detectfailed VM/ESX server

• Reserves resources for fail over

• In combination with DRS selectsoptimal placement for restart

Page 10: VMWare Basics

8/6/2019 VMWare Basics

http://slidepdf.com/reader/full/vmware-basics 10/17

 ©2008 Silverton Consult ing, Inc. 28

VMotion• Running VM quiesced, snapped and terminated

• Activates new VM on another ESX sever• Requires• Shared access to datastores

• Compatible H/W

• VM data stays in place

ESX0

VM 0

VM 1

VM 2

VM 3

ESX1

VM 4

VM 5

VM 6

VM 0

 ©2008 Silverton Consult ing, Inc. 29

Storage VMotion

• Moves .vmdk files to otherdatastores

• Used primarily for technologyupgrades

• Also used for balancing storageaccess

 ©2008 Silverton Consult ing, Inc. 30

Storage VMotion

Local data migration

• Allows live VM directory migrationto other VMFS datastores

• Multi-step process that clones VMdirectory and then re-directs allwrites to new datastore

• Uses shared access to all VMFSdatastores

Page 11: VMWare Basics

8/6/2019 VMWare Basics

http://slidepdf.com/reader/full/vmware-basics 11/17

 ©2008 Silverton Consult ing, Inc. 31

Why DRS, HA and VMotion forDR

• Can operate both at local andremote site to optimizeperformance

• Resource pools and VMprioritization also needed for DR

 ©2008 Silverton Consult ing, Inc. 32

VMware DR alternatives

• Non-RDM DR

• RDM DR

• VMware Site Recovery Manager

• Non-VMware replication-clustering

 ©2008 Silverton Consult ing, Inc. 33

Non-RDM VM DRVM data is .vmx, .vmdk(s), & other files

• Image copies available

• H/W & S/W to run ESX server• Configure ESX server to run VM

• Configure datastore(s)

• Restore VM files

• Re-IP network

• Start ESX server

• Restart VM

Page 12: VMWare Basics

8/6/2019 VMWare Basics

http://slidepdf.com/reader/full/vmware-basics 12/17

 ©2008 Silverton Consult ing, Inc. 34

RDM VM DR

Same as Non-RDM VM DR but

• RDM mapping files in VMFS needed

• Physical copy of RDM LUN(s)required to be backed up andrestored at DR site before VMrestart

• Storage HW configuration matchesprimary site

 ©2008 Silverton Consult ing, Inc. 35

VMw are Site RecoveryManager (SRM)

• Maps LUNs to VMFS to (.vmdk & .vmx)files

• Automates• Procedures to invoke SAN-LUN replication

• Processes to failover to hotsite

• Procedures to re-IP networking at hotsite

• Storage supported replication agents• 3PAR, Compellent, Dell, EMC, FalconStor, Hitachi,

HP, IBM, LeftHand Networks, NetApp, and Xiotech

 ©2008 Silverton Consult ing, Inc. 36

SRM Storage ReplicationAgents (RA)

• RA is VMware defined API

• Provides consistent SRM services acrossstorage vendors

• To initiate, monitor, and terminate storagereplication

• Can support asynch and/orsynchronous disk mirroring

• Can take advantage of storagesnapshots

Page 13: VMWare Basics

8/6/2019 VMWare Basics

http://slidepdf.com/reader/full/vmware-basics 13/17

 ©2008 Silverton Consult ing, Inc. 37

Non-VMware replicator-clustering products

• VizionCore Vreplicator• Uses software replication

• Double-take Server RecoveryOption• uses software replication

• Veritas Cluster Services for VMware• uses storage HW replication

 ©2008 Silverton Consult ing, Inc. 38

Other Cluster software

Operate at VM level and only at Localsite

• MSCS

• Livelink SUSE

• WanSyncHA

• Veritas Cluster Services for VMwarealso support local clustering

 ©2008 Silverton Consult ing, Inc. 39

Remote data replicationalternatives

• SAN data mirroring• Storage Virtualization

• Replication appliances

• Remote CDP

• Software replication

Page 14: VMWare Basics

8/6/2019 VMWare Basics

http://slidepdf.com/reader/full/vmware-basics 14/17

 ©2008 Silverton Consult ing, Inc. 40

SAN mirroring considerations

• Dedicated networking

• Active storage at remote DR site

• Types of SAN mirroring• Synch

• Semi-synch

• Asynch

• Requires matching vendor storageHW

 ©2008 Silverton Consult ing, Inc. 41

VMware SAN mirroringconsiderations

• Insure all LUNs for VMFS datastores aresingle consistency group

• Datastore mirrored LUNs/volumes mustcontain all .vmdk and .vmx files for VMneeded for DR

• RDM LUNs also need to be mirrored• Should be included in consistency group

 ©2008 Silverton Consult ing, Inc. 42

Storage virtualization

Storage HW independence

• Heterogeneous data mirroring• Primary <> DR site storage hardware

• Also provides storage tieringand pooling across subsystems

Page 15: VMWare Basics

8/6/2019 VMWare Basics

http://slidepdf.com/reader/full/vmware-basics 15/17

 ©2008 Silverton Consult ing, Inc. 43

Replication appliances

• Usually network attached dedicatedHW providing remote replication

• Can use TCP/IP over WAN for datatransfer

• Support for Asynch mirroring

• VMware considerations same asSAN mirroring

 ©2008 Silverton Consult ing, Inc. 44

CDP replication appliances

Similar to replication appliancesbut

• Provide any point-in-timerecovery

• Requires write-splitter

 ©2008 Silverton Consult ing, Inc. 45

Software Replication

• Double-take replicationsoftware for Windows

• Softek Replicator

• VizionCore Vreplicator

Page 16: VMWare Basics

8/6/2019 VMWare Basics

http://slidepdf.com/reader/full/vmware-basics 16/17

 ©2008 Silverton Consult ing, Inc. 46

Coldsite DR considerations

• Backup data offsite• Could be image or file data

• H/W contracts for guaranteeddelivery timeframes

• S/W agreements for service andlicensing in case of disaster

RTO: 8d..?

 ©2008 Silverton Consult ing, Inc. 47

Warmsite DR considerations

• Owned DR site or Outsourced DRsite• For outsourced - SunGard, IBM, HP, etc.

• Data can be at 3rd site or located atDR site• Outsourced sites can be multiple locations

RTO:1d..8d

 ©2008 Silverton Consult ing, Inc. 48

Hotsite DR considerations

• Asynch replication via SW,

appliance or storage subsystem• Need to replicate datastores and RDM data

• S/W support - Vreplicator & Double-TakeSRO• No support for RDM data

• Dedicated networking

• Active data replication at DR site

RTO:3h..1d

Page 17: VMWare Basics

8/6/2019 VMWare Basics

http://slidepdf.com/reader/full/vmware-basics 17/17

 ©2008 Silverton Consult ing, Inc. 49

Mirror site DR considerations

• Dedicated SAN or appliancebased replication• Need to replicate datastores and RDM

data

• Dedicated networking

• Active storage at DR site

RTO:0h..3h

 ©2008 Silverton Consult ing, Inc. 50

For more information

Ray Lucchesi

+1-720-221-7270

[email protected]

 ©2008 Silverton Consult ing, Inc. 51

Some terminology

.vmdk VM disk file

.vmx VM configuration file

CDP Continuous data proctection

Datastore Storage that holds VM disk, configuration, and other files

DRS Dynamic Resource Scheduler

ESX VMware enterprise server virtualization

HA High Availability

Orphaned Server Non-running VM, disk files exist but no ESX server runs VM

RDM Raw device mapping

SAN Storage area network

Storage Vmotion VM directory live migration from one VMFS datastore to another

VCB VMware consolidated backup

VI3 Virtual infrastructure 3

VM Virtual machine

VMFS VMware file system

vmkernel Vmware hyper-visor which virtualizes hardware

Vmotion VM live migration from one ESX server to another