Continuing with the volume created in the post Sharing EBS Volumes Among Instances,
in this post I show how to create a snapshot, create a new volume from that snapshot, and mount the new volume in
an instance. Remember that the volume created in the previous post contained 1 file called readme.
Creating the Snapshot
First we look at the available volumes:
Then we make the snapshot:
It is pending. We check the status until it the snapshot creation has completed:
Creating a Volume from the Snapshot
Now that the snapshot is ready, we can create a new volume from it. Note that we create it in a different
availability zone. The original volume resides in us-east-1c. The new volume will reside in us-east-1a.
We wait until the volume is available:
Now we have two available volumes.
Mounting the New Volume in an Instance
Let’s launch an image so that we can verify that the newly created volume can be mounted and has the
same contents as the original volume. Note that the instance is launched in the availability zone where
the newly created volume resides.
The AMI we use here is a public Ubuntu Desktop image.
The instance is ready to be used. In another terminal we connect to the image and start the user-setup script.
The GUI interaction to set up the user is not shown here.
Time to attach the volume (in the original terminal):