Stopping and Starting EC2 instance wipes data

0

Hello all,

I recently launched an ec2 instance (m5a-large) and created an additional ebs volume for it at launch based on a snapshot. When I ssh to the instance, I can find all of the data on my home directory. When I stop the instance and start it again, I can no longer find any of my files in my home directory.

I'm not sure why stopping my instance is wiping my data. I would like my files to be present when I stop and start the instance.

bwassie
已提问 5 年前253 查看次数
1 回答
0

Hello
Your home directory is probably in the ephemeral storage and not on the new ebs volume.
If you would like to keep it, you would need to move your home directory to the new ebs volume
https://www.tecmint.com/move-home-directory-to-new-partition-disk-in-linux/

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html
hope this helps,
RT

rtt
已回答 5 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则