Advertisement
Guest User

Untitled

a guest
Oct 15th, 2015
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.47 KB | None | 0 0
  1. oot@devnix-virt-master01:~# cat /tmp/log
  2. + BUFFER_SIZE=104857600
  3. ++ gluster --print-logdir
  4. + slave_log_file=/var/log/glusterfs/geo-replication-slaves/slave.log
  5. + main pve-gluster-share root node3 pve-gluster-geo
  6. + log_file=
  7. /usr/lib/x86_64-linux-gnu/glusterfs/gverify.sh: line 120: $log_file: ambiguous redirect
  8. + SSH_PORT=22
  9. + ping_host node3 22
  10. + '[' 0 -ne 0 ']'
  11. + ssh -oNumberOfPasswordPrompts=0 -oStrictHostKeyChecking=no root@node3 'echo Testing_Passwordless_SSH'
  12. + '[' 0 -ne 0 ']'
  13. + ERRORS=0
  14. ++ master_stats pve-gluster-share
  15. ++ MASTERVOL=pve-gluster-share
  16. ++ local cmd_line
  17. +++ cmd_master pve-gluster-share
  18. +++ VOL=pve-gluster-share
  19. +++ local cmd_line
  20. ++++ cat
  21. +++ cmd_line='function do_verify() {
  22. v=$1;
  23. d=$(mktemp -d -t gverify.sh.XXXXXX 2>/dev/null);
  24. glusterfs -s localhost --xlator-option="*dht.lookup-unhashed=off" --volfile-id $v -l /var/log/glusterfs/geo-replication-slaves/slave.log $d;
  25. i=$(stat -c "%i" $d);
  26. if [[ "$i" -ne "1" ]]; then
  27. echo 0:0;
  28. exit 1;
  29. fi;
  30. cd $d;
  31. disk_size=$(df -P -B1 $d | tail -1 | awk "{print \$2}");
  32. used_size=$(df -P -B1 $d | tail -1 | awk "{print \$3}");
  33. umount -l $d;
  34. rmdir $d;
  35. ver=$(gluster --version | head -1 | cut -f2 -d " ");
  36. echo $disk_size:$used_size:$ver;
  37. };
  38. cd /tmp;
  39. [ xpve-gluster-share != x ] && do_verify pve-gluster-share;'
  40. +++ echo function 'do_verify()' '{' 'v=$1;' 'd=$(mktemp' -d -t gverify.sh.XXXXXX '2>/dev/null);' glusterfs -s localhost '--xlator-option="*dht.lookup-unhashed=off"' --volfile-id '$v' -l /var/log/glusterfs/geo-replication-slaves/slave.log '$d;' 'i=$(stat' -c '"%i"' '$d);' if '[[' '"$i"' -ne '"1"' ']];' then echo '0:0;' exit '1;' 'fi;' cd '$d;' 'disk_size=$(df' -P -B1 '$d' '|' tail -1 '|' awk '"{print' '\$2}");' 'used_size=$(df' -P -B1 '$d' '|' tail -1 '|' awk '"{print' '\$3}");' umount -l '$d;' rmdir '$d;' 'ver=$(gluster' --version '|' head -1 '|' cut -f2 -d '"' '");' echo '$disk_size:$used_size:$ver;' '};' cd '/tmp;' '[' xpve-gluster-share '!=' x ']' '&&' do_verify 'pve-gluster-share;'
  41. ++ cmd_line='function do_verify() { v=$1; d=$(mktemp -d -t gverify.sh.XXXXXX 2>/dev/null); glusterfs -s localhost --xlator-option="*dht.lookup-unhashed=off" --volfile-id $v -l /var/log/glusterfs/geo-replication-slaves/slave.log $d; i=$(stat -c "%i" $d); if [[ "$i" -ne "1" ]]; then echo 0:0; exit 1; fi; cd $d; disk_size=$(df -P -B1 $d | tail -1 | awk "{print \$2}"); used_size=$(df -P -B1 $d | tail -1 | awk "{print \$3}"); umount -l $d; rmdir $d; ver=$(gluster --version | head -1 | cut -f2 -d " "); echo $disk_size:$used_size:$ver; }; cd /tmp; [ xpve-gluster-share != x ] && do_verify pve-gluster-share;'
  42. ++ bash -c 'function do_verify() { v=$1; d=$(mktemp -d -t gverify.sh.XXXXXX 2>/dev/null); glusterfs -s localhost --xlator-option="*dht.lookup-unhashed=off" --volfile-id $v -l /var/log/glusterfs/geo-replication-slaves/slave.log $d; i=$(stat -c "%i" $d); if [[ "$i" -ne "1" ]]; then echo 0:0; exit 1; fi; cd $d; disk_size=$(df -P -B1 $d | tail -1 | awk "{print \$2}"); used_size=$(df -P -B1 $d | tail -1 | awk "{print \$3}"); umount -l $d; rmdir $d; ver=$(gluster --version | head -1 | cut -f2 -d " "); echo $disk_size:$used_size:$ver; }; cd /tmp; [ xpve-gluster-share != x ] && do_verify pve-gluster-share;'
  43. + master_data=321965260800:101262819328:3.7.4
  44. ++ slave_stats root node3 pve-gluster-geo
  45. ++ SLAVEUSER=root
  46. ++ SLAVEHOST=node3
  47. ++ SLAVEVOL=pve-gluster-geo
  48. ++ local cmd_line
  49. ++ local ver
  50. ++ local status
  51. +++ mktemp -d -t gverify.sh.XXXXXX
  52. ++ d=/tmp/gverify.sh.bqW3px
  53. ++ glusterfs '--xlator-option=*dht.lookup-unhashed=off' --volfile-server node3 --volfile-id pve-gluster-geo -l /var/log/glusterfs/geo-replication-slaves/slave.log /tmp/gverify.sh.bqW3px
  54. +++ stat -c %i /tmp/gverify.sh.bqW3px
  55. ++ i=8167
  56. ++ [[ 8167 -ne 1 ]]
  57. ++ echo 0:0
  58. ++ exit 1
  59. + slave_data=0:0
  60. ++ echo 321965260800:101262819328:3.7.4
  61. ++ cut -f1 -d:
  62. + master_disk_size=321965260800
  63. ++ echo 0:0
  64. ++ cut -f1 -d:
  65. + slave_disk_size=0
  66. ++ echo 321965260800:101262819328:3.7.4
  67. ++ cut -f2 -d:
  68. + master_used_size=101262819328
  69. ++ echo 0:0
  70. ++ cut -f2 -d:
  71. + slave_used_size=0
  72. ++ echo 321965260800:101262819328:3.7.4
  73. ++ cut -f3 -d:
  74. + master_version=3.7.4
  75. ++ echo 0:0
  76. ++ cut -f3 -d:
  77. + slave_version=
  78. ++ echo 0:0
  79. ++ cut -f4 -d:
  80. + slave_no_of_files=
  81. + [[ x321965260800 = \x ]]
  82. + [[ x3.7.4 = \x ]]
  83. + [[ 321965260800 -eq 0 ]]
  84. + [[ x0 = \x ]]
  85. + [[ x = \x ]]
  86. + echo 'FORCE_BLOCKER|Unable to fetch slave volume details. Please check the slave cluster and slave volume.'
  87. /usr/lib/x86_64-linux-gnu/glusterfs/gverify.sh: line 160: $log_file: ambiguous redirect
  88. + exit 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement