我在 2 台 Redhat 6.7 服务器上设置了 2 个节点 GlusterFS。 (GlusterFS 版本均为 3.7.12)然后一台服务器上的“本地主机上的 NFS 服务器”状态显示“n/a”和在线“N”,而在另一台服务器上则显示一切正常。
[root@webserver1 ~]# gluster volume status gv0
Status of volume: gv0
Gluster process TCP Port RDMA Port Online Pid
------------------------------------------------------------------------------
Brick gluster1:/glusterfs-data/brick 49152 0 Y 27149
Brick gluster2:/glusterfs-data/brick 49152 0 Y 1677
NFS Server on localhost N/A N/A N N/A
Self-heal Daemon on localhost N/A N/A Y 27176
NFS Server on gluster2 2049 0 Y 1629
Self-heal Daemon on gluster2 N/A N/A Y 1638
Task Status of Volume gv0
------------------------------------------------------------------------------
There are no active volume tasks
需要启动哪些服务(或者)这里似乎遗漏了哪些服务?
答案1
尝试:
##enable nfs
gluster volume set volume_name nfs.disable off
## restart volume
gluster volume stop volume_name
gluster volume start volume_name
替换volume_name
为适合您的卷的名称
答案2
rpcbind
后需要重新启动gluster volume set volume_name nfs.disable off
。
你的音量将是这样的:
Gluster process TCP Port RDMA Port Online Pid
------------------------------------------------------------------------------
Brick vol01:/tmp/teste 49197 0 Y 4321
Brick vol02:/tmp/teste 49197 0 Y 4619
NFS Server on localhost 2049 0 Y 4341
Self-heal Daemon on localhost N/A N/A Y 4349
NFS Server on ftp02-sp.dcdsr.local N/A N/A N N/A
Self-heal Daemon on ftp02-sp.dcdsr.local N/A N/A Y 4647
Task Status of Volume teste1
------------------------------------------------------------------------------
There are no active volume tasks