Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oot@devnix-virt-master01:~# cat /tmp/log
- + BUFFER_SIZE=104857600
- ++ gluster --print-logdir
- + slave_log_file=/var/log/glusterfs/geo-replication-slaves/slave.log
- + main pve-gluster-share root node3 pve-gluster-geo
- + log_file=
- /usr/lib/x86_64-linux-gnu/glusterfs/gverify.sh: line 120: $log_file: ambiguous redirect
- + SSH_PORT=22
- + ping_host node3 22
- + '[' 0 -ne 0 ']'
- + ssh -oNumberOfPasswordPrompts=0 -oStrictHostKeyChecking=no root@node3 'echo Testing_Passwordless_SSH'
- + '[' 0 -ne 0 ']'
- + ERRORS=0
- ++ master_stats pve-gluster-share
- ++ MASTERVOL=pve-gluster-share
- ++ local cmd_line
- +++ cmd_master pve-gluster-share
- +++ VOL=pve-gluster-share
- +++ local cmd_line
- ++++ cat
- +++ 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;'
- +++ 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;'
- ++ 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;'
- ++ 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;'
- + master_data=321965260800:101262819328:3.7.4
- ++ slave_stats root node3 pve-gluster-geo
- ++ SLAVEUSER=root
- ++ SLAVEHOST=node3
- ++ SLAVEVOL=pve-gluster-geo
- ++ local cmd_line
- ++ local ver
- ++ local status
- +++ mktemp -d -t gverify.sh.XXXXXX
- ++ d=/tmp/gverify.sh.bqW3px
- ++ 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
- +++ stat -c %i /tmp/gverify.sh.bqW3px
- ++ i=8167
- ++ [[ 8167 -ne 1 ]]
- ++ echo 0:0
- ++ exit 1
- + slave_data=0:0
- ++ echo 321965260800:101262819328:3.7.4
- ++ cut -f1 -d:
- + master_disk_size=321965260800
- ++ echo 0:0
- ++ cut -f1 -d:
- + slave_disk_size=0
- ++ echo 321965260800:101262819328:3.7.4
- ++ cut -f2 -d:
- + master_used_size=101262819328
- ++ echo 0:0
- ++ cut -f2 -d:
- + slave_used_size=0
- ++ echo 321965260800:101262819328:3.7.4
- ++ cut -f3 -d:
- + master_version=3.7.4
- ++ echo 0:0
- ++ cut -f3 -d:
- + slave_version=
- ++ echo 0:0
- ++ cut -f4 -d:
- + slave_no_of_files=
- + [[ x321965260800 = \x ]]
- + [[ x3.7.4 = \x ]]
- + [[ 321965260800 -eq 0 ]]
- + [[ x0 = \x ]]
- + [[ x = \x ]]
- + echo 'FORCE_BLOCKER|Unable to fetch slave volume details. Please check the slave cluster and slave volume.'
- /usr/lib/x86_64-linux-gnu/glusterfs/gverify.sh: line 160: $log_file: ambiguous redirect
- + exit 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement