简体   繁体   English

ubuntu 18.04 重启后无法访问 fsx 共享卷

[英]Unable to access fsx shared volume after ubuntu 18.04 reboot

Previously, I had a fsx volume mounted on /shared directory.以前,我在 /shared 目录上安装了一个 fsx 卷。 However, Ubuntu 18.04 + fsx has some bug which causes reboot of the instance to unmount the fsx volume但是,Ubuntu 18.04 + fsx 有一些错误会导致实例重新启动以卸载 fsx 卷

Temporary solution:临时解决方案:

Mount the fsx volume again再次挂载 fsx 卷

wget -O - https://fsx-lustre-client-repo-public-keys.s3.amazonaws.com/fsx-ubuntu-public-key.asc | sudo apt-key add -
sudo bash -c 'echo "deb https://fsx-lustre-client-repo.s3.amazonaws.com/ubuntu bionic main" > /etc/apt/sources.list.d/fsxlustreclientrepo.list'
sudo apt update -y
sudo apt install -y lustre-client-modules-$(uname -r)
sudo mount -t lustre -o noatime,flock fs-<id of the fsx>.fsx.us-east-1.amazonaws.com@tcp:/fsx /shared
ubuntu@<>:~$ ls /shared/
DeepLearningExamples  checkpoint  checkpoints  checkpoints-1.data-00000-of-00001  checkpoints-1.index  conda_tf25  conda_tf25_hvd  deep-learning-models  nccl_hosts

However, cleaner solution would not require this re-mounting of fsx volume after instance reboot.但是,更清洁的解决方案不需要在实例重新启动后重新安装 fsx 卷。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM