SlideShare una empresa de Scribd logo
1 de 26
Descargar para leer sin conexión
EBS AMI’S
Migrating EBS AMI’s between AWS Regions




                                                 Rob Linton
                                           www.Jasondb.com
                                          robl@jasondb.com
How to migrate EBS AMI’s between regions?




      AMI                                            AMI

                Volume                                       Volume
               Snapshot                                     Snapshot

  Running                                        Running
  Instance                                       Instance



US-WEST                                         US-EAST


                                                                        Rob Linton
                                                                  www.Jasondb.com
                                                                 robl@jasondb.com
Steps


Step 1 – Starting with an AMI in US-EAST
Step 2 – Create a Volume from the AMI Root snapshot
Step 3 – Mount the volume on a running EC2 instance
Step 4 – Configure a receiving instance in the destination region
Step 5 – Copy the private key to the source server
Step 6 – Copy the volume from the source server to the destination server.
Step 7 – Create an AMI in the destination region



                                                                                    Rob Linton
                                                                              www.Jasondb.com
                                                                             robl@jasondb.com
Step 1 – Starting with an AMI in US-EAST




                                             AMI




                                           US-EAST


                                                            Rob Linton
                                                      www.Jasondb.com
                                                     robl@jasondb.com
Rob Linton
 www.Jasondb.com
robl@jasondb.com
Step 2 – Create a Volume from the AMI Root snapshot




                                                          AMI
                                      Volume
                                     Snapshot




                                                US-EAST


                                                                       Rob Linton
                                                                 www.Jasondb.com
                                                                robl@jasondb.com
Rob Linton
 www.Jasondb.com
robl@jasondb.com
Rob Linton
 www.Jasondb.com
robl@jasondb.com
Step 3 – Mount the volume on a running EC2 instance



                             EC2
                             Micro
                           Instance
                                                        AMI




                               EBS
                                              US-EAST
                             Volume
                             /dev/sdf




                           Source                                    Rob Linton
                                                               www.Jasondb.com
                                                              robl@jasondb.com
Rob Linton
 www.Jasondb.com
robl@jasondb.com
Step 4 – Configure a receiving instance in the destination region



    EC2                                                                EC2
    Micro                                                              Micro
  Instance                                                           Instance




                 US-WEST                       US-EAST
      EBS
    Volume                                                               EBS
    /dev/sdf                                                           Volume
                                                                       /dev/sdf


Destination                                                         Source               Rob Linton
                                                                                   www.Jasondb.com
                                                                                  robl@jasondb.com
Rob Linton
 www.Jasondb.com
robl@jasondb.com
Step 5 – Copy the private key to the source server



    EC2                                                                EC2
    Micro                                                              Micro
  Instance                                                           Instance




                US-WEST
                                                  US-EAST
      EBS
    Volume                                                               EBS
    /dev/sdf                                                           Volume
                                                                       /dev/sdf


Destination                                                         Source               Rob Linton
                                                                                   www.Jasondb.com
                                                                                  robl@jasondb.com
Rob Linton
 www.Jasondb.com
robl@jasondb.com
Rob Linton
 www.Jasondb.com
robl@jasondb.com
Step 5 – Copy the private key to the source server


                                               ssh login command

ssh -i ping-us-east.pem
root@ec2-50-17-68-0.compute-1.amazonaws.com


                                               scp copy command

scp -i ping-us-east.pem ping-us-west.pem
root@ec2-50-17-68-0.compute-1.amazonaws.com:/tmp

                                                                          Rob Linton
                                                                    www.Jasondb.com
                                                                   robl@jasondb.com
Rob Linton
 www.Jasondb.com
robl@jasondb.com
Step 6 – Copy the volume from the source server to the destination server.



     EC2                                                           EC2
     Micro                                                         Micro
   Instance                                                      Instance




                US-WEST                     US-EAST
       EBS
     Volume                                                          EBS
     /dev/sdf                                                      Volume
                                                                   /dev/sdf


Destination                                                     Source               Rob Linton
                                                                               www.Jasondb.com
                                                                              robl@jasondb.com
Step 6 – Copy the volume from the source server to the destination server.



    EC2                                                                            EC2
                        dd       gzip            ssh              gzip      dd
    Micro                                                                          Micro
  Instance                                                                       Instance



                                        Breakdown of the steps


                             $> dd if=/dev/sdf |gzip -c -1 | ssh -i ping-
      EBS
    Volume
                             us-west.pem root@ec2-50-18-32-121.us-                   EBS
                                                                                   Volume
    /dev/sdf                 west-1.compute.amazonaws.com "gunzip -c -1 |          /dev/sdf

                             dd of=/dev/sdf"
Destination                                                                      Source              Rob Linton
                                                                                               www.Jasondb.com
                                                                                              robl@jasondb.com
Step 7 – Create an AMI in the destination region


    EC2
    Micro
  Instance
                    Volume
                   Snapshot                    Create a snapshot



                     US-WEST
      EBS
    Volume
    /dev/sdf


Destination
                                                                          Rob Linton
                                                                    www.Jasondb.com
                                                                   robl@jasondb.com
Rob Linton
 www.Jasondb.com
robl@jasondb.com
Step 7 – Create an AMI in the destination region


    EC2
    Micro
  Instance
                    Volume
                   Snapshot          AMI

                                                        Create an AMI

                              US-WEST
      EBS
    Volume
    /dev/sdf


Destination
                                                                               Rob Linton
                                                                         www.Jasondb.com
                                                                        robl@jasondb.com
Rob Linton
 www.Jasondb.com
robl@jasondb.com
These defaults may not work
        in all cases!




                                     Rob Linton
                               www.Jasondb.com
                              robl@jasondb.com
Rob Linton
 www.Jasondb.com
robl@jasondb.com
QUESTIONS?




                    Rob Linton
              www.Jasondb.com
             robl@jasondb.com

Más contenido relacionado

Destacado

Александр Изряднов. Презентация Одноклассников для Казахстана
Александр Изряднов. Презентация Одноклассников для КазахстанаАлександр Изряднов. Презентация Одноклассников для Казахстана
Александр Изряднов. Презентация Одноклассников для КазахстанаSocialMediaClubCA
 
Some reflections on the state of urban planning law and practice in Spain: An...
Some reflections on the state of urban planning law and practice in Spain: An...Some reflections on the state of urban planning law and practice in Spain: An...
Some reflections on the state of urban planning law and practice in Spain: An...Julio Tejedor Bielsa
 
Are decorative fireplaces the new black
Are decorative fireplaces the new blackAre decorative fireplaces the new black
Are decorative fireplaces the new blackhenrikalm
 
قوائم الترشح
قوائم الترشحقوائم الترشح
قوائم الترشحtunisiepartis
 
9. Общая экономика 2017: Процесс обращения капитала. Метаморфозы капитала и и...
9. Общая экономика 2017: Процесс обращения капитала. Метаморфозы капитала и и...9. Общая экономика 2017: Процесс обращения капитала. Метаморфозы капитала и и...
9. Общая экономика 2017: Процесс обращения капитала. Метаморфозы капитала и и...Moscow State University
 
презентация паркета
презентация паркетапрезентация паркета
презентация паркетаAndreykireenkov
 
Business Intelligence
Business IntelligenceBusiness Intelligence
Business Intelligencelukic83
 
Uunisepät fireplace for summer cottages
Uunisepät fireplace for summer cottagesUunisepät fireplace for summer cottages
Uunisepät fireplace for summer cottageshenrikalm
 

Destacado (14)

Photo project
Photo projectPhoto project
Photo project
 
Gudi series
Gudi seriesGudi series
Gudi series
 
Александр Изряднов. Презентация Одноклассников для Казахстана
Александр Изряднов. Презентация Одноклассников для КазахстанаАлександр Изряднов. Презентация Одноклассников для Казахстана
Александр Изряднов. Презентация Одноклассников для Казахстана
 
Creative destruction
Creative destructionCreative destruction
Creative destruction
 
A Dvisory
A DvisoryA Dvisory
A Dvisory
 
Some reflections on the state of urban planning law and practice in Spain: An...
Some reflections on the state of urban planning law and practice in Spain: An...Some reflections on the state of urban planning law and practice in Spain: An...
Some reflections on the state of urban planning law and practice in Spain: An...
 
Are decorative fireplaces the new black
Are decorative fireplaces the new blackAre decorative fireplaces the new black
Are decorative fireplaces the new black
 
قوائم الترشح
قوائم الترشحقوائم الترشح
قوائم الترشح
 
9. Общая экономика 2017: Процесс обращения капитала. Метаморфозы капитала и и...
9. Общая экономика 2017: Процесс обращения капитала. Метаморфозы капитала и и...9. Общая экономика 2017: Процесс обращения капитала. Метаморфозы капитала и и...
9. Общая экономика 2017: Процесс обращения капитала. Метаморфозы капитала и и...
 
