Skip to main content
Question

installation best practices and tools

  • December 12, 2018
  • 2 replies
  • 17 views

An_kir
Forum|alt.badge.img+2
  • Participating Frequently

Hi All,
we are preparing to install Vertica on a 20 node cluster (physical servers) and are looking for best practices \ recommendations \ scripts to support the activity.

2 replies

An_kir
Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • December 12, 2018

by scripts I mean the ones which wd help to check and set up the OS before installation.


MaciejPaliwoda
Forum|alt.badge.img+2
  • Participating Frequently
  • December 12, 2018

Hi Andrei,

this pssh tool - may help:
https://www.tecmint.com/execute-commands-on-multiple-linux-servers-using-pssh/
to pararelize tasks

and this code help U run all script to verify if all prerequsities are meet (however U have to install first on each node vertica RPM

#!/bin/bash
echo "Script $0, version 1.1"
set -f

NUM_TESTS=`cat $0 | grep "echo ~~~~~~~~~~~ ssh $n" | grep -v "NUM_TESTS=" | wc -l`
pwd=`pwd`
myssh="ssh -o ConnectTimeout=1"
data_folder=`cat /opt/vertica/config/admintools.conf |grep "^node0001" |cut -d',' -f3`
hosts=`awk '$1 == "hosts" && $2 == "=" {print $3}' /opt/vertica/config/admintools.conf`

IFS=',' read -r -a ARR <<< "$hosts"


echo ~~~~~~~~~~~ ssh $n "1./$NUM_TESTS /opt/vertica/oss/python/bin/python -m vertica.local_verify"
for n in "${ARR[@]}"; do
  $myssh $n "/bin/hostname"
  $myssh $n "echo STARTING script: /opt/vertica/oss/python/bin/python -m vertica.local_verify ..."
  $myssh $n "/opt/vertica/oss/python/bin/python -m vertica.local_verify $1"
  $myssh $n "echo === Displaying results:"
  $myssh $n "cat /opt/vertica/log/verify-latest.xml"
  $myssh $n "echo === End of Displaying results."
done

exit 0