[英]Amazon EC2 instance's var/www folder mounted on ubuntu machine freezes after some time
[英]EFS is somehow being unmounted from ec2 linux servers after some time
我目前有一個 EFS 掛載到 2 個 linux 服務器。 幾周后,其中一個會隨機卸載。 我一直在嘗試研究為什么會發生這種情況。 是否存在與 EFS 相關的任何日志或任何一般性問題? 這是我用來掛載 EFS 的命令:
sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 fs-xxxxxxx.efs.us-west-2.amazonaws.com:/ /var/lib/emapi/static
任何幫助將非常感激。
您是否已將卷添加到/etc/fstab
?
當實例重新啟動時,它可能會丟失。
請參閱https://docs.aws.amazon.com/efs/latest/ug/mount-fs-auto-mount-onreboot.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.