Advertisement
illwieckz

Gluster version mismatch between master and slave.

Dec 10th, 2017
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.48 KB | None | 0 0
  1. root@master-serveur:~# dd if=/dev/zero of=/home/glusterfs-loop bs=10M count=100
  2.  
  3. root@slave-server:~# dd if=/dev/zero of=/home/glusterfs-loop bs=10M count=100
  4.  
  5. root@master-serveur:~# mkfs.ext4 -L glusterfs-brick /home/glusterfs-loop
  6.  
  7. root@slave-server:~# mkfs.ext4 -L glusterfs-brick /home/glusterfs-loop
  8.  
  9. root@master-serveur:~# mkdir /home/glusterfs-brick
  10.  
  11. root@slave-server:~# mkdir /home/glusterfs-brick
  12.  
  13. root@master-serveur:~# mount -o loop /home/glusterfs-loop /home/glusterfs-brick
  14.  
  15. root@slave-server:~# mount -o loop /home/glusterfs-loop /home/glusterfs-brick
  16.  
  17. root@master-serveur:~# apt-get install -y glusterfs-server
  18.  
  19. root@slave-server:~# apt-get install -y glusterfs-server
  20.  
  21. root@master-serveur:~# gluster peer probe slave-server
  22. peer probe: success.
  23.  
  24. root@slave-server:~# gluster peer probe master-serveur
  25. peer probe: success.
  26.  
  27. root@master-serveur:~# ssh-keygen
  28. root@master-serveur:~# ssh-copy-id root@slave-server
  29.  
  30. root@master-serveur:~# ssh root@slave-server whoami
  31. root
  32.  
  33. root@master-serveur:~# gluster system:: execute gsec_create
  34. Common secret pub file present at /var/lib/glusterd/geo-replication/common_secret.pem.pub
  35.  
  36. root@slave-server:~# gluster system:: execute gsec_create
  37. Common secret pub file present at /var/lib/glusterd/geo-replication/common_secret.pem.pub
  38.  
  39. root@master-serveur:~# mkdir /home/glusterfs-brick/pool
  40.  
  41. root@slave-server:~# mkdir /home/glusterfs-brick/pool
  42.  
  43. root@master-serveur:~# gluster volume create gv-master0 master-serveur:/home/glusterfs-brick/pool
  44. volume create: gv-master0: success: please start the volume to access data
  45.  
  46. root@slave-server:~# gluster volume create gv-slave0 slave-server:/home/glusterfs-brick/pool
  47. volume create: gv-slave0: success: please start the volume to access data
  48.  
  49. root@master-serveur:~# gluster volume info
  50.  
  51. Volume Name: gv-master0
  52. Type: Distribute
  53. Volume ID: fa88b9a1-eb47-4b08-8e45-d0825508b053
  54. Status: Created
  55. Snapshot Count: 0
  56. Number of Bricks: 1
  57. Transport-type: tcp
  58. Bricks:
  59. Brick1: master-serveur:/home/glusterfs-brick/pool
  60. Options Reconfigured:
  61. transport.address-family: inet
  62. performance.readdir-ahead: on
  63. nfs.disable: on
  64.  
  65. Volume Name: gv-slave0
  66. Type: Distribute
  67. Volume ID: 593fe0fa-ebf0-4e44-bdc0-baf262cf06e7
  68. Status: Created
  69. Snapshot Count: 0
  70. Number of Bricks: 1
  71. Transport-type: tcp
  72. Bricks:
  73. Brick1: slave-server:/home/glusterfs-brick/pool
  74. Options Reconfigured:
  75. transport.address-family: inet
  76. performance.readdir-ahead: on
  77. nfs.disable: on
  78.  
  79. root@slave-server:~# gluster volume info
  80.  
  81. Volume Name: gv-master0
  82. Type: Distribute
  83. Volume ID: fa88b9a1-eb47-4b08-8e45-d0825508b053
  84. Status: Created
  85. Snapshot Count: 0
  86. Number of Bricks: 1
  87. Transport-type: tcp
  88. Bricks:
  89. Brick1: master-serveur:/home/glusterfs-brick/pool
  90. Options Reconfigured:
  91. transport.address-family: inet
  92. performance.readdir-ahead: on
  93. nfs.disable: on
  94.  
  95. Volume Name: gv-slave0
  96. Type: Distribute
  97. Volume ID: 593fe0fa-ebf0-4e44-bdc0-baf262cf06e7
  98. Status: Created
  99. Snapshot Count: 0
  100. Number of Bricks: 1
  101. Transport-type: tcp
  102. Bricks:
  103. Brick1: slave-server:/home/glusterfs-brick/pool
  104. Options Reconfigured:
  105. transport.address-family: inet
  106. performance.readdir-ahead: on
  107. nfs.disable: on
  108.  
  109. root@master-serveur:~# gluster volume start gv-master0
  110. volume start: gv-master0: success
  111.  
  112. root@slave-server:~# gluster volume start gv-slave0
  113. volume start: gv-slave0: success
  114.  
  115. root@master-serveur:~# mkdir /home/glusterfs-data
  116.  
  117. root@slave-server:~# mkdir /home/glusterfs-data
  118.  
  119. root@master-serveur:~# mount -t glusterfs master-serveur:gv-master0 /home/glusterfs-data
  120.  
  121. root@slave-server:~# mount -t glusterfs master-serveur:gv-slave0 /home/glusterfs-data
  122.  
  123. root@master-serveur:~# groupadd --system geogroup
  124. root@master-serveur:~# useradd --system --no-create-home --gid geogroup geouser
  125. root@master-serveur:~# mkdir /home/mountbroker-root
  126. root@master-serveur:~# chown root.root /home/mountbroker-root
  127. root@master-serveur:~# chmod 0711 /home/mountbroker-root
  128.  
  129. root@slave-server:~# groupadd --system geogroup
  130. root@slave-server:~# useradd --system --no-create-home --gid geogroup geouser
  131. root@slave-server:~# mkdir /home/mountbroker-root
  132. root@slave-server:~# chown root.root /home/mountbroker-root
  133. root@slave-server:~# chmod 0711 /home/mountbroker-root
  134. root@slave-server:~# gluster system:: execute mountbroker opt mountbroker-root /home/mountbroker-root
  135. Command executed successfully.
  136. root@slave-server:~# gluster system:: execute mountbroker opt geo-replication-log-group geogroup
  137. Command executed successfully.
  138. root@slave-server:~# gluster system:: execute mountbroker opt rpc-auth-allow-insecure on
  139. Command executed successfully.
  140. root@slave-server:~# gluster system:: execute mountbroker user geouser slavevol
  141. Command executed successfully.
  142.  
  143. root@master-serveur:~# systemctl restart glusterfs-server
  144.  
  145. root@slave-server:~# systemctl restart glusterfs-server
  146.  
  147. root@master-serveur:~# gluster --version
  148. glusterfs 3.8.8 built on Jan 11 2017 14:07:11
  149. Repository revision: git://git.gluster.com/glusterfs.git
  150. Copyright (c) 2006-2011 Gluster Inc. <http://www.gluster.com>
  151. GlusterFS comes with ABSOLUTELY NO WARRANTY.
  152. You may redistribute copies of GlusterFS under the terms of the GNU General Public License.
  153.  
  154. root@slave-server:~# gluster --version
  155. glusterfs 3.8.8 built on Jan 11 2017 14:07:11
  156. Repository revision: git://git.gluster.com/glusterfs.git
  157. Copyright (c) 2006-2011 Gluster Inc. <http://www.gluster.com>
  158. GlusterFS comes with ABSOLUTELY NO WARRANTY.
  159. You may redistribute copies of GlusterFS under the terms of the GNU General Public License.
  160.  
  161. root@master-serveur:~# gluster --version | head -1 | cut -f2 -d ' '
  162. 3.8.8
  163.  
  164. root@slave-server:~# gluster --version | head -1 | cut -f2 -d ' '
  165. 3.8.8
  166.  
  167. root@master-serveur:~# tail -n0 -f /var/log/glusterfs/etc-glusterfs-glusterd.vol.log &
  168.  
  169. root@master-serveur:~# gluster volume geo-replication gv-master0 root@slave-server:gv-slave0 create push-pem
  170. [2017-12-10 22:03:59.194805] E [MSGID: 106316] [glusterd-geo-rep.c:2745:glusterd_verify_slave] 0-management: Not a valid slave
  171. [2017-12-10 22:03:59.195012] E [MSGID: 106316] [glusterd-geo-rep.c:3133:glusterd_op_stage_gsync_create] 0-management: slave-server:gv-slave0 is not a valid slave volume. Error: Gluster version mismatch between master and slave.
  172. [2017-12-10 22:03:59.195074] E [MSGID: 106301] [glusterd-syncop.c:1297:gd_stage_op_phase] 0-management: Staging of operation 'Volume Geo-replication Create' failed on localhost : Gluster version mismatch between master and slave.
  173. Gluster version mismatch between master and slave.
  174. geo-replication command failed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement