Per this excellent answer, I'm trying to disconnect an EBS drive from one instance (Server-01) and connect it to another instance (Server-02), where I will mount it and get access to a file I need. Then I'll disconnect it from Server-02 and move it back to Server-01.
Here's the problem. Server-02, the server where I want to add the drive, won't let me associate the EBS drive that I've disconnected from Server-01. Could it be because Server-02 already has two EBS drives attached to it (an 8 GB drive at /dev/sda1
, and a 20 GB drive at /dev/sdf
)?
(Please pardon me if I don't have my terminology exactly correct.)
If you take a snapshot of the EBS volume located in us-west-1c on Server-01, you can create a new volume from that snapshot in a different availability zone (us-west-1b in your case), and then attach this new volume to Server-02.
If you only intended to move data in one direction, this would be fairly quick and clean, and you can dispose of the Snapshot+EBS Volume once you're done without any disruption to the original EBS mount on Server-01. If you wanted to then move data back from Server-02 to Server-01, you'd need to repeat the process in reverse.