SlideShare a Scribd company logo
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
i | P a g e
Table of Contents
Overview.......................................................................................................................................................1
Applies To......................................................................................................................................................1
Pre-requisites................................................................................................................................................1
Create Snapshot............................................................................................................................................1
Create Snapshot – Instance ......................................................................................................................1
Create Snapshot – Instance ID..................................................................................................................2
Create Snapshot – Volume .......................................................................................................................2
Create Snapshot – Create Snapshot .........................................................................................................2
Create Snapshot – Volume ID...................................................................................................................3
Create Snapshot – Name ..........................................................................................................................3
Create Snapshot – Snapshot ID.................................................................................................................4
Create Snapshot – Status..........................................................................................................................4
Install – HTTPD Service..................................................................................................................................4
HTTPD – Check Installation.......................................................................................................................4
HTTPD – Install..........................................................................................................................................4
HTTPD – Verify Install................................................................................................................................5
HTTPD – Modify Startup State..................................................................................................................5
HTTPD – Startup Service ...........................................................................................................................5
Restore Snapshot..........................................................................................................................................6
Restore Snapshot – Create Volume..........................................................................................................6
Restore Snapshot – Availability Zone........................................................................................................6
Restore Snapshot – Create Volume..........................................................................................................7
Restore Snapshot – State..........................................................................................................................7
Restore Snapshot – Stop...........................................................................................................................7
Restore Snapshot – Instance State (stopping)..........................................................................................8
Restore Snapshot – Instance State (stopped)...........................................................................................8
Restore Snapshot – Detach Volume .........................................................................................................8
Restore Snapshot – Detach Volume (Confirm).........................................................................................9
Restore Snapshot – Detach Volume (status) ............................................................................................9
Restore Snapshot – Attach Volume..........................................................................................................9
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
ii | P a g e
Restore Snapshot – Instance ID ..............................................................................................................10
Restore Snapshot – Device .....................................................................................................................10
Restore Snapshot – Attachment Information.........................................................................................10
Restore Snapshot – Start Instance..........................................................................................................11
Restore Snapshot – Start Instance (confirm)..........................................................................................11
Restore Snapshot – Instance State (pending).........................................................................................12
Restore Snapshot – Instance State (running) .........................................................................................12
Restore Snapshot – Instance State (status checks) ................................................................................12
Restore Snapshot – Validate Restore .....................................................................................................12
Troubleshooting..........................................................................................................................................13
Volume Detach........................................................................................................................................13
Volume Detach (error)............................................................................................................................13
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
Page 1 of 15
Overview
One of the important features in AWS is to create EBS snapshot and restore the EBS volume to a host.
Online snapshot of the Linux instance. The purpose is to rollback the changes at OS level. This guide will
assist you in restoring the old snapshot and attach it to the existing server.
To test the Amazon EBS create snapshot and restore snapshot feature, we would install “httpd” service,
set startup of httpd service on and start it on the new EBS volume and subsequently when we restore it
“httpd” should NOT be installed on the server.
Applies To
Linux Instance, in this document we are considering RHEL 7.0
Pre-requisites
Field Information
Purpose
Instance ID
Required to identify the snapshot
Snapshot ID
To collect volume and snapshot information
Availability Zone
Availability of volume(s) in a zone
Volume Attachment Information
Identify / associate device mount point
Volume State
Available or In-use
Create Snapshot
The purpose of the snapshot is to do in-point-restore.
Create Snapshot – Instance
Choose the instance from the “Instances” link.
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
Page 2 of 15
Create Snapshot – Instance ID
Click on the instance and Make note of “Instance ID” and “Availability Zone” of the host for which
snapshot will be taken.
Create Snapshot – Volume
Choose the Volumes from the “Elastic Block Store” link.
Create Snapshot – Create Snapshot
From the Actions dropdown; click on “Create Snapshot” to take snapshot of the volume.
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
Page 3 of 15
Create Snapshot – Volume ID
Upon clicking create snapshot, volume information is displayed for the tag name.
Create Snapshot – Name
Add “Name” and “Description” for the snapshot and click on “Create” button, to start snapshot of the
volume.
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
Page 4 of 15
Create Snapshot – Snapshot ID
Upon clicking “Create” snapshot creation task is initiated with the “snapshot ID” associated to it. You
can also click on “Snapshot ID” to check the status of the snapshot creation.
Create Snapshot – Status
In the Snapshot window, once the snapshot creation task is done, status will be updated to
“Completed” and progress is updated to “available (100%)”.
Install – HTTPD Service
To test restore feature, we would be installing httpd service.
HTTPD – Check Installation
To verify if the httpd service is installed, run the below command
sudo rpm -qa | grep httpd
HTTPD – Install
To install httpd service without confirmation, run the below command
sudo yum install httpd -y
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
Page 5 of 15
HTTPD – Verify Install
To verify if the httpd service is installed, run the below command
sudo rpm -qa | grep httpd
HTTPD – Modify Startup State
To change httpd service state, run the below command
sudo chkconfig httpd on
HTTPD – Startup Service
To change httpd service state and validate service is running, run the below commands
sudo service httpd start
sudo service httpd status
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
Page 6 of 15
Restore Snapshot
In order to restore an existing snapshot, you need to keep in make note of availability zone and
snapshot ID, which is required to associate with the host.
Restore Snapshot – Create Volume
In order to restore a snapshot, we need to convert the snapshot to a volume, choose the snapshot and
click on “Create Volume” from the Actions dropdown.
Restore Snapshot – Availability Zone
Upon click on the Create Volume, the next step is to choose the “Availability Zone” for the new volume
and click on “Create” button.
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
Page 7 of 15
Restore Snapshot – Create Volume
Upon clicking “Create” a volume creation task is initiated with the “Volume ID” associated to it. You can
also click on “View Volume” to check the status of the Volume creation.
Restore Snapshot – State
Upon clicking “Volume ID” volume creation task state is displayed.
Restore Snapshot – Stop
Next step is to “Stop” the server instance from the instances pane. To stop the instance, from the
Actions drop down, click on “Instance State  Stop” option.
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
Page 8 of 15
Restore Snapshot – Instance State (stopping)
Upon click on Stop” for the server instance from the instances pane. “Instance State” is updated.
Restore Snapshot – Instance State (stopped)
Upon click on Stop” for the server instance from the instances pane. “Instance State” is updated, once it
is completed, state is update with “Stopped”.
Restore Snapshot – Detach Volume
Next step is to detach the existing volume of the server, to detach choose the volume from the Actions
dropdown, click on “Detach Volume” option.
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
Page 9 of 15
Restore Snapshot – Detach Volume (Confirm)
Next step is to detach the existing volume of the server, to detach choose the volume from the Actions
dropdown, click on “Detach Volume” option.
Restore Snapshot – Detach Volume (status)
Detachment of the volume is updated in “Attachment Information”.
Restore Snapshot – Attach Volume
Once the detachment task is completed, the volume state is “available” and “Attachment Information”
is not populated. Next step is to attach the old (snapshot) volume. Now, you can attach the old volume
to the system, as part of rollback activity.
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
Page 10 of 15
Restore Snapshot – Instance ID
Upon clicking the “Attach Volume”, volume ID and availability zone of the volume is populated, click on
Instance to choose the instance ID of the server.
Restore Snapshot – Device
After choosing the “Instance ID”, enter the device mount point for the volume.
Restore Snapshot – Attachment Information
Upon click on “Attach”, the new snapshot volume is attached to the server.
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
Page 11 of 15
Restore Snapshot – Start Instance
Once the state is updated to “in-use” and attachment information is suffixed with “(attached)”. The
system is restored back old state. Now start the instance that was stopped earlier.
Restore Snapshot – Start Instance (confirm)
Upon clicking the “Start” option. Confirm the by clicking “Yes, Start” button to start the instance.
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
Page 12 of 15
Restore Snapshot – Instance State (pending)
Upon clicking the “Yes, Start” button, Instance state is validated and subsequently “Status Check” is
validated.
Restore Snapshot – Instance State (running)
Upon successful validation, the instance is started and set to “running” and “Status Checks” are done.
Restore Snapshot – Instance State (status checks)
Upon successful validation of volume status and availability zone. “Status Checks” are set to green.
Restore Snapshot – Validate Restore
After login into the server, check the restore is successful, by querying httpd package installation status.
We had installed on the new volume, httpd service.
Upon restoration; httpd service is not installed.
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
Page 13 of 15
Troubleshooting
Volume Detach
In order to attach a new EBS volume, you need to attach existing root volume.
Volume Detach (error)
In this case when you try to detach a running instance volume it would throw the screenshot error. To
mitigate the error stop the running instance, detach the volume.

