SlideShare ist ein Scribd-Unternehmen logo
1 von 38
Downloaden Sie, um offline zu lesen
Three Quirky Ways to Simplify DR with
Site Recovery Manager
Ben Meadowcroft, VMware
BCO5652
#BCO5652
3
Agenda
 Introduction
 SRM Command Steps
 SRM Alarms
 SRM API
 Summary
 Questions
4
“Three Quirky Ways” – What This Talk is Not
5
“Three Quirky Ways” – What This Talk is
How to use some of the
“under-appreciated” SRM
features to help your Disaster
Recovery processes
6
7
8
10
Which “under-appreciated” features do you mean?
Command Steps
Events & Alarms
API
1
2
3
11
Command Steps
API
1
2
3
Events & Alarms
12
Extend Your Recovery Plans
Recover Physical
Workloads
Update DNS
Send Recovery
Notifications
Integrate With
Other Systems
13
SRM Command Steps
Top-Level Commands Per-VM Commands
Where can
they
execute?
On the SRM server On the SRM server
On the Recovered VM
(requires VM tools)
When can
they
execute?
Any top level step during:
Failover, Migration, or Testing
Pre or Post Power-on
When executed on the VM
only post power-on steps!
Environment
Variables?
 VMware_RecoveryName
 VMware_RecoveryMode
 VMware_VC_Host
 VMware_VC_Port
 VMware_VM_Uuid
 VMware_VM_Name
 VMware_VM_Ref
 VMware_VM_Path
Post Power-On:
 VMware_VM_GuestName
 VMware_VM_GuestIP
14
Demo Time: What Am I Going To Show?
1. Call PowerShell script on SRM server
2. Call /bin/sh on recovered VM
3. How do I write scripts that work for both failover and failback?
4. Can I execute different behavior between test and failover?
5. How do I securely store credentials in my scripts?
15
16
1. Call PowerShell Script On SRM Server
17
2. Call /bin/sh On Recovered VM
18
3. How do I Write Scripts that Work for Both
Failover and Failback?
# PowerShell
if ($env:VMware_VC_Host -eq ‘vc-w8-
01a.corp.local‘) {
# action when target is site A
} else {
# action when target is site B
}
19
4. Can I Execute Different Behavior Between Test and Failover?
# PowerShell
if ($env:VMware_VC_RecoveryMode -eq ‘test‘) {
# action during test
} else {
# other action
}
20
5. How Do I Securely Store Credentials in My Scripts?
# PowerCLI to store
New-VICredentialStoreItem `
–Host $env:VMware_VC_Host `
–User ‘Administrator’ `
–Password ‘VMware1!’ `
–File ‘c:scriptsvicredentials.txt’
21
SRM Command Steps – Key Takeaways
 Useful tool but not a “hammer” for everything
 Don’t do too much in custom scripts
• Look at RTO impact running a script
 Avoid changing scripts for failback
• Use Environment Variables for conditional logic
22
Command Steps
API
1
2
3
Events & Alarms
23
“There are known knowns.
These are things we know that
we know.
“There are known unknowns.
That is to say, there are things
that we know we don't know.
“But there are also unknown
unknowns. There are things
we don't know we don't know.”
- Donald Rumsfeld
24
6 Types of SRM Events
Site Status
vSphere
Replication
Protection Group Storage and
Storage Provider
Permissions &
Licensing
Recovery
25
Some Interesting Alarms To Monitor
Remote Site Down VM Not Protected
VM Datastore
Replication Lost
Placeholder VM
Deleted
Array Pair Ping
Failed
VM Lost
License Expiring
License Expired
Recovery Plan
Destroyed
Recovery Plan
Started
vSphere Replication
Paused
RPO Violated
Remote VRM Site
Disconnected
26
Email
Scripts
SNMP
What can
I do with
SRM alarms?
28
“Known Unknowns”
“Known Knowns”
29
Command Steps
API
1
2
3
Events & Alarms
30
SRM API Basics
https://www.vmware.com/support/developer/srm-api/
Web Service .Net SDKJava SDK
Protection
Groups and
Replication
Recovery Plans
and Reprotection
31
32
“Gotchas” When Calling SRM API From PowerShell
 PowerShell v3 or later
• (v2 can’t handle the WSDL)
 New-WebServiceProxy
• Not a lightweight call!
• Useful for POC, exploration etc.
33
SRM API – Key Takeaways
 Introspect & Protect:
• Protection Group Information
• Recovery History
• Configure VMs for protection
 Initiate:
• Failover
• Test
• Cancel
• Revert
• Reprotect
34
Command Steps
Events & Alarms
API
1
2
3
37
Questions
github.com/benmeadowcroft/BCO5652
@BenMeadowcroft benmeadowcroft.com
38
Backup: Resources
 Related Sessions at VMworld
• BCO4905 - Disaster Recovery Solution with Oracle Data Guard and Site
Recovery Manager
• OPT5474 - The Transformative Power and Business Case
for Cloud Automation
 SRM Documentation
• http://www.vmware.com/support/pubs/srm_pubs.html
 SRM Book
• Administering VMware Site Recovery Manager 5 – by Mike Laverick
 Scripts From Presentation
• https://github.com/benmeadowcroft/BCO5652
[provided for illustrative purposes only]
39
Backup: Managing Scripts
 Source Control
• Use it (I like DVCS like mercurial and git)
 Script Location
• Local Disk
• Network Share (personally not a huge fan of this, potential POF during DR)
 Keeping Scripts in Sync (if stored on SRM server or VM)
• Various Options:
• Config. management tool, e.g. Puppet to distribute and ensure continued compliance
• File sync tool, e.g. rsync
40
Other VMware Activities Related to This Session
 HOL:
HOL-SDC-1305
Business Continuity and Disaster Recovery In Action
 Group Discussions:
BCO1003-GD
Disaster Recovery and Replication with Ken Werneburg
THANK YOU
Three Quirky Ways to Simplify DR with
Site Recovery Manager
Ben Meadowcroft, VMware
BCO5652
#BCO5652

Weitere ähnliche Inhalte

Was ist angesagt?

vmware_site_recovery_manager_and_net_app_fas_v-series_se_technical_presentati...
vmware_site_recovery_manager_and_net_app_fas_v-series_se_technical_presentati...vmware_site_recovery_manager_and_net_app_fas_v-series_se_technical_presentati...
vmware_site_recovery_manager_and_net_app_fas_v-series_se_technical_presentati...
Vinh Nguyen
 
Veeam back up and replication presentation
Veeam back up and replication presentation Veeam back up and replication presentation
Veeam back up and replication presentation
BlueChipICT
 

Was ist angesagt? (20)

Presentazione VMware @ VMUGIT UserCon 2015
Presentazione VMware @ VMUGIT UserCon 2015Presentazione VMware @ VMUGIT UserCon 2015
Presentazione VMware @ VMUGIT UserCon 2015
 
VMworld 2013: VMware Disaster Recovery Solution with Oracle Data Guard and Si...
VMworld 2013: VMware Disaster Recovery Solution with Oracle Data Guard and Si...VMworld 2013: VMware Disaster Recovery Solution with Oracle Data Guard and Si...
VMworld 2013: VMware Disaster Recovery Solution with Oracle Data Guard and Si...
 
vmware_site_recovery_manager_and_net_app_fas_v-series_se_technical_presentati...
vmware_site_recovery_manager_and_net_app_fas_v-series_se_technical_presentati...vmware_site_recovery_manager_and_net_app_fas_v-series_se_technical_presentati...
vmware_site_recovery_manager_and_net_app_fas_v-series_se_technical_presentati...
 
VMworld Europe 2014: A Blueprint for Disaster Recovery of Business Critical A...
VMworld Europe 2014: A Blueprint for Disaster Recovery of Business Critical A...VMworld Europe 2014: A Blueprint for Disaster Recovery of Business Critical A...
VMworld Europe 2014: A Blueprint for Disaster Recovery of Business Critical A...
 
Metro Cluster High Availability or SRM Disaster Recovery?
Metro Cluster High Availability or SRM Disaster Recovery?Metro Cluster High Availability or SRM Disaster Recovery?
Metro Cluster High Availability or SRM Disaster Recovery?
 
VMworld 2013: Protection for All - VMware vSphere Replication & SRM Technical...
VMworld 2013: Protection for All - VMware vSphere Replication & SRM Technical...VMworld 2013: Protection for All - VMware vSphere Replication & SRM Technical...
VMworld 2013: Protection for All - VMware vSphere Replication & SRM Technical...
 
VMworld 2014: Site Recovery Manager and Stretched Storage
VMworld 2014: Site Recovery Manager and Stretched StorageVMworld 2014: Site Recovery Manager and Stretched Storage
VMworld 2014: Site Recovery Manager and Stretched Storage
 
VMworld Europe 2014: Top 10 Do’s / Don’ts of Data Protection For VMware vSphere
VMworld Europe 2014: Top 10 Do’s / Don’ts of Data Protection For VMware vSphereVMworld Europe 2014: Top 10 Do’s / Don’ts of Data Protection For VMware vSphere
VMworld Europe 2014: Top 10 Do’s / Don’ts of Data Protection For VMware vSphere
 
Veean Backup & Replication
Veean Backup & ReplicationVeean Backup & Replication
Veean Backup & Replication
 
VMware Site Recovery Manager
VMware Site Recovery ManagerVMware Site Recovery Manager
VMware Site Recovery Manager
 
Veeam backup and_replication_whats_new_in_v7
Veeam backup and_replication_whats_new_in_v7Veeam backup and_replication_whats_new_in_v7
Veeam backup and_replication_whats_new_in_v7
 
VMworld Europe 2014: Virtualizing Databases Doing IT Right – The Sequel
VMworld Europe 2014: Virtualizing Databases Doing IT Right – The SequelVMworld Europe 2014: Virtualizing Databases Doing IT Right – The Sequel
VMworld Europe 2014: Virtualizing Databases Doing IT Right – The Sequel
 
PowerCLI & Onyx
PowerCLI & OnyxPowerCLI & Onyx
PowerCLI & Onyx
 
VMworld Europe 2014: Virtual SAN Best Practices and Use Cases
VMworld Europe 2014: Virtual SAN Best Practices and Use CasesVMworld Europe 2014: Virtual SAN Best Practices and Use Cases
VMworld Europe 2014: Virtual SAN Best Practices and Use Cases
 
Veeam Backup & Replication Tips and Tricks
Veeam Backup & Replication Tips and TricksVeeam Backup & Replication Tips and Tricks
Veeam Backup & Replication Tips and Tricks
 
VMworld Europe 2014: Storage DRS - Deep Dive and Best Practices
VMworld Europe 2014: Storage DRS - Deep Dive and Best PracticesVMworld Europe 2014: Storage DRS - Deep Dive and Best Practices
VMworld Europe 2014: Storage DRS - Deep Dive and Best Practices
 
Veeam back up and replication presentation
Veeam back up and replication presentation Veeam back up and replication presentation
Veeam back up and replication presentation
 
VMworld 2014 - BCO1152 - vCenter Site Recovery Manager: Architecting a DR Sol...
VMworld 2014 - BCO1152 - vCenter Site Recovery Manager: Architecting a DR Sol...VMworld 2014 - BCO1152 - vCenter Site Recovery Manager: Architecting a DR Sol...
VMworld 2014 - BCO1152 - vCenter Site Recovery Manager: Architecting a DR Sol...
 
Veeam Backup & Replication v8 for VMware — General Overview
Veeam Backup & Replication v8 for VMware — General OverviewVeeam Backup & Replication v8 for VMware — General Overview
Veeam Backup & Replication v8 for VMware — General Overview
 
What’s new in Veeam Availability Suite v9
What’s new in Veeam Availability Suite v9What’s new in Veeam Availability Suite v9
What’s new in Veeam Availability Suite v9
 

