Overriding AWS AMI volume device names?

8 views
Skip to first unread message

Karl Auer

unread,
Dec 19, 2018, 8:36:41 AM12/19/18
to ansible-project
Hi there.

I have an AMI that was taken from an instance with two EBS volumes, attached to devices /dev/sda1 and xvdb.

I want to override the volume device names, and put volumes on (say) xvda and xvdf. (and xvdg, xvdh...).  I would still like to use the AMI's root volume (name and snapshot), but all the rest I want to replace with empty volumes.

I vaguely remember reading somewhere that this is possible, but I'm having trouble figuring it out. I keep getting a new instance with /dev/sda1 and xvdb *as well as* the new volumes I am creating and attaching xvdf etc.

Using ec2_vol.

Regards, K.


--
Karl Auer

Email  : ka...@2pisoftware.com
Website: http://2pisoftware.com


GPG/PGP : 958A 2647 6C44 D376 3D63 86A5 FFB2 20BC 0257 5816
Previous: F0AB 6C70 A49D 1927 6E05 81E7 AD95 268F 2AB6 40EA

Reply all
Reply to author
Forward
0 new messages