2.5添加/etc/ctdb/nodes 和 /etc/ctdb/public_address文件
[root@node01post]#vi/etc/ctdb/nodes192.168.133.144192.168.133.149###这里的ip为gluster server节点的ip
[root@node01post]#vi/etc/ctdb/public_addresses192.168.133.100/24ens33###这里的ip是浮动ip, ens33为interface name
2.6启动并验证ctdb service
[root@node01post]#systemctlstartctdb[root@node01post]#ctdbpnnPNN:0[root@node01post]#ctdbping-nallresponsefrom0time=0.000049sec(2clients)responsefrom1time=0.008014sec(1clients)[root@node01post]#ctdbstatusNumberofnodes:2pnn:0192.168.133.144OK(THISNODE)pnn:1192.168.133.149OKGeneration:2009096591Size:2hash:0lmaster:0hash:1lmaster:1Recoverymode:RECOVERY(1)Recoverymaster:1[root@node01post]#ctdbipPublicIPsonnode0192.168.133.1000[root@node01post]#ctdbipinfo192.168.133.100PublicIPsonnode0192.168.133.10002.7使用浮动ip挂载gluster volume
[root@node02post]#mount-tcifs-ousername=smbuser,password=redhat//192.168.133.100/gluster-repvol/mnt/samba-test/