Reinstall of an OBR 10.22 remote Vertica database thinks the DB already exist

Reinstall of an OBR 10.22 remote Vertica database thinks the DB already exist

0 Votes

OBR CreateVerticaDatabase.sh script needs to be updated.

The script was failing because it thought that the Vertica database already existed because of the line below.

dbstatus=`su $1 -c "/opt/vertica/bin/adminTools -t view_cluster"
grep -i UP
wc -l`


If you manually run the line without the "wc" command, you will see that it is picking up the word of "upon" in the "grep -i UP" piped command.  

[root@OBRDB ~]# su vertica -c "/opt/vertica/bin/adminTools -t view_cluster"
grep -i UP
    This file is created by the installer upon successful completion.
[root@OBRDB ~]#


You need to remove the case-insensitive search option of "-i", and the script will run just fine.

dbstatus=`su $1 -c "/opt/vertica/bin/adminTools -t view_cluster"
grep UP
wc -l`

Tags (2)
1 Comment
Micro Focus Expert
Micro Focus Expert
Status changed to: Waiting for Votes
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.