5.4.?dir、mrc和osd全备份

示例三台机器IP分别如下:

192.168.0.122、192.168.0.123、192.168.0.124

  1. 同步三台机器的系统时间。

  2. 配置dir replication:

    • 分别修改三台机器的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.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
  3. 配置mrc replication:

    • 分别修改三台机器的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
  4. 启动三台机器的uxfs:

    cd /home/uxdb/uxdbinstall/uxfs
    ./start-all.sh
  5. 创建并挂载Volume,参考osd备份

    • 进入安装目录下的uxfs/bin目录:

      cd /home/uxdb/uxdbinstall/uxfs/bin
    • 创建volume:

      mkfs.uxfs localhost/demo
    • 挂载:

      mkdir /mnt/volume 
      mount.uxfs 192.168.0.122/demo /mnt/volume
  6. 配置osd replication:

    xtfsutil --set-drp --replication-policy WqRq --replication-factor 5 /mnt/volume
XML 地图 | Sitemap 地图