Can you find out orphaned EBS volume's old EC2 instance? - amazon-web-services

Is there any way to figure out which EC2 instance a now-orphaned EBS volume was previously associated with?

Related

About EC2 Instance Storage volume

When I create an EC2 instance store, I'm not able to stop the instance through the console. But AWS documentation mentioning that " if you stop or terminate an instance, any data on instance store volumes is lost." There is no option available to stop the instance store EC2 instance. Can anyone Explain why AWS talking about the Stop operation which is not possible?
From the AMI Types documentation: Instances launched from Instance Store-Backed AMI cannot be stopped -- instances are either running or terminated. Instances launched from EBS-backed AMIs have a persistent root volume, thus they can be stopped.
The point of confusion is that instances can still use instance store volumes (if so designed) even though the instance is launched from an EBS-backed AMI. In this case, when the instance is stopped, the data on the instance store volumes is lost, but since the root volume (and possibly other volumes, if so configured) is safely persisted in EBS, the instance can be started again with the data on the EBS volumes intact. Instance store volumes will again be attached, but they will be empty -- all data on those volumes is lost if the instance is stopped.

What is the difference between in-use volume and available in EBS volume

What is the difference between in-use volume and available volume in EBS volume?
I am able to see I have 5 instances and their respective 5 volumes in-use, apart from that I am able to see some volumes as Available under EBS volume. My EBS charges are applying it is not showing any ec2 instance connected with those available, so can I delete those 'Available' volumes?
In-use means it that the Amazon EBS volume is attached to an Amazon EC2 instance.
Available means that the volume is not attached to an Amazon EC2 instance.
You can certainly delete the available volumes, but it is up to you to know what is stored on those volumes and whether you need to retain the data.

Transfer EBS volume data in one VPC to an EFS in another VPC

I am looking to migrate an application from one vpc to another. Currently, the application's ec2 instances utilize a nfs which I created from another ec2 instance and ebs volumes. These application related instances (web and app) as well as the nfs instance reside in one VPC (Let's call it VPC "A").
My question is how would I go about transferring the ebs data from the existing nfs in VPC "A" into an efs in VPC "B"? Additionally, the rate of data transfer is not relevant, so the file system's performance mode is just defined as general purpose. Thanks!
Not sure if this answer was technically possible at the time the above answer was given, but a much easier way to achieve a solution providing that the asker did not to run both applications concurrently (ie. duplicate the data instead of just switch the VPC it was available from).
My company was switching to a new VPC, so I merely wanted to make the data available in the new VPC. Rather than copy it to EBS, unmount, remount, copy to EFS, I switched the mount points as described here:
http://docs.aws.amazon.com/efs/latest/ug/manage-fs-access-change-vpc.html
IMO this is much simpler if you don't need to actually duplicate the data.
For backing up the data, AWS has a workflow outlined:
http://docs.aws.amazon.com/efs/latest/ug/efs-backup.html
It sounds like your requirement is to transfer the contents of an Amazon EBS volume in one VPC to a different VPC. It is unclear whether your NFS server is hosted from EC2+EBS, or whether it is running from Amazon EFS. I'll assume it is EC2+EBS.
A few different options for you (pick one!):
Create an AMI: Create an AMI of the Amazon EC2 instance running the server. Then launch a new instance in VPC B using that AMI.
Move the disk: Turn off the EC2 instance. Detach the EBS volume, the attach it to a different instance running in VPC B. Configure as necessary.
Use an EBS Snapshot: Snapshot the EBS volume that holds the data, create a new EBS volume from the snapshot (in the desired AZ), attach the EBS volume to the EC2 instance in VPC B.
However, if your server is running on Amazon Elastic File System (EFS), then you would need to copy the data to an EBS volume, detach the volume and attach it to an instance in the VPC B, then copy the data from the EBS volume to a new EFS share in VPC B.

EBS Volumes used by RDS instance

Currently I am going through the Storage for Amazon RDS documentation.
This document mentions that - Most of Amazon RDS uses Amazon Elastic Block Store (Amazon EBS) volumes for database and log storage;
It also mentions that - Depending on the amount of storage requested, Amazon RDS automatically stripes across multiple Amazon EBS volumes to enhance IOPS performance.
So my question is: How EBS volumes are allocated to RDS instance?
Whether these are the EBS volumes that are created automatically and attached to RDS instance during it's launch? (EBS volumes on which user don't have control??)
Or these are the EBS volumes which are attached to EC2 instance/instances within the same VPC in which I would like to launch my RDS instance?
Thx!
You have no visibility into the EBS volumes used by your RDS instances. RDS is a managed service. You won't be able to see the EC2 instances or the EBS volumes or the S3 buckets used by your RDS databases.

How Can I change instance EC2 from Oregon to Virginia

How Can I change instance EC2 from Oregon to Virginia? Is there any form by console? I have one Instance RDS and one Instance EC2.
Take a snapshot of the RDS instance, and either a snapshot of your EBS volume(s) on EC2, or create an AMI from your EC2 instance.
Move the snapshot(s) and AMI to the new region.
Create a new RDS instance in the new region using the RDS snapshot you copied there.
Create a new EC2 instance in the new region from the AMI or EBS snapshots you copied there.
Update your application on your new EC2 instance to point to the new RDS location.
Move any DNS entries or Elastic IP addresses to point to the new servers and shut down the old ones.