More Related Content

DOCX
How to Configure Amazon AWS EC2 Elastic IP Address
PDF
How To Configure Amazon EC2 Security Groups
PDF
How To Create EC2 instance Linux Server
PDF
How To Connect Amazon AWS EC2 with Key Pair – Linux
DOCX
How to configure amazon ec2 load balancer
PDF
How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7
PDF
How To Install and Configure AWS CLI for Windows
PDF
Batch script for nslookup range of ip address
How to Configure Amazon AWS EC2 Elastic IP Address
How To Configure Amazon EC2 Security Groups
How To Create EC2 instance Linux Server
How To Connect Amazon AWS EC2 with Key Pair – Linux
How to configure amazon ec2 load balancer
How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7
How To Install and Configure AWS CLI for Windows
Batch script for nslookup range of ip address

What's hot (20)

PDF
How to Install and Configure Cacti on Linux
PDF
How To List Nginx Modules Installed / Complied on CentOS 7
PDF
Connect Amazon EC2 Linux Instance
PDF
How To Install and Configure Apache SSL on CentOS 7
PDF
How To Install and Configure AWS CLI on RHEL 7
PDF
How to Change Hostname in CentOS 7 or RHEL 7
PDF
How To Create PowerShell Function
PDF
How To Configure FirewallD on RHEL 7 or CentOS 7
PDF
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
PDF
How To Check IE Enhanced Security Is Enabled Windows PowerShell
PDF
How to Troubleshoot SELinux Audit2Allow unable to open (null)
PDF
How To Install and Configure SNMP on RHEL 7 or CentOS 7
PDF
Amazon AWS Identity Access Management
PDF
Installation CentOS 6.3
PDF
Install and Configure WordPress in AWS on RHEL 7 or CentOS 7
PDF
How to install and configure firewall on ubuntu os
PDF
How To Configure Apache VirtualHost on RHEL 7 on AWS
PDF
Install and Configure RSyslog – CentOS 7 / RHEL 7
PDF
Nginx bind() to 0.0.0.0:9080 failed
PDF
Install VMWare Tools CentOS 7
How to Install and Configure Cacti on Linux
How To List Nginx Modules Installed / Complied on CentOS 7
Connect Amazon EC2 Linux Instance
How To Install and Configure Apache SSL on CentOS 7
How To Install and Configure AWS CLI on RHEL 7
How to Change Hostname in CentOS 7 or RHEL 7
How To Create PowerShell Function
How To Configure FirewallD on RHEL 7 or CentOS 7
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
How To Check IE Enhanced Security Is Enabled Windows PowerShell
How to Troubleshoot SELinux Audit2Allow unable to open (null)
How To Install and Configure SNMP on RHEL 7 or CentOS 7
Amazon AWS Identity Access Management
Installation CentOS 6.3
Install and Configure WordPress in AWS on RHEL 7 or CentOS 7
How to install and configure firewall on ubuntu os
How To Configure Apache VirtualHost on RHEL 7 on AWS
Install and Configure RSyslog – CentOS 7 / RHEL 7
Nginx bind() to 0.0.0.0:9080 failed
Install VMWare Tools CentOS 7
Ad

