I have attached Volume to instance ready, But Still get error

0

How to fix it? I have reattachment of volumes to instance , when i restart instance is show message like bellow. please kindly to give solution.

Enter image description here

TN
已提問 10 個月前檢視次數 538 次
1 個回答
2

This error comes when Device name given while attaching the root volume differs from Root device attached to EC2 instance during launch.

In the above screen shot error is related to device name /dev/sda1. We need to use same device name while attaching the volume to EC2 instance.

  • Go to EBS –> Volumes and select respective attached volume . This volume will be having status as “in-use”. Then click on Detach volume option from Action drop down menu.
  • Try to attached same volume to EC2 instance. However make sure that you are not using default “Device” such as “/dev/sdf” Instead Use Device name as /dev/sda1 and click Attach Button.
  • This time when you try to start the instance, the error “Instance does not have a volume attached at root (/dev/sda1)” will not occur and your EC2 instance will be start successfully.
AWS
已回答 10 個月前
profile picture
專家
已審閱 10 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南