开发者

How to mount EC2 volume persistnantly as it losts files when I stop the instance in LINUX?

开发者 https://www.devze.com 2023-01-02 00:15 出处:网络
I mounted volume by following it gets mounted but files get lost after stop. mkfs -t ext2 /dev/sdb mkdir /mnt/myVol

I mounted volume by following it gets mounted but files get lost after stop.

mkfs -t ext2 /dev/sdb mkdir /mnt/myVol mou开发者_高级运维nt /dev/sdb /mnt/myVol


If you want a volume whose data persists after you stop the EC2 instance that the volume is mounted on, you should use an Elastic Block Store volume.

0

精彩评论

暂无评论...
验证码 换一张
取 消