13.1.3 Linux installationPVSR can be installed on supported Linux operating system using the command-line installer. 13.1.3.1 Generic informationInput parameters The installer has to be run with the root user. In case of an upgrade PVSR has to be stopped before running the installation. To begin the installation you have to run the PerformanceVisor.vVERSION.en.bin application. The application has several input options:
Canceling the installation In order to cancel the installation you have to press the Ctrl-C keyboard sequence. If the installer is waiting for an answer to a question then after the Ctrl-C you have to answer the original question before you can cancel the installation. If during the installation you cannot or do not want to move forward, then the installer offers the uninstallation of those components which were installed during this last installer running. You may choose to retain those components, since the installer can be run more than once without a problem. Moreover: if a previous PVSR is detected, then the installer takes the default values from that installation and switches to upgrade mode automatically. Important: if you are running an upgrade and you choose to abort the installation and to undo the changes made then this does not mean that the installer would restore any PVSR file, nor does it mean that the installer would undo the changes made in the database schema! Messages, questions and answers during the installation The application saves the log messages in the /tmp/pvsr.install file during the installation. The DEBUG messages appear in this file even if the -d or -debug option wasn’t specified. The application uses the following log levels: ERROR, WARNING, INFO, DEBUG and QUESTION. In case of a question the application displays the default answer between square brackets - [ and ] - if such answer exists. If the installer asks for a password and such a default answer exists then it displays asterisks instead of the actual value. Differences in the installation process on different operating systems The installation process is slightly different when running on different operating systems. The major differences are the following:
The questions and answers represented to you during a Linux 8 installation are used and explained in the next section. If you are running the installer on an already installed PVSR then it switches automatically to upgrade mode and it will asks even less questions. 13.1.3.2 Installation1. Basic checks The installer checks several things at the beginning: it checks the version of the operating system, the required packages, the version of Perl and the options which were used to build the Perl binary, etc… The installer looks for three different types of installed packages: · Mandatory packages which are always required by PVSR · Optional packages, needed only by some of the data collectors · Optional packages, which might come in handy later when maintaining the PVSR installation. It is highly recommended to install these packages as well If it detects an error during these checks then according to the level of the error it either terminates immediately or it asks whether it should continue or not. INFO : Command line parameters: INFO : PATH is set to /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin INFO : Checking MD5 of the installer INFO : Installer started INFO : LOG file: /tmp/pvsr.install.log INFO : Checking perl version INFO : Found perl: /usr/local/bin/perl INFO : Checking OS type INFO : Found Red Hat 8 INFO : OS: Linux_x86 8 INFO : Checking perl 32/64bit INFO : Checking perl PerlIO INFO : Perl was built with PerlIO INFO : Checking required packages INFO : Package bash found INFO : Package openssh found INFO : Package openssh-clients found INFO : Package grep found INFO : Package tar found INFO : Package gzip found INFO : Package httpd found INFO : Package sed found INFO : Package perl-CGI found INFO : Package perl-Data-Dumper found INFO : Package perl-devel found INFO : Package perl-Digest found INFO : Package perl-ExtUtils-MakeMaker found INFO : Package java-1.8.0-openjdk found INFO : Package perl-SelfLoader found INFO : Package libgcc 32 bit found INFO : Package glibc 32 bit found INFO : Done INFO : Checking optional packages for collectors INFO : Package openssl found INFO : Package openssl-devel found INFO : Package libpq found INFO : Package libpq-devel found INFO : Package perl-DBD-MySQL found INFO : Package unixODBC found INFO : Package unixODBC-devel found INFO : Done INFO : Checking optional packages for maintenance INFO : Package tcpdump found INFO : Package zip found INFO : Package unzip found INFO : Package bind-utils found INFO : Package dos2unix found INFO : Package telnet found INFO : Package wget found INFO : Package ftp found INFO : Done INFO : Checking perl threading INFO : Perl threading enabled INFO : Checking the SELinux state INFO : SELinux is disabled, OK INFO : Keep in mind that the SELinux must not be activated when PerformanceVisor is running INFO : Extracting files into the temp directory: /tmp/pvsr INFO : Done 2. License information After the license information is shown the application waits for the user to accept them. INFO : Licence information This program contains free of charge third party Java and Perl libraries. The detailed list of components, the detailed license file s and sources can be found in the third party directory on the installer CD. By answering Y you acknowledge that your use of these software is governed by the terms of the respective program licenses. QUESTION : Do you agree to the licence terms (Y/N) []: y 3. Creating the symbolic links, DNS and NTP checks The installer creates symbolic links in the next step. By default you shouldn’t encounter any question during this process, except when the application detects that the link /usr/local/bin/perl already exists and it seems that the link isn’t the same as the Perl used during the installation. You should continue with the installation if you are absolutely sure that the /usr/local/bin/perl is the same as the Perl used during the installation. INFO : Creating symbolic link /usr/local/bin/bash to /bin/bash INFO : Creating symbolic link /usr/local/bin/perl to /usr/bin/perl After this the installer checks whether there are DNS servers configured or not. Mostly PVSR can work without a DNS server, but some collectors (for example the Windows and the Hyper-V collectors) might not work without them. Similarly, PVSR does not require a time server configuration, but without it the collected data might have a wrong timestamp. It can also cause a problem if there are multiple time synchronization methods configured (for example NTP and VMware), in this case it is recommended to modify the configuration so that only one time synchronization setting remains. INFO : Found 1 DNS name servers WARNING : It appears that VMware time synchronization is not enabled and the NTP/chronyd daemon WARNING : is not running. Although PVSR can work without them, WARNING : at least one of them is recommended QUESTION : Do you want to continue (Y/N) [Y]: 4. Basic Oracle parameters The application asks for the operating system user used during the installation of Oracle. After it is given it tries to determine the value of the ORACLE_HOME environment variable using that user, but even if it successful it asks for confirmation. The installer detects if the Oracle Instant Client is installed and asks for permission to make the necessary modifications (TNSNAMES.ORA, sym links, …). If it cannot find the sqlldr Oracle utility then it gives a warning: if the user decides to continue then the installer will only do a collector installation. QUESTION : The OS user of Oracle [oracle]: INFO : Found Oracle home: "" QUESTION : ORACLE_HOME environment variable []: /opt/instantclient_19_16 INFO : Checking the Oracle home /opt/instantclient_19_16 INFO : Cannot find the sqlplus executable binary: /opt/instantclient_19_16/bin/sqlplus, but found /opt/instantclient_19_16/sqlplus INFO : And the directory /opt/instantclient_19_16 does not end with "/bin" INFO : This looks like a ZIP Oracle instant client... INFO : PerformanceVisor needs proper /opt/instantclient_19_16/bin and /opt/instantclient_19_16/lib directories QUESTION : Do you want the installer to create these directories with symlinks for the actual files? (Y/N) [Y]: INFO : Creating directory /opt/instantclient_19_16/bin INFO : Creating directory /opt/instantclient_19_16/lib INFO : Oracle home /opt/instantclient_19_16 seems to be OK INFO : Checking Oracle version INFO : Found Oracle version 19 INFO : Detected 64-bit Oracle 5. PVSR operating system user parameters The application asks for the operating system user name to be created, for the operating system group to be created, for the password of the user (it only asks for the password on Linux) and for the directory below the /opt directory to be used by PVSR. If the user already and the directory already exist but the installer cannot find a valid PVSR installation in the directory then it asks whether it should continue or not. If it finds a PVSR then it won’t continue until all PVSR modules are stopped. QUESTION : PerformanceVisor OS user name [pvsr]: QUESTION : PerformanceVisor OS user group [pvsr]: QUESTION : PerformanceVisor OS user password [******]: QUESTION : PerformanceVisor installation directory below the /opt directory [pvsr]: INFO : Creating group pvsr INFO : Creating user pvsr with shell /usr/local/bin/bash INFO : Setting the user password INFO : Select user pvsr and group pvsr with directory /opt/pvsr INFO : Checking the environment of pvsr QUESTION : What is the profile file of the user pvsr [/opt/pvsr/.bash_profile]: INFO : Setting the PS1 environment variable to "'[\u@\h]\$ '" INFO : Setting the ORACLE_HOME environment variable to "/opt/instantclient_19_16" INFO : Setting the LD_LIBRARY_PATH environment variable to "/opt/pvsr/lib:/opt/instantclient_19_16/lib" INFO : Setting the PATH environment variable to "/usr/local/bin:/opt/instantclient_19_16/bin:$PATH" INFO : Setting the PERL_USE_UNSAFE_INC environment variable to "1" INFO : Setting the ORACLE_NLS33 environment variable to "/opt/instantclient_19_16/ocommon/nls/admin/data" INFO : Setting the ORA_NLS10 environment variable to "/opt/instantclient_19_16/nls/data" INFO : Setting the NLS_LANG environment variable to "HUNGARIAN_HUNGARY.EE8ISO8859P2" INFO : Adding start_stop_pvsr bash completion to /opt/pvsr/.bash_profile INFO : Environment checking is done INFO : Searching for running PerformanceVisor modules 6. Oracle parameters The application asks for the Oracle TNS name, host, service name, SID and the password of the SYSTEM user or for another user name / password pair used for testing the Oracle connection parameters. If the user chooses to use a different Oracle user than SYSTEM and PVSR will want to create the necessary Oracle user later during the installation then it will ask for the SYSTEM’s password again. If one do not want to give the SYSTEM’s password to the installer then the necessary Oracle user for PVSR must exists before the installer is ran and the -do_not_use_system option has to be specified. If the given TNS name cannot be found in the TNSNAMES.ORA file then it can make the necessary modification as well. After this it checks them. If the installer cannot find the tnsping utility, then the first two checks are skipped. INFO : Oracle checking QUESTION : TNS name []: XEPDB1 QUESTION : Oracle host name [localhost]: QUESTION : Oracle port [1521]: QUESTION : Oracle service name []: xepdb1 QUESTION : Oracle SID []: xepdb1 WARNING : TNSping cannot be found, assuming Oracle Instant client installation WARNING : Skipping TNSping tests QUESTION : Use the SYSTEM user to check the Oracle connection parameters (Y/N) [Y]: QUESTION : Oracle SYSTEM user password []: CONFIRM : Confirm the password: INFO : Attempting to login to Oracle with the SYSTEM user and the TNS name XEPDB1 INFO : Successful INFO : Attempting to login to Oracle with the SYSTEM user and the service name xepdb1 INFO : Successful INFO : Attempting to login to Oracle with the SYSTEM user and the SID xepdb1 ERROR : Cannot connect to Oracle with the SYSTEM user and the SID xepdb1 QUESTION : Do you want to continue without a proper SID setup (Y/N) [Y]: WARNING : Continuing... INFO : Successful INFO : Oracle checking successful 7. Type of the PVSR installation and nice setting After the PVSR files are installed, the installer whether we are installing a data collector server or not. Thanks to its architecture PVSR can run on more than just one machine. You should answer to this question with yes if you are installing a data collector on a new machine for an already installed PVSR. This question is among the few yes-no questions for which the installer stores the given answer and sets the default to your previous answer when running a second time, and can accept this default answer in silent mode automatically. If you are installing a new data collector then it is important to notice that you have to configure the SSH manually after the installation so that the central server can log in. It is also important that the central server knows the same host name as the new host about itself and that you specify this host name when you register the server module on the PVSR GUI. If this requirement is not meet then PVSR won’t be started automatically when the machine starts. PVSR also configures the operating system so that its module doing the ping measurements have a higher priority, thus enabling a more precise measurement. INFO : Configuring user SSH parameters INFO : Done INFO : Saving previous PerformanceVisor config files INFO : Untar PerformanceVisor INFO : Using Perl 5.26 libraries INFO : Using 64bit Perl INFO : Found /usr/lib/libstdc++.so.6 WARNING : !!! YOU SHOULD ONLY ANSWER YES TO THE FOLLOWING QUESTION !!! WARNING : !!! IF YOU ARE INSTALLING AN ADDITIONAL (COLLECTOR) SERVER !!! WARNING : !!! OR YOU ARE UPGRADING SUCH AN ADDITIONAL (COLLECTOR) SERVER !!! QUESTION : Are you installing a collector server (Y/N) [N]: INFO : Configuring PerformanceVisor INFO : The /etc/security/limits.conf already contains a nice setting 8. Apache configuration If you are not installing a data collector then the installer asks whether it should configure the Apache WEB server or you will configure it yourself later. This question is among the few yes-no questions for which the installer stores the given answer and sets the default to your previous answer when running a second time, and can accept this default answer in silent mode automatically. If you answer with yes then it first asks for the TCP port to be used then it asks the places for different Apache files. The default answers to the file place questions represent the default Apache installation according to the operating system. Finally it asks the authentication method to be used, presenting the available options between the parenthesises. The description of the authentication methods is in the section 13.1.2 WEB authentication configuration. The installer then starts the Apache WEB server. QUESTION : Do you want to configure the Apache WEB server (Y/N) [Y]: INFO : Configuring Apache QUESTION : On which port should Apache listen [80]: QUESTION : Where is the Apache apachectl file [/usr/sbin/apachectl]: QUESTION : Where is the Apache htpasswd file [/usr/bin/htpasswd]: QUESTION : Where is the Apache pid file [/var/run/httpd/httpd.pid]: QUESTION : Where is the Apache httpd.conf file [/etc/httpd/conf/httpd.conf]: QUESTION : Where is the Apache 00-mpm.conf file [/etc/httpd/conf.modules.d/00-mpm.conf]: QUESTION : Authentication method to be used (cas, keycloak, ldap, password_file, radius) [password_file]: INFO : Creating backup /usr/sbin/apachectl.prePerformanceVisor from /usr/sbin/apachectl INFO : Creating backup /etc/httpd/conf/httpd.conf.prePerformanceVisor from /etc/httpd/conf/httpd.conf INFO : Creating backup /etc/httpd/conf/httpd.conf-mpm_conf.prePerformanceVisor from /etc/httpd/conf.modules.d/00-mpm.conf INFO : Stopping Apache INFO : Creating a new /etc/httpd/conf/httpd.conf INFO : Using custom authentication: password_file INFO : Starting Apache If we have chosen ldap, radius, cas or keycloak authentication method then the application asks further questions after the Apache configuration. Every question asks for a parameter described at the authentication method. When more than one value can be given then the installer asks as long as a non-empty value is given, i.e. the user must hit ENTER without giving a value to end the specification for that variable. The parameters asked for during the installations are the following in the same order (see the 13.1.2 WEB authentication configuration section for their descriptions): · LDAP o ldap_url o timeout o bind_dn o bind_pwd o base_dn o search_attr o auth_attr o admin_dn o group o user o dn o filter_attr · RADIUS o host o secret o timeout o admin o user · CAS o server o timeout o allow_logout · Keycloak o realm_url o timeout o client_id o client_secret o admin_username o create_pvsr_user o overwrite_pvsr_group The installer shows the content of the pvsr_auth.cfg file without the first line after all the parameters were given and it also tests the given connection parameters in case of the LDAP and the Keycloak authentication engine. It is important to mention that even if the pvsr_auth.cfg file existed before the configuration, the installer will not parse it and will not display default values accordingly. However in this case it creates a pvsr_auth.cfg.backup copy in the same directroy where the pvsr_auth.cfg file is, before starting the Apache configuration. 9. Automatic starting and stopping The installer application places scripts in the appropriate folder so that PVSR can be automatically started and stopped or in the case of OS version 8 or later the installer uses the systemctl to create a so-called service. If you are not installing a data collector server then the installer asks whether the Oracle has to be automatically started and stopped by the same script as well. You should only answer with yes if the Oracle server is running on the same machine and there isn’t any other script to start and stop Oracle. If the Oracle server is running on the same machine but such a script already exists then you have to make sure that PVSR starts after the Oracle server and stops before the Oracle server. This question is among the few yes-no questions for which the installer stores the given answer and sets the default to your previous answer when running a second time, and can accept this default answer in silent mode automatically. INFO : Creating the service script, so the operating system can automatically INFO : start and stop PerformanceVisor WARNING : !!! YOU SHOULD ONLY ANSWER YES TO THE FOLLOWING QUESTION IF !!! WARNING : !!! THE ORACLE DATABASE RUNS ON THIS SERVER AND YOU DO NOT !!! WARNING : !!! HAVE ALREADY A START/STOP SCRIPT FOR THE ORACLE !!! QUESTION : Should this script start/stop the Oracle server as well (Y/N) [Y]: n WARNING : !!! IF THE ORACLE RUNS ON THIS SERVER THEN MAKE SURE THAT !!! WARNING : !!! IT STARTS BEFORE THE APPLICATION AND STOPS AFTER THE !!! WARNING : !!! APPLICATION !!! WARNING : You should register the central modules on the PerformanceVisor UI with the host parameter localhost.localdomain or localhost INFO : Creating /etc/systemd/system/pvsr.service INFO : Enabling pvsr.service 10. Creating the PVSR tablespaces and the Oracle user If you are not installing a data collector and the Oracle schema isn’t created yet - i.e. you are installing a new PVSR - then the installer asks the name, file name and size parameters for its configuration tablespace then asks the same parameters for its data tablespace and at last the name and password for its Oracle user. The installer creates the tablespaces according to its needs, but you can also create them manually and give their names to the installer. If you decide to create the tablespaces manually then please refer to the section 13.1.5.2. INFO : Checking Oracle schema INFO : Getting the default tablespace directory QUESTION : PerformanceVisor Conf tablespace name [PVSR_CONF]: QUESTION : PerformanceVisor Conf tablespace file [/opt/oracle/oradata/pvsr/PVSR_CONF.dbf]: QUESTION : PerformanceVisor Conf tablespace size [300M]: INFO : Creating the tablespace PVSR_CONF, this could take several minutes INFO : Oracle tablespace PVSR_CONF created QUESTION : PerformanceVisor Data tablespace name [PVSR_DATA]: QUESTION : PerformanceVisor Data tablespace file [/opt/oracle/oradata/pvsr/PVSR_DATA_01.dbf]: QUESTION : PerformanceVisor Data tablespace size [10000M]: 100m INFO : Creating the tablespace PVSR_DATA, this could take several minutes INFO : Oracle tablespace PVSR_DATA created QUESTION : PerformanceVisor Oracle user name [PVSR]: QUESTION : PerformanceVisor Oracle user password [******]: INFO : Creating the Oracle schema, this could take several minutes INFO : Modifying the MAXSIZE of the undo file /opt/oracle/oradata/pvsr/undotbs01.dbf to 10G Oracle user PVSR created 11. Finishing the installation Finally the installer exists. INFO : Installer ended 13.1.3.3 UninstallationTo uninstall PVSR run the UninstallPerformanceVisor application in its directory. You have to stop every PVSR modul before running the application. You have to run the application as root. Before actually beginning with the uninstallation the application asks whether the given parameters are correct. INFO : Command line parameters: INFO : Uninstaller started INFO : LOG file: /tmp/pvsr.install.log INFO : Checking perl version INFO : Found perl: /usr/local/bin/perl INFO : Checking OS type INFO : OS: Linux_x86 INFO : Extracting files into the temp directory: /tmp/pvsr INFO : Done INFO : Using the following values INFO : OS user: pvsr INFO : OS home directory: /opt/pvsr INFO : PerformanceVisor directory: /opt/pvsr QUESTION : Are these values correct (Y/N) [Y]: After this it asks whether the Oracle user should be deleted or not. If you answer with yes then it asks for the Oracle operating system user and for the value of the ORACLE_HOME environment variable then asks a second confirmation before actually dropping the user. If the user is dropped then it asks whether you want to drop its tablespaces. INFO : Searching for running PerformanceVisor modules QUESTION : Do you want to drop the Oracle user PVSR (Y/N) [N]: y QUESTION : The OS user of Oracle [oracle]: INFO : Found Oracle home: "/opt/oracle/product/10.2.0/db_1" QUESTION : ORACLE_HOME environment variable [/opt/oracle/product/10.2.0/db_1]: INFO : Checking the Oracle home /opt/oracle/product/10.2.0/db_1 INFO : Oracle home /opt/oracle/product/10.2.0/db_1 seems to be OK INFO : Checking Oracle version INFO : Found Oracle version 10 INFO : Detected 32-bit Oracle QUESTION : Oracle SYSTEM user password []: CONFIRM : Confirm the password: INFO : If you drop the Oracle user PVSR then your measurement data will be gone forever QUESTION : Are you sure that you want to drop Oracle user PVSR (Y/N) [N]: y INFO : Dropping the Oracle user PVSR, this could take several minutes INFO : User dropped. INFO : Done QUESTION : Do you want to drop the Oracle tablespace PVSR_DATA (Y/N) [N]: y INFO : Dropping the Oracle tablespace PVSR_DATA, this could take several minutes INFO : Tablespace dropped. INFO : Done QUESTION : Do you want to drop the Oracle tablespace PVSR_CONF (Y/N) [N]: y INFO : Dropping the Oracle tablespace PVSR_CONF, this could take several minutes INFO : Tablespace dropped. INFO : Done It asks whether you want to roll back the Apache configuration. QUESTION : Do you want to restore the Apache configuration (Y/N) [N]: y QUESTION : Where is the Apache httpd.conf file [/etc/httpd/conf/httpd.conf]: QUESTION : Where is the Apache apachectl file [/usr/sbin/apachectl]: INFO : Stopping Apache INFO : Restoring /etc/httpd/conf/httpd.conf from /etc/httpd/conf/httpd.conf.prePerformanceVisor INFO : Done INFO : Restoring /usr/sbin/apachectl from /usr/sbin/apachectl.prePerformanceVisor INFO : Done Then it asks whether to delete the installation directory and if yes then whether to delete the operating system user as well. QUESTION : Do you want to delete the entire /opt/pvsr directory (Y/N) [N]: y INFO : Deleting the directory /opt/pvsr INFO : Deleting any S??pvsr files in the /etc/rc*d directories INFO : Deleting any K??pvsr files in the /etc/rc*d directories INFO : Deleting the file: /etc/init.d/pvsr INFO : Done QUESTION : Do you want to delete the user pvsr (Y/N) [N]: y INFO : Deleting the user pvsr INFO : Deleting the group pvsr INFO : Deleting the directory /opt/pvsr INFO : Done |