CentOS是Linux發(fā)行的社區(qū)企業(yè)操作系統(tǒng),不少朋友在使用時遇到了無法掛載Glusterfs的難題,深究原因發(fā)現(xiàn)是機器間網(wǎng)絡(luò)不通暢導(dǎo)致,接下來小編就將教大家輕松搞定CentOS下無法掛載Glusterfs的問題.
執(zhí)行的mount命令:
mount target_host:/volume_name current_path
執(zhí)行mount命令后,提示錯誤信息:
- /usr/sbin/start-statd: line 8: systemctl: command not found
- mount.nfs: rpc.statd is not running but is required for remote locking.
- mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
- mount.nfs: Operation not permitted
一般情況下,用到Glusterfs存儲的地方至少都是兩臺機器來配置完成的,在各自的機器上能夠正常的啟動相應(yīng)的服務(wù),然而,在執(zhí)行g(shù)luster volume info命令查看定義的volume信息時,會發(fā)現(xiàn)非本機存儲的機器狀態(tài)為offline,這時無論是在本地還是其他地方做mount 時都不會成功,會提示timeout(鏈接超時)—— 這就是問題所在,網(wǎng)絡(luò)不通暢.
這時,需要處理機器間的網(wǎng)絡(luò)配置,這里有兩點:
1、查看各機器的iptables配置,備份之前的iptables配置(/etc/sysconfig/iptables),然后導(dǎo)出生效的iptables(service iptables save),查看核對現(xiàn)有的與導(dǎo)出前的配置是否存在不同,存在則修復(fù),最后重啟iptables服務(wù)(service iptables restart).
2、查看各機器的IP配置是否發(fā)生變化(ifconfig),是否同一網(wǎng)段,若配置存在變動,則更改回原始配置,重啟網(wǎng)絡(luò)服務(wù)(service network restart).
以上網(wǎng)絡(luò)問題解決后,再次執(zhí)行mount target_host:/volume_name current_path(一般不需要參數(shù)-t glusterfs(完成對gluster管理的volume的掛載,此時,如果掛載失敗,則加上-t參數(shù),即mount -t glusterfs target_host:/volume_name current_path.
新聞熱點
疑難解答
圖片精選