Hi,
I am unable to attache a new volume xvdb to an instance because it says there is already a volume attached to it.
I ran "aws ec2 describe-instances --instance-ids i-0facb573439f86e77" and effectively there is an xvdb volume attached to it, but the volume is not showing on aws console.
"BlockDeviceMappings": \[
{
"DeviceName": "xvdb",
"Ebs": {
"AttachTime": "2019-02-23T13:00:42.000Z",
"DeleteOnTermination": false,
"Status": "attached",
"VolumeId": "vol-036a842b4d29cc04c"
}
},
{
"DeviceName": "/dev/sda1",
"Ebs": {
"AttachTime": "2019-02-24T01:02:53.000Z",
"DeleteOnTermination": false,
"Status": "attached",
"VolumeId": "vol-0b6f0ea451f8be630"
}
}
],
I later run "aws ec2 detach-volume --volume-id vol-036a842b4d29cc04c --force" and I get the following error:
An error occurred (InvalidVolume.NotFound) when calling the DetachVolume operation: The volume 'vol-036a842b4d29cc04c' does not exist.
I have tried starting the instance but it fails to start.
I there any way to get this solved without having to terminate the instance and create a new one?
Thanks