Ähnlich wie VMworld 2013: Three Quirky Ways to Simplify DR with VMware Site Recovery Manager

Im-A-Hacker-Get-Me-Out-Of-Here-Breaking-Network-Segregation-Using-Esoteric-Co...
Im-A-Hacker-Get-Me-Out-Of-Here-Breaking-Network-Segregation-Using-Esoteric-Co...Im-A-Hacker-Get-Me-Out-Of-Here-Breaking-Network-Segregation-Using-Esoteric-Co...
Im-A-Hacker-Get-Me-Out-Of-Here-Breaking-Network-Segregation-Using-Esoteric-Co...
YuChianWu
 

Ähnlich wie VMworld 2013: Three Quirky Ways to Simplify DR with VMware Site Recovery Manager (20)

VMworld 2013: PowerCLI Best Practices - A Deep Dive
VMworld 2013: PowerCLI Best Practices - A Deep DiveVMworld 2013: PowerCLI Best Practices - A Deep Dive
VMworld 2013: PowerCLI Best Practices - A Deep Dive
 
VMworld 2015: Automating Everything VMware with PowerCLI- Deep Dive
VMworld 2015: Automating Everything VMware with PowerCLI- Deep DiveVMworld 2015: Automating Everything VMware with PowerCLI- Deep Dive
VMworld 2015: Automating Everything VMware with PowerCLI- Deep Dive
 
VMworld 2013: Part 2: How to Build a Self-Healing Data Center with vCenter Or...
VMworld 2013: Part 2: How to Build a Self-Healing Data Center with vCenter Or...VMworld 2013: Part 2: How to Build a Self-Healing Data Center with vCenter Or...
VMworld 2013: Part 2: How to Build a Self-Healing Data Center with vCenter Or...
 
VMworld 2013: Implementing a Holistic BC/DR Strategy with VMware - Part Two
VMworld 2013: Implementing a Holistic BC/DR Strategy with VMware - Part TwoVMworld 2013: Implementing a Holistic BC/DR Strategy with VMware - Part Two
VMworld 2013: Implementing a Holistic BC/DR Strategy with VMware - Part Two
 
Command pattern vs. MVC: Lean Beans (are made of this)
Command pattern vs. MVC: Lean Beans (are made of this)Command pattern vs. MVC: Lean Beans (are made of this)
Command pattern vs. MVC: Lean Beans (are made of this)
 
VMworld 2013: The Missing Link: Storage Visibility In Virtualized Environments
VMworld 2013: The Missing Link: Storage Visibility In Virtualized Environments VMworld 2013: The Missing Link: Storage Visibility In Virtualized Environments
VMworld 2013: The Missing Link: Storage Visibility In Virtualized Environments
 
Weblogic
WeblogicWeblogic
Weblogic
 
VMworld 2013: Troubleshooting at Cox Communications with VMware vCenter Log I...
VMworld 2013: Troubleshooting at Cox Communications with VMware vCenter Log I...VMworld 2013: Troubleshooting at Cox Communications with VMware vCenter Log I...
VMworld 2013: Troubleshooting at Cox Communications with VMware vCenter Log I...
 
VMworld 2015: Day to Day Automation of VMware Products to Increase Productivi...
VMworld 2015: Day to Day Automation of VMware Products to Increase Productivi...VMworld 2015: Day to Day Automation of VMware Products to Increase Productivi...
VMworld 2015: Day to Day Automation of VMware Products to Increase Productivi...
 
Cooking with Chef on Windows: 2015 Edition
Cooking with Chef on Windows: 2015 EditionCooking with Chef on Windows: 2015 Edition
Cooking with Chef on Windows: 2015 Edition
 
Real World Lessons on the Pain Points of Node.js Applications
Real World Lessons on the Pain Points of Node.js ApplicationsReal World Lessons on the Pain Points of Node.js Applications
Real World Lessons on the Pain Points of Node.js Applications
 
VMworld 2013: VMware vSphere High Availability - What's New and Best Practices
VMworld 2013: VMware vSphere High Availability - What's New and Best PracticesVMworld 2013: VMware vSphere High Availability - What's New and Best Practices
VMworld 2013: VMware vSphere High Availability - What's New and Best Practices
 
VMworld 2013: Automated Management of Tier-1 Applications on VMware
VMworld 2013: Automated Management of Tier-1 Applications on VMware VMworld 2013: Automated Management of Tier-1 Applications on VMware
VMworld 2013: Automated Management of Tier-1 Applications on VMware
 
Say Bye to VMware PowerCLI ! Time to "GOVC"
Say Bye to VMware PowerCLI ! Time to "GOVC"Say Bye to VMware PowerCLI ! Time to "GOVC"
Say Bye to VMware PowerCLI ! Time to "GOVC"
 
Automating That "Other" OS
Automating That "Other" OSAutomating That "Other" OS
Automating That "Other" OS
 
Im-A-Hacker-Get-Me-Out-Of-Here-Breaking-Network-Segregation-Using-Esoteric-Co...
Im-A-Hacker-Get-Me-Out-Of-Here-Breaking-Network-Segregation-Using-Esoteric-Co...Im-A-Hacker-Get-Me-Out-Of-Here-Breaking-Network-Segregation-Using-Esoteric-Co...
Im-A-Hacker-Get-Me-Out-Of-Here-Breaking-Network-Segregation-Using-Esoteric-Co...
 
2019 Blackhat Booth Presentation - PowerUpSQL
2019 Blackhat Booth Presentation - PowerUpSQL2019 Blackhat Booth Presentation - PowerUpSQL
2019 Blackhat Booth Presentation - PowerUpSQL
 
VMworld 2013: VMware Horizon View Troubleshooting: Looking under the Hood
VMworld 2013: VMware Horizon View Troubleshooting: Looking under the HoodVMworld 2013: VMware Horizon View Troubleshooting: Looking under the Hood
VMworld 2013: VMware Horizon View Troubleshooting: Looking under the Hood
 
VMworld 2015: Troubleshooting for vSphere 6
VMworld 2015: Troubleshooting for vSphere 6VMworld 2015: Troubleshooting for vSphere 6
VMworld 2015: Troubleshooting for vSphere 6
 
VMworld 2013: How to Exchange Status Message Between Guest and Host Using RPC
VMworld 2013: How to Exchange Status Message Between Guest and Host Using RPC VMworld 2013: How to Exchange Status Message Between Guest and Host Using RPC
VMworld 2013: How to Exchange Status Message Between Guest and Host Using RPC
 

Mehr von VMworld

Mehr von VMworld (20)

VMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: vSphere 6.x Host Resource Deep DiveVMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: vSphere 6.x Host Resource Deep Dive
 
VMworld 2016: Troubleshooting 101 for Horizon
VMworld 2016: Troubleshooting 101 for HorizonVMworld 2016: Troubleshooting 101 for Horizon
VMworld 2016: Troubleshooting 101 for Horizon
 
VMworld 2016: Advanced Network Services with NSX
VMworld 2016: Advanced Network Services with NSXVMworld 2016: Advanced Network Services with NSX
VMworld 2016: Advanced Network Services with NSX
 
VMworld 2016: How to Deploy VMware NSX with Cisco Infrastructure
VMworld 2016: How to Deploy VMware NSX with Cisco InfrastructureVMworld 2016: How to Deploy VMware NSX with Cisco Infrastructure
VMworld 2016: How to Deploy VMware NSX with Cisco Infrastructure
 
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI Automation
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI AutomationVMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI Automation
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI Automation
 
VMworld 2016: What's New with Horizon 7
VMworld 2016: What's New with Horizon 7VMworld 2016: What's New with Horizon 7
VMworld 2016: What's New with Horizon 7
 
VMworld 2016: Virtual Volumes Technical Deep Dive
VMworld 2016: Virtual Volumes Technical Deep DiveVMworld 2016: Virtual Volumes Technical Deep Dive
VMworld 2016: Virtual Volumes Technical Deep Dive
 
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...
 
