Tigergraph 3.x - Remove old versions after upgrading

Introduction

Each installation of TigerGraph will create a separate directory in /app/tigergraph.

Once the installation is completed you may remove the old directory without issue.

Do NOT use ‘guninstall’ as this will uninstall the active installation

Instructions

TigerGraph is installed under /tigergraph/app

If you have upgraded TigerGraph you will see multiple installation directories.

/home/tigergraph/tigergraph/app
$ ls 33.1.5  3.2.0

Once the upgrade has been completed you may simply remove the old directory

rm -rf /app/tigergraph/3.#.#
  • Or - To remove from all nodes in a cluster

    grun_p all "rm -rf /app/tigergraph/3.#.#"

Additional Information

Within TigerGraph 3.x there are multiple root directories (AppRoot, TempRoot, LogRoot, and DataRoot).

$gadmin config get System.AppRoot
/home/tigergraph/tigergraph/app/3.2.0
$gadmin config get System.DataRoot
/home/tigergraph/tigergraph/data
$gadmin config get System.LogRoot
/home/tigergraph/tigergraph/log
$gadmin config get System.TempRoot
/home/tigergraph/tigergraph/tmp

DataRoot, LogRoot, and TempRoot are all used by any TigerGraph 3.x package that is installed. and all future versions that is upgraded from that initial 3.x package. AppRoot is specific to each version that has been installed and its value will update automatically during the upgrade process.

You can always safely delete the AppRoot directory for a 3.x version with binaries that you do not need. gadmin config get System.AppRoot will point directly to the version with binaries that you are using. The parent directory of this configuration value will be where all directories for binaries of each installation are stored.

For example, if you upgrade from 3.1.5 to 3.2.1 System.DataRoot will point to /app/tigergraph/3.2.1. The unneeded 3.1.5 binaries that you can safely delete would then be located in /app/tigergraph/3.1.5.