示例三台机器IP分别如下:
192.168.0.122、192.168.0.123、192.168.0.124
同步三台机器的系统时间。
分别修改三台机器的mrcconfig.properties配置文件:
cd /home/uxdb/uxdbinstall/uxfs/etc/xos/uxfs_conf vi mrcconfig.properties
修改参数配置如下:
babudb.sync = FDATASYNC babudb.plugin.0 = /home/uxdb/uxdbinstall/uxfs/etc/xos/uxfs_conf/server-repl-plugin/mrc.properties
配置dir、mrc、osd的uuid使其各不相同。
分别修改三台机器的mrc.properties配置文件:
cd server-repl-plugin vi mrc.properties
修改参数配置如下:
babudb.repl.participant.0 = 192.168.0.122 babudb.repl.participant.0.port = 35676 babudb.repl.participant.1 = 192.168.0.123 babudb.repl.participant.1.port = 35676 babudb.repl.participant.2 = 192.168.0.124 babudb.repl.participant.2.port = 35676 babudb.repl.sync.n = 2 plugin.jar = /home/uxdb/uxdbinstall/uxfs/java/lib/BabuDB_replication_plugin.jar babudb.repl.dependency.0 = /home/uxdb/uxdbinstall/uxfs/java/flease/dist/Flease.jar
分别启动三台机器的uxfs:
cd /home/uxdb/uxdbinstall/uxfs ./start-all.sh