I'm running an Amazon EC2 instance (Ubuntu Server version: 11.10 (64 bit)) and am having problems with re-attaching EBS volumes to previously used device names.
For example, I launch the instance and attach a volume to
/dev/xvdh. This will mount, operate perfectly and then unmount and detach without issues. However, if I try and re-attach this volume (or any other) to
/dev/xvdh, it just gets stuck in the "attaching" state and will only detach with the --force option.
There are a ton of posts about this on the aws forums but none have a solution. Could this be an issue with Ubuntu? Are devices just "used up" until a reboot or is there some way of freeing them up once removed?