Viewers also liked (14)

PDF
TFTP Installation Configuration Guide
PDF
DNF Failed To Open Cache
PDF
How To Audit Server Login and Shutdown or Reboot Activity
PDF
Bash Script Disk Space Utilization Report and EMail
PDF
How To Configure VNC Server on CentOS 7
PDF
How To Add DVD ISO to YUM Repository in CentOS 6
PDF
File Space Usage Information and EMail Report - Shell Script
PDF
How To Configure Amazon EC2 Load Balancer
PDF
How to Install and Configure AWS CLI on RHEL 7
PDF
How to Install MariaDB Server or MySQL Server on CentOS 7
PDF
Linux Basic Administration Commands Guide
PDF
How To Manage Yum Packages Interactive Shell
PDF
Shell Script to Extract IP Address, MAC Address Information
PDF
How To Install OpenFire in CentOS 7
TFTP Installation Configuration Guide
DNF Failed To Open Cache
How To Audit Server Login and Shutdown or Reboot Activity
Bash Script Disk Space Utilization Report and EMail
How To Configure VNC Server on CentOS 7
How To Add DVD ISO to YUM Repository in CentOS 6
File Space Usage Information and EMail Report - Shell Script
How To Configure Amazon EC2 Load Balancer
How to Install and Configure AWS CLI on RHEL 7
How to Install MariaDB Server or MySQL Server on CentOS 7
Linux Basic Administration Commands Guide
How To Manage Yum Packages Interactive Shell
Shell Script to Extract IP Address, MAC Address Information
How To Install OpenFire in CentOS 7
Ad

