LoginSignup
4
7

More than 5 years have passed since last update.

AWS S3 の goofys がたまに切れるので再マウント

Posted at

AWS S3 再マウント

AWS S3 の goofys がたまに切れるので再マウント。
check.sh を cron で定期実行する。

check.sh
#!/bin/bash

# あらかじめ fstab が設定されていること

if [ ! -e /home/hoge/s3/healthy.txt ]; then
  sudo /bin/umount /home/hoge/s3
  sudo /bin/mount -a
  echo 'remount s3'
fi

exit

goofysの使い方はこのへんで。
http://qiita.com/kooohei/items/a14f22cb0381342d1861

4
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
7