Optimizing AWS EBS Volumes and Snapshots: Detailed Instructions and Best Practices

Muhammad Shahbaz - Aug 7 - - Dev Community

Image description

  1. launch the instance
  2. select the window os
  3. create private key
  4. add one additional volume 10 gb

Image description

  1. go to ebs volume and see the two volumes one is root volume and other one is disk d volume.

Image description

  1. go to the instances and select the instance
  2. connect the instance open RDP
    Image description

  3. download the disktop remote in the device
    Image description

  4. enter the password which copy from the RDP by uploading the private key and generate the password

Image description

  1. the virtual remote disktop is open

Image description

  1. go to the disk management there are two volume which are created at the time of launch instance
  2. configure the disk1 and online disk and configure it
    Image description

  3. in disk d an text file created and add the text and save it

Image description

  1. its text saved file

Image description

  1. the two volumes root and the disk d
    Image description

  2. go to aws

  3. in EBS volume select the volume the click on action

Image description

  1. create the snapshot

Image description

  1. go to snapshot section you can access the snapshot
    Image description

  2. now delete the disk d volume

Image description
from remote disktop its also vanished/deleted
Image description

  1. select the snapshot and click on action

Image description

  1. click on create volume from snapshot

Image description

  1. here you can increase the size of snapshot(backup) volume but can't be decrease of the original snapshot size
  2. click on create

Image description

  1. here the volume is created from the snapshot its size is 11gb and the old disk d was 10gb

Image description

  1. the time is to attach this volume to the instance you want but the AZ should be same both of instance and volume

Image description

  1. here there are disk d previous configure disk and 1 gb extra now we configure it and name it disk e

Image description

  1. from disk d the file is successfully restore

Image description

  1. also the text we added its save

Image description

  1. go to aws snapshots section
  2. click on recycle bin

Image description

  1. create retention rule
    Image description

  2. give name

Image description

  1. apply all and enter the days that how many days an snapshot should be in recycle bin and its auto delete after that

Image description

  1. there are two option lock which means recycle bin locked only root user access it
  2. and other one is unlock means other user also can access recycle bin
  3. click on create retention rule

Image description

  1. select the snapshot and delete it

Image description

  1. there are no snapshots

Image description

  1. but its also in recycle bin and we can restore it very easily

Image description

  1. snapshots successfully restored
. . .
Terabox Video Player