示例三台机器IP分别如下:
192.168.0.122、192.168.0.123、192.168.0.124
同步三台机器的系统时间。
分别修改三台机器的dirconfig.properties配置文件:
cd /home/uxdb/uxdbinstall/uxfs/etc/xos/uxfs_conf vi dirconfig.properties
修改参数配置如下:
babudb.plugin.0 = /home/uxdb/uxdbinstall/uxfs/etc/xos/uxfs_conf/server-repl-plugin/dir.properties
配置dir、mrc、osd的uuid使其各不相同。
分别修改三台机器的dir.properties配置文件:
cd server-repl-plugin vi dir.properties
修改参数配置如下:
babudb.repl.participant.0 = 192.168.0.122 babudb.repl.participant.0.port = 35678 babudb.repl.participant.1 = 192.168.0.123 babudb.repl.participant.1.port = 35678 babudb.repl.participant.2 = 192.168.0.124 babudb.repl.participant.2.port = 35678 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
分别修改三台机器的mrcconfig.properties和osdconfig.properties配置文件:
cd /home/uxdb/uxdbinstall/uxfs/etc/xos/uxfs_conf vi mrcconfig.properties vi osdconfig.properties
修改参数配置如下:
dir_service.host = 192.168.0.122 dir_service.port = 32638 dir_service.1.host = 192.168.0.123 dir_service.1.port = 32638 dir_service.2.host = 192.168.0.124 dir_service.2.port = 32638
分别启动三台机器的uxfs:
cd /home/uxdb/uxdbinstall/uxfs ./start-all.sh