Name
ec2-detach-volume
Synopsis
ec2-detach-volumevolumeid
[-iinstanceid
] [-ddevice
] --force
Detaches the specified volume from the instance to which it is
currently attached. You should make sure you have unmounted the
filesystem from the instance to which the volume is attached before
you detach it; otherwise, your data will likely be corrupted. If the
detach fails, you can try again with the --force
option to force it to
occur.
Example
$ ec2-detach-volume
ATTACHMENT vol-81aeb37f i-12b3ff6a /dev/sdf detaching 2008-12-17T22:36:00+0000
Get Cloud Application Architectures now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.