презентация паркета
презентация паркетапрезентация паркета
презентация паркета
 
Business Intelligence
Business IntelligenceBusiness Intelligence
Business Intelligence
 
Gulawali plots ppt 1
Gulawali plots ppt 1Gulawali plots ppt 1
Gulawali plots ppt 1
 
Spc
SpcSpc
Spc
 
Uunisepät fireplace for summer cottages
Uunisepät fireplace for summer cottagesUunisepät fireplace for summer cottages
Uunisepät fireplace for summer cottages
 

Último

Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 

Último (20)

Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 

PRESENTATION - Migrating AWS EBS backed AMI's between Regions

  • 1. EBS AMI’S Migrating EBS AMI’s between AWS Regions Rob Linton www.Jasondb.com robl@jasondb.com
  • 2. How to migrate EBS AMI’s between regions? AMI AMI Volume Volume Snapshot Snapshot Running Running Instance Instance US-WEST US-EAST Rob Linton www.Jasondb.com robl@jasondb.com
  • 3. Steps Step 1 – Starting with an AMI in US-EAST Step 2 – Create a Volume from the AMI Root snapshot Step 3 – Mount the volume on a running EC2 instance Step 4 – Configure a receiving instance in the destination region Step 5 – Copy the private key to the source server Step 6 – Copy the volume from the source server to the destination server. Step 7 – Create an AMI in the destination region Rob Linton www.Jasondb.com robl@jasondb.com
  • 4. Step 1 – Starting with an AMI in US-EAST AMI US-EAST Rob Linton www.Jasondb.com robl@jasondb.com
  • 6. Step 2 – Create a Volume from the AMI Root snapshot AMI Volume Snapshot US-EAST Rob Linton www.Jasondb.com robl@jasondb.com
  • 9. Step 3 – Mount the volume on a running EC2 instance EC2 Micro Instance AMI EBS US-EAST Volume /dev/sdf Source Rob Linton www.Jasondb.com robl@jasondb.com
  • 11. Step 4 – Configure a receiving instance in the destination region EC2 EC2 Micro Micro Instance Instance US-WEST US-EAST EBS Volume EBS /dev/sdf Volume /dev/sdf Destination Source Rob Linton www.Jasondb.com robl@jasondb.com
  • 13. Step 5 – Copy the private key to the source server EC2 EC2 Micro Micro Instance Instance US-WEST US-EAST EBS Volume EBS /dev/sdf Volume /dev/sdf Destination Source Rob Linton www.Jasondb.com robl@jasondb.com
  • 16. Step 5 – Copy the private key to the source server ssh login command ssh -i ping-us-east.pem root@ec2-50-17-68-0.compute-1.amazonaws.com scp copy command scp -i ping-us-east.pem ping-us-west.pem root@ec2-50-17-68-0.compute-1.amazonaws.com:/tmp Rob Linton www.Jasondb.com robl@jasondb.com
  • 18. Step 6 – Copy the volume from the source server to the destination server. EC2 EC2 Micro Micro Instance Instance US-WEST US-EAST EBS Volume EBS /dev/sdf Volume /dev/sdf Destination Source Rob Linton www.Jasondb.com robl@jasondb.com
  • 19. Step 6 – Copy the volume from the source server to the destination server. EC2 EC2 dd gzip ssh gzip dd Micro Micro Instance Instance Breakdown of the steps $> dd if=/dev/sdf |gzip -c -1 | ssh -i ping- EBS Volume us-west.pem root@ec2-50-18-32-121.us- EBS Volume /dev/sdf west-1.compute.amazonaws.com "gunzip -c -1 | /dev/sdf dd of=/dev/sdf" Destination Source Rob Linton www.Jasondb.com robl@jasondb.com
  • 20. Step 7 – Create an AMI in the destination region EC2 Micro Instance Volume Snapshot Create a snapshot US-WEST EBS Volume /dev/sdf Destination Rob Linton www.Jasondb.com robl@jasondb.com
  • 22. Step 7 – Create an AMI in the destination region EC2 Micro Instance Volume Snapshot AMI Create an AMI US-WEST EBS Volume /dev/sdf Destination Rob Linton www.Jasondb.com robl@jasondb.com
  • 24. These defaults may not work in all cases! Rob Linton www.Jasondb.com robl@jasondb.com
  • 26. QUESTIONS? Rob Linton www.Jasondb.com robl@jasondb.com