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년 전216회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