nixops-aws icon indicating copy to clipboard operation
nixops-aws copied to clipboard

EC2 volume attachement doesn't work with 5th generation instances (c5/m5) having nvme devices

Open AmineChikhaoui opened this issue 7 years ago • 1 comments

The deploy process will hang in https://github.com/NixOS/nixops/blob/master/nixops/backends/ec2.py#L543 i.e waiting for the device to be visible in the device filesystem due to the difference in nvme device names.

AmineChikhaoui avatar Jan 22 '18 10:01 AmineChikhaoui

Make sure you use the proper NVMe name for the device. This works for me:

    deployment.ec2.blockDeviceMapping."/dev/nvme1n1".disk = "vol-00ea207127b3ddb20a";

See also https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html

lionello avatar Oct 13 '21 01:10 lionello