2
時間,原因不明,亞馬遜S3保險絲安裝在Linux服務器全天失敗。唯一的解決方案是umount
然後再mount
目錄。我試着寫了下面的shell腳本,當手動卸載它的工作,並重新安裝,但我學會了必須有一些其他的「狀態」當鏈接失敗,但實際上不是卸載。Linux的安裝失敗,並沒有連接錯誤傳輸端點從時間
原來的錯誤:
[[email protected] mnt]# cd s3fs
[[email protected] s3fs]# ls
ls: cannot access amazon: Transport endpoint is not connected
amazon
[[email protected] s3fs]# umount amazon
[[email protected] s3fs]# mount amazon/
shell腳本試圖檢查安裝並重新安裝,如果失敗(曾在手動測試,但未能):
#!/bin/bash
cat /etc/mtab | grep /mnt/$1 >/dev/null
if [ "$?" -eq "0" ]; then
echo /mnt/$1 is mounted.
else
echo /mnt/$1 is not mounted at this time.
echo remounting now...
umount /mnt/$1
mount /mnt/$1
fi
- 爲什麼會shell腳本如果我手動卸載目錄並運行測試工作,但是當傳輸端點失敗時,測試返回true並且remount不會發生?
- 什麼是解決它的最好方法?
看來其他人也有類似的問題與其他雲服務和掛載點:https://github.com/redbo/cloudfuse/issues/15 – 2012-08-14 21:06:56
另一個類似的掛載點問題和他們的解決方案是卸載和重新掛載:https://錯誤.launchpad.net/ubuntu的/ +源極/ GVFS/+錯誤/ 212789 – 2012-08-14 21:08:08