Similar to How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance (20)

PDF
Sun_AmazonEC2_GettingStartedGuide
PDF
Trans.pdf
PDF
appserver.io tutorial
PDF
Kubernetes Operators Automating the Container Orchestration Platform 1st Edit...
PDF
Kubernetes Operators Automating the Container Orchestration Platform 1st Edit...
PDF
Ausst technote v2_0
PDF
Jenkins log monitoring with elk stack
PDF
Elasticfox Owners Manual
PDF
AWS essentials EC2
PPT
Rapid scaling in_the_cloud_with_puppet
PDF
Elasticfoxownersmanual 1225331506176432 8
PDF
Kubernetes Operators 1st Edition Jason Dobies
PDF
Orangescrum Recurring task add on user manual
PDF
Openobject install
PDF
Ibm urban code_deploy_v6_lab-workbook
PDF
Kubernetes Operators 1st Edition Jason Dobies
PDF
Orangescrum Time Log Gold add-on User Manual
PDF
Suse service virtualization_image_set up_guide_140214
Sun_AmazonEC2_GettingStartedGuide
Trans.pdf
appserver.io tutorial
Kubernetes Operators Automating the Container Orchestration Platform 1st Edit...
Kubernetes Operators Automating the Container Orchestration Platform 1st Edit...
Ausst technote v2_0
Jenkins log monitoring with elk stack
Elasticfox Owners Manual
AWS essentials EC2
Rapid scaling in_the_cloud_with_puppet
Elasticfoxownersmanual 1225331506176432 8
Kubernetes Operators 1st Edition Jason Dobies
Orangescrum Recurring task add on user manual
Openobject install
Ibm urban code_deploy_v6_lab-workbook
Kubernetes Operators 1st Edition Jason Dobies
Orangescrum Time Log Gold add-on User Manual
Suse service virtualization_image_set up_guide_140214

More from VCP Muthukrishna (20)

PDF
How to Fix Duplicate Packages in YUM on CentOS 7
PDF
How To Install and Configure GNome on CentOS 7
PDF
How To Connect to Active Directory User Validation
PDF
How To Connect To Active Directory PowerShell
PDF
How To List Files on Remote Server - PowerShell
PDF
How To List Files and Display In HTML Format
PDF
How To Check and Delete a File via PowerShell
PDF
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
PDF
How To Setup SSH Keys on CentOS 7
PDF
How To Install and Configure Open SSH Server on Ubuntu
PDF
Windows PowerShell Basics - How To List PSDrive Info
PDF
Windows PowerShell Basics – How To Create powershell for loop
PDF
How To Construct IF and Else Conditional Statements
PDF
How To Create PowerShell Function Mandatory Parameter and Optional Parameter
PDF
How To Create Power Shell Function Mandatory Parameter Value
PDF
How To Disable IE Enhanced Security Windows PowerShell
PDF
How To Configure Nginx Load Balancer on CentOS 7
PDF
How To Install and Configure Screen on CentOS 7
PDF
How To Install and Configure Salt Master on Ubuntu
PDF
How To Protect SSH Access with Fail2Ban on RHEL 7
How to Fix Duplicate Packages in YUM on CentOS 7
How To Install and Configure GNome on CentOS 7
How To Connect to Active Directory User Validation
How To Connect To Active Directory PowerShell
How To List Files on Remote Server - PowerShell
How To List Files and Display In HTML Format
How To Check and Delete a File via PowerShell
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
How To Setup SSH Keys on CentOS 7
How To Install and Configure Open SSH Server on Ubuntu
Windows PowerShell Basics - How To List PSDrive Info
Windows PowerShell Basics – How To Create powershell for loop
How To Construct IF and Else Conditional Statements
How To Create PowerShell Function Mandatory Parameter and Optional Parameter
How To Create Power Shell Function Mandatory Parameter Value
How To Disable IE Enhanced Security Windows PowerShell
How To Configure Nginx Load Balancer on CentOS 7
How To Install and Configure Screen on CentOS 7
How To Install and Configure Salt Master on Ubuntu
How To Protect SSH Access with Fail2Ban on RHEL 7

Recently uploaded (20)

PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Sensors and Actuators in IoT Systems using pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPT
Teaching material agriculture food technology
PDF
Empathic Computing: Creating Shared Understanding
PDF
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Cloud computing and distributed systems.
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Electronic commerce courselecture one. Pdf
PDF
Modernizing your data center with Dell and AMD
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Sensors and Actuators in IoT Systems using pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Teaching material agriculture food technology
Empathic Computing: Creating Shared Understanding
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
The Rise and Fall of 3GPP – Time for a Sabbatical?
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Reach Out and Touch Someone: Haptics and Empathic Computing
Big Data Technologies - Introduction.pptx
Cloud computing and distributed systems.
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Electronic commerce courselecture one. Pdf
Modernizing your data center with Dell and AMD
20250228 LYD VKU AI Blended-Learning.pptx
GamePlan Trading System Review: Professional Trader's Honest Take
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
Understanding_Digital_Forensics_Presentation.pptx

How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance

  • 1. How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance i | P a g e Table of Contents Overview.......................................................................................................................................................1 Applies To......................................................................................................................................................1 Pre-requisites................................................................................................................................................1 Create Snapshot............................................................................................................................................1 Create Snapshot – Instance ......................................................................................................................1 Create Snapshot – Instance ID..................................................................................................................2 Create Snapshot – Volume .......................................................................................................................2 Create Snapshot – Create Snapshot .........................................................................................................2 Create Snapshot – Volume ID...................................................................................................................3 Create Snapshot – Name ..........................................................................................................................3 Create Snapshot – Snapshot ID.................................................................................................................4 Create Snapshot – Status..........................................................................................................................4 Install – HTTPD Service..................................................................................................................................4 HTTPD – Check Installation.......................................................................................................................4 HTTPD – Install..........................................................................................................................................4 HTTPD – Verify Install................................................................................................................................5 HTTPD – Modify Startup State..................................................................................................................5 HTTPD – Startup Service ...........................................................................................................................5 Restore Snapshot..........................................................................................................................................6 Restore Snapshot – Create Volume..........................................................................................................6 Restore Snapshot – Availability Zone........................................................................................................6 Restore Snapshot – Create Volume..........................................................................................................7 Restore Snapshot – State..........................................................................................................................7 Restore Snapshot – Stop...........................................................................................................................7 Restore Snapshot – Instance State (stopping)..........................................................................................8 Restore Snapshot – Instance State (stopped)...........................................................................................8 Restore Snapshot – Detach Volume .........................................................................................................8 Restore Snapshot – Detach Volume (Confirm).........................................................................................9 Restore Snapshot – Detach Volume (status) ............................................................................................9 Restore Snapshot – Attach Volume..........................................................................................................9
  • 2. How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance ii | P a g e Restore Snapshot – Instance ID ..............................................................................................................10 Restore Snapshot – Device .....................................................................................................................10 Restore Snapshot – Attachment Information.........................................................................................10 Restore Snapshot – Start Instance..........................................................................................................11 Restore Snapshot – Start Instance (confirm)..........................................................................................11 Restore Snapshot – Instance State (pending).........................................................................................12 Restore Snapshot – Instance State (running) .........................................................................................12 Restore Snapshot – Instance State (status checks) ................................................................................12 Restore Snapshot – Validate Restore .....................................................................................................12 Troubleshooting..........................................................................................................................................13 Volume Detach........................................................................................................................................13 Volume Detach (error)............................................................................................................................13
  • 3. How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance Page 1 of 15 Overview One of the important features in AWS is to create EBS snapshot and restore the EBS volume to a host. Online snapshot of the Linux instance. The purpose is to rollback the changes at OS level. This guide will assist you in restoring the old snapshot and attach it to the existing server. To test the Amazon EBS create snapshot and restore snapshot feature, we would install “httpd” service, set startup of httpd service on and start it on the new EBS volume and subsequently when we restore it “httpd” should NOT be installed on the server. Applies To Linux Instance, in this document we are considering RHEL 7.0 Pre-requisites Field Information Purpose Instance ID Required to identify the snapshot Snapshot ID To collect volume and snapshot information Availability Zone Availability of volume(s) in a zone Volume Attachment Information Identify / associate device mount point Volume State Available or In-use Create Snapshot The purpose of the snapshot is to do in-point-restore. Create Snapshot – Instance Choose the instance from the “Instances” link.
  • 4. How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance Page 2 of 15 Create Snapshot – Instance ID Click on the instance and Make note of “Instance ID” and “Availability Zone” of the host for which snapshot will be taken. Create Snapshot – Volume Choose the Volumes from the “Elastic Block Store” link. Create Snapshot – Create Snapshot From the Actions dropdown; click on “Create Snapshot” to take snapshot of the volume.
  • 5. How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance Page 3 of 15 Create Snapshot – Volume ID Upon clicking create snapshot, volume information is displayed for the tag name. Create Snapshot – Name Add “Name” and “Description” for the snapshot and click on “Create” button, to start snapshot of the volume.
  • 6. How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance Page 4 of 15 Create Snapshot – Snapshot ID Upon clicking “Create” snapshot creation task is initiated with the “snapshot ID” associated to it. You can also click on “Snapshot ID” to check the status of the snapshot creation. Create Snapshot – Status In the Snapshot window, once the snapshot creation task is done, status will be updated to “Completed” and progress is updated to “available (100%)”. Install – HTTPD Service To test restore feature, we would be installing httpd service. HTTPD – Check Installation To verify if the httpd service is installed, run the below command sudo rpm -qa | grep httpd HTTPD – Install To install httpd service without confirmation, run the below command sudo yum install httpd -y
  • 7. How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance Page 5 of 15 HTTPD – Verify Install To verify if the httpd service is installed, run the below command sudo rpm -qa | grep httpd HTTPD – Modify Startup State To change httpd service state, run the below command sudo chkconfig httpd on HTTPD – Startup Service To change httpd service state and validate service is running, run the below commands sudo service httpd start sudo service httpd status
  • 8. How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance Page 6 of 15 Restore Snapshot In order to restore an existing snapshot, you need to keep in make note of availability zone and snapshot ID, which is required to associate with the host. Restore Snapshot – Create Volume In order to restore a snapshot, we need to convert the snapshot to a volume, choose the snapshot and click on “Create Volume” from the Actions dropdown. Restore Snapshot – Availability Zone Upon click on the Create Volume, the next step is to choose the “Availability Zone” for the new volume and click on “Create” button.
  • 9. How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance Page 7 of 15 Restore Snapshot – Create Volume Upon clicking “Create” a volume creation task is initiated with the “Volume ID” associated to it. You can also click on “View Volume” to check the status of the Volume creation. Restore Snapshot – State Upon clicking “Volume ID” volume creation task state is displayed. Restore Snapshot – Stop Next step is to “Stop” the server instance from the instances pane. To stop the instance, from the Actions drop down, click on “Instance State  Stop” option.
  • 10. How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance Page 8 of 15 Restore Snapshot – Instance State (stopping) Upon click on Stop” for the server instance from the instances pane. “Instance State” is updated. Restore Snapshot – Instance State (stopped) Upon click on Stop” for the server instance from the instances pane. “Instance State” is updated, once it is completed, state is update with “Stopped”. Restore Snapshot – Detach Volume Next step is to detach the existing volume of the server, to detach choose the volume from the Actions dropdown, click on “Detach Volume” option.
  • 11. How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance Page 9 of 15 Restore Snapshot – Detach Volume (Confirm) Next step is to detach the existing volume of the server, to detach choose the volume from the Actions dropdown, click on “Detach Volume” option. Restore Snapshot – Detach Volume (status) Detachment of the volume is updated in “Attachment Information”. Restore Snapshot – Attach Volume Once the detachment task is completed, the volume state is “available” and “Attachment Information” is not populated. Next step is to attach the old (snapshot) volume. Now, you can attach the old volume to the system, as part of rollback activity.
  • 12. How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance Page 10 of 15 Restore Snapshot – Instance ID Upon clicking the “Attach Volume”, volume ID and availability zone of the volume is populated, click on Instance to choose the instance ID of the server. Restore Snapshot – Device After choosing the “Instance ID”, enter the device mount point for the volume. Restore Snapshot – Attachment Information Upon click on “Attach”, the new snapshot volume is attached to the server.
  • 13. How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance Page 11 of 15 Restore Snapshot – Start Instance Once the state is updated to “in-use” and attachment information is suffixed with “(attached)”. The system is restored back old state. Now start the instance that was stopped earlier. Restore Snapshot – Start Instance (confirm) Upon clicking the “Start” option. Confirm the by clicking “Yes, Start” button to start the instance.
  • 14. How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance Page 12 of 15 Restore Snapshot – Instance State (pending) Upon clicking the “Yes, Start” button, Instance state is validated and subsequently “Status Check” is validated. Restore Snapshot – Instance State (running) Upon successful validation, the instance is started and set to “running” and “Status Checks” are done. Restore Snapshot – Instance State (status checks) Upon successful validation of volume status and availability zone. “Status Checks” are set to green. Restore Snapshot – Validate Restore After login into the server, check the restore is successful, by querying httpd package installation status. We had installed on the new volume, httpd service. Upon restoration; httpd service is not installed.
  • 15. How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance Page 13 of 15 Troubleshooting Volume Detach In order to attach a new EBS volume, you need to attach existing root volume. Volume Detach (error) In this case when you try to detach a running instance volume it would throw the screenshot error. To mitigate the error stop the running instance, detach the volume.