VMworld 2016: The KISS of vRealize Operations!
VMworld 2016: The KISS of vRealize Operations! VMworld 2016: The KISS of vRealize Operations!
VMworld 2016: The KISS of vRealize Operations!
 
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
 
VMworld 2016: Ask the vCenter Server Exerts Panel
VMworld 2016: Ask the vCenter Server Exerts PanelVMworld 2016: Ask the vCenter Server Exerts Panel
VMworld 2016: Ask the vCenter Server Exerts Panel
 
VMworld 2016: Virtualize Active Directory, the Right Way!
VMworld 2016: Virtualize Active Directory, the Right Way! VMworld 2016: Virtualize Active Directory, the Right Way!
VMworld 2016: Virtualize Active Directory, the Right Way!
 
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...
 
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...
 
VMworld 2015: Advanced SQL Server on vSphere
VMworld 2015: Advanced SQL Server on vSphereVMworld 2015: Advanced SQL Server on vSphere
VMworld 2015: Advanced SQL Server on vSphere
 
VMworld 2015: Virtualize Active Directory, the Right Way!
VMworld 2015: Virtualize Active Directory, the Right Way!VMworld 2015: Virtualize Active Directory, the Right Way!
VMworld 2015: Virtualize Active Directory, the Right Way!
 
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...
 
VMworld 2015: Building a Business Case for Virtual SAN
VMworld 2015: Building a Business Case for Virtual SANVMworld 2015: Building a Business Case for Virtual SAN
VMworld 2015: Building a Business Case for Virtual SAN
 
VMworld 2015: Explaining Advanced Virtual Volumes Configurations
VMworld 2015: Explaining Advanced Virtual Volumes ConfigurationsVMworld 2015: Explaining Advanced Virtual Volumes Configurations
VMworld 2015: Explaining Advanced Virtual Volumes Configurations
 
VMworld 2015: Virtual Volumes Technical Deep Dive
VMworld 2015: Virtual Volumes Technical Deep DiveVMworld 2015: Virtual Volumes Technical Deep Dive
VMworld 2015: Virtual Volumes Technical Deep Dive
 

Kürzlich hochgeladen

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Kürzlich hochgeladen (20)

Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 

VMworld 2013: Three Quirky Ways to Simplify DR with VMware Site Recovery Manager

  • 1. Three Quirky Ways to Simplify DR with Site Recovery Manager Ben Meadowcroft, VMware BCO5652 #BCO5652
  • 2. 3 Agenda  Introduction  SRM Command Steps  SRM Alarms  SRM API  Summary  Questions
  • 3. 4 “Three Quirky Ways” – What This Talk is Not
  • 4. 5 “Three Quirky Ways” – What This Talk is How to use some of the “under-appreciated” SRM features to help your Disaster Recovery processes
  • 5. 6
  • 6. 7
  • 7. 8
  • 8. 10 Which “under-appreciated” features do you mean? Command Steps Events & Alarms API 1 2 3
  • 10. 12 Extend Your Recovery Plans Recover Physical Workloads Update DNS Send Recovery Notifications Integrate With Other Systems
  • 11. 13 SRM Command Steps Top-Level Commands Per-VM Commands Where can they execute? On the SRM server On the SRM server On the Recovered VM (requires VM tools) When can they execute? Any top level step during: Failover, Migration, or Testing Pre or Post Power-on When executed on the VM only post power-on steps! Environment Variables?  VMware_RecoveryName  VMware_RecoveryMode  VMware_VC_Host  VMware_VC_Port  VMware_VM_Uuid  VMware_VM_Name  VMware_VM_Ref  VMware_VM_Path Post Power-On:  VMware_VM_GuestName  VMware_VM_GuestIP
  • 12. 14 Demo Time: What Am I Going To Show? 1. Call PowerShell script on SRM server 2. Call /bin/sh on recovered VM 3. How do I write scripts that work for both failover and failback? 4. Can I execute different behavior between test and failover? 5. How do I securely store credentials in my scripts?
  • 13. 15
  • 14. 16 1. Call PowerShell Script On SRM Server
  • 15. 17 2. Call /bin/sh On Recovered VM
  • 16. 18 3. How do I Write Scripts that Work for Both Failover and Failback? # PowerShell if ($env:VMware_VC_Host -eq ‘vc-w8- 01a.corp.local‘) { # action when target is site A } else { # action when target is site B }
  • 17. 19 4. Can I Execute Different Behavior Between Test and Failover? # PowerShell if ($env:VMware_VC_RecoveryMode -eq ‘test‘) { # action during test } else { # other action }
  • 18. 20 5. How Do I Securely Store Credentials in My Scripts? # PowerCLI to store New-VICredentialStoreItem ` –Host $env:VMware_VC_Host ` –User ‘Administrator’ ` –Password ‘VMware1!’ ` –File ‘c:scriptsvicredentials.txt’
  • 19. 21 SRM Command Steps – Key Takeaways  Useful tool but not a “hammer” for everything  Don’t do too much in custom scripts • Look at RTO impact running a script  Avoid changing scripts for failback • Use Environment Variables for conditional logic
  • 21. 23 “There are known knowns. These are things we know that we know. “There are known unknowns. That is to say, there are things that we know we don't know. “But there are also unknown unknowns. There are things we don't know we don't know.” - Donald Rumsfeld
  • 22. 24 6 Types of SRM Events Site Status vSphere Replication Protection Group Storage and Storage Provider Permissions & Licensing Recovery
  • 23. 25 Some Interesting Alarms To Monitor Remote Site Down VM Not Protected VM Datastore Replication Lost Placeholder VM Deleted Array Pair Ping Failed VM Lost License Expiring License Expired Recovery Plan Destroyed Recovery Plan Started vSphere Replication Paused RPO Violated Remote VRM Site Disconnected
  • 27. 30 SRM API Basics https://www.vmware.com/support/developer/srm-api/ Web Service .Net SDKJava SDK Protection Groups and Replication Recovery Plans and Reprotection
  • 28. 31
  • 29. 32 “Gotchas” When Calling SRM API From PowerShell  PowerShell v3 or later • (v2 can’t handle the WSDL)  New-WebServiceProxy • Not a lightweight call! • Useful for POC, exploration etc.
  • 30. 33 SRM API – Key Takeaways  Introspect & Protect: • Protection Group Information • Recovery History • Configure VMs for protection  Initiate: • Failover • Test • Cancel • Revert • Reprotect
  • 31. 34 Command Steps Events & Alarms API 1 2 3
  • 33. 38 Backup: Resources  Related Sessions at VMworld • BCO4905 - Disaster Recovery Solution with Oracle Data Guard and Site Recovery Manager • OPT5474 - The Transformative Power and Business Case for Cloud Automation  SRM Documentation • http://www.vmware.com/support/pubs/srm_pubs.html  SRM Book • Administering VMware Site Recovery Manager 5 – by Mike Laverick  Scripts From Presentation • https://github.com/benmeadowcroft/BCO5652 [provided for illustrative purposes only]
  • 34. 39 Backup: Managing Scripts  Source Control • Use it (I like DVCS like mercurial and git)  Script Location • Local Disk • Network Share (personally not a huge fan of this, potential POF during DR)  Keeping Scripts in Sync (if stored on SRM server or VM) • Various Options: • Config. management tool, e.g. Puppet to distribute and ensure continued compliance • File sync tool, e.g. rsync
  • 35. 40 Other VMware Activities Related to This Session  HOL: HOL-SDC-1305 Business Continuity and Disaster Recovery In Action  Group Discussions: BCO1003-GD Disaster Recovery and Replication with Ken Werneburg
  • 37.
  • 38. Three Quirky Ways to Simplify DR with Site Recovery Manager Ben Meadowcroft, VMware BCO5652 #BCO5652