Difference between revisions of "Set-up for Oracle Linux 8"

From Observer GigaFlow Support | VIAVI Solutions Inc.
Jump to: navigation, search
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category:Installation]]
 
[[Category:Installation]]
 
[[Category:Linux]]
 
[[Category:Linux]]
Perform Installation of minimal Oracle Linux 8  (https://yum.oracle.com/ISOS/OracleLinux/OL8/u4/x86_64/x86_64-boot.iso)
+
Perform minimal [http://gigaflowsupport.viavisolutions.com/index.php/Installation_Of_Oracle_Linux_8  Installation Of Oracle Linux]
  
Once installed, update all components and restart server.
 
yum -y update
 
shutdown -r now
 
  
 +
After the Oracle Linux installation you can proceed with either of the following:
 +
* run a bash script (provided in '''Bash script Section''') but your server must be able to access ''update.viavisolutions.com'', ''yum.oracle.com'' and ''yum.postgresql.org''
 +
* run the commands directly (details provided in '''Manual Installation Section''')
  
 +
 +
== Bash script ==
 +
Open the terminal enter "sudo bash", press enter and specify your password. Then run the command below
 +
bash <(curl -s https://update.viavisolutions.com/v18/ObserverGigaFlow_Install_Oracle8.4.sh)
 +
 +
When script is finished the installation is completed. For the verification go to the '''Verification''' Section
 +
 +
== Manual installation If You Do Not Want To Use The Above Script ==
 
Install optional software components
 
Install optional software components
 
  yum -y install glibc.i686
 
  yum -y install glibc.i686
Line 13: Line 21:
 
  yum -y install wget
 
  yum -y install wget
 
  yum -y install openssh-clients
 
  yum -y install openssh-clients
yum -y install lynx
 
 
  yum -y install perl
 
  yum -y install perl
 
  yum -y install chkconfig
 
  yum -y install chkconfig
Line 25: Line 32:
 
  yum -y install sysstat
 
  yum -y install sysstat
 
  yum -y install iptraf
 
  yum -y install iptraf
  yum -y install rsync
+
  yum -y install rsync  
  
 +
Create the GigaFlow user
 +
sudo groupadd -r viavi
 +
sudo useradd -r -s /bin/false -g viavi gigaflow
  
 
Please ensure that DNS is also configured for your network.
 
Please ensure that DNS is also configured for your network.
 +
 +
Enable network access by running the firewalld commands from [[Firewall_Management_in_Linux]]
  
 
Make folder to hold GigaFlow and related software.
 
Make folder to hold GigaFlow and related software.
Line 37: Line 49:
  
 
Download Java and link to standard location
 
Download Java and link to standard location
  wget http://builds.anuview.net/beta/jre-8u202-linux-x64.rpm
+
  curl -o jre-8u202-linux-x64.rpm https://update.viavisolutions.com/v18/jre-8u202-linux-x64.rpm
 
  rpm -i jre-8u202-linux-x64.rpm
 
  rpm -i jre-8u202-linux-x64.rpm
 
  ln -s /usr/java/jre1.8.0_202-amd64/ /opt/java
 
  ln -s /usr/java/jre1.8.0_202-amd64/ /opt/java
Line 50: Line 62:
  
 
'''Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)'''
 
'''Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)'''
 
 
 
  
  
 
Install postgres
 
Install postgres
//Current
 
//Add Postgres Yum Repository
 
 
  rpm -Uvh https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
 
  rpm -Uvh https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
//Disable Appstream
 
 
  dnf -qy module disable postgresql  
 
  dnf -qy module disable postgresql  
 
  yum install postgresql11-server postgresql11 -y
 
  yum install postgresql11-server postgresql11 -y
 
 
  /usr/pgsql-11/bin/postgresql-11-setup initdb
 
  /usr/pgsql-11/bin/postgresql-11-setup initdb
 
  systemctl start postgresql-11.service
 
  systemctl start postgresql-11.service
 
  systemctl enable postgresql-11.service
 
  systemctl enable postgresql-11.service
 
  mv /var/lib/pgsql/11/data/pg_hba.conf /var/lib/pgsql/11/data/pg_hba.conf.orig
 
  mv /var/lib/pgsql/11/data/pg_hba.conf /var/lib/pgsql/11/data/pg_hba.conf.orig
  wget -O /var/lib/pgsql/11/data/pg_hba.conf http://95.85.35.209/software/build/pg_hba.conf
+
  curl -o /var/lib/pgsql/11/data/pg_hba.conf https://update.viavisolutions.com/v18/ObserverGigaFlow_pg_hba.conf.txt
 
  systemctl stop postgresql-11.service
 
  systemctl stop postgresql-11.service
 
  systemctl start postgresql-11.service
 
  systemctl start postgresql-11.service
Line 73: Line 78:
 
If asked, Leave port as 5432, enter password as P0stgr3s_2ME, set started at boot = y
 
If asked, Leave port as 5432, enter password as P0stgr3s_2ME, set started at boot = y
  
Download Anuview software
+
Download GigaFlow Software
  wget -p http://95.85.35.209/software/ros_unix.tgz  
+
  curl -o ObserverGigaFlowUnixx64.tgz https://update.viavisolutions.com/latest/ObserverGigaFlowUnixx64.tgz
  tar -vxzf /opt/software/95.85.35.209/software/ros_unix.tgz -C /
+
  tar -vxzf ./ObserverGigaFlowUnixx64.tgz -C /
  
 
If this is a new installation, copy the service files
 
If this is a new installation, copy the service files
  cp /opt/ros/resources/unix/rosd /etc/init.d/
+
  chown -R gigaflow:viavi /opt/ros
  cp /opt/ros/resources/unix/start /opt/ros/resources/
+
  cp /opt/ros/resources/unix/gigaflow.service /etc/systemd/system/
  chmod 755 /etc/init.d/rosd
+
  systemctl daemon-reload
  chmod 755 /opt/ros/resources/start
+
  systemctl enable gigaflow
  chmod 755 /opt/ros/resources/docs/sql/createmyipfixdb.sh
+
  systemctl start gigaflow.service
  chkconfig --add rosd
+
  journalctl -u gigaflow.service
chkconfig --level 345 rosd on
+
  
Initialise the anuview database
+
Initialise the gigaflow database
 +
chmod 755 /opt/ros/resources/docs/sql/createmyipfixdb.sh
 
  su - postgres < /opt/ros/resources/docs/sql/createmyipfixdb.sh
 
  su - postgres < /opt/ros/resources/docs/sql/createmyipfixdb.sh
  
 +
Start the service GigaFlow service
 +
  systemctl start gigaflow.service
  
== //Installation now complete!! ==
+
The installation is completed. For the verification go to the '''Verification''' item
  
Start the service anuview service (rosd)
+
== Verification ==
/etc/init.d/rosd restart
+
  
 
You should now be able to access the application on http://IP_ADDRESS:7902
 
You should now be able to access the application on http://IP_ADDRESS:7902
Line 113: Line 119:
 
|}
 
|}
  
'''Additional Information'''
+
== Additional Information ==
  
Scheduler
 
echo "cfq" > /sys/block/sda/queue/scheduler
 
 
alter/add /etc/sysctl.d/swappiness.conf and set vm.swappiness = 10
 
  
 
If you want to move an existing data folder to a new location (i.e. to a larger partition) you can use
 
If you want to move an existing data folder to a new location (i.e. to a larger partition) you can use
  
e.g. move existing data folder to new location (/home/postgresdata) and link back to original /opt/postgresql/pg95/data
+
e.g. move existing data folder to new location (/home/postgresdata) and link back to original /var/lib/pgsql/11/data
 
+
We have to be careful here if SELinux is enbaled to allow the new location via the semanage and restorecon commands shown below.
+
/etc/init.d/postgresql-95 stop
+
cp -rp /var/lib/pgsql/10//data /home/postgresdata/
+
mv /var/lib/pgsql/10//data /opt/postgresql/pg95/data_orig
+
ln -s /home/postgresdata/data/ /var/lib/pgsql/10/data
+
semanage fcontext -a -t postgresql_db_t '/home/postgresdata(.*/)?'
+
restorecon -R /home/postgresdata
+
/etc/init.d/postgresql-95 start
+
 
+
Once the move is complete and everything is confirmed working, you can remove the copy of the data folder (i.e. /opt/postgresql/pg95/data_orig) to reclaim that disk space.
+
 
+
 
+
  
******Old postgres install, should not be required but if it is
+
systemctl stop gigaflow
Download postgres
+
systemctl stop postgresql-11
  wget http://95.85.35.209/software/postgresql-9.5.3-1-x64-bigsql.rpm
+
  rsync -av /var/lib/pgsql/11/data/ /data/gigaflow
 +
mv /var/lib/pgsql/11/data /var/lib/pgsql/11/data_old
 +
ln -s /data/gigaflow /var/lib/pgsql/11/data
 +
chown postgres:postgres /var/lib/pgsql/11/data
 +
chmod 0700 /var/lib/pgsql/11/data
 +
systemctl start postgresql-11
 +
systemctl start gigaflow
  
  
// rpm -i postgresql-9.5.3-1-x64-bigsql.rpm
+
'''Appliance '''
// /etc/init.d/postgresql-95 start
+
Download recommended settings for postrges
+
/etc/init.d/postgresql-95 stop
+
mv /opt/postgresql/pg95/data/pg_hba.conf /opt/postgresql/pg95/data/pg_hba.conf.orig
+
mv /opt/postgresql/pg95/data/postgresql.conf /opt/postgresql/pg95/data/postgresql.conf.orig
+
wget -O /opt/postgresql/pg95/data/pg_hba.conf http://95.85.35.209/software/build/pg_hba.conf
+
wget -O /opt/postgresql/pg95/data/postgresql.conf http://95.85.35.209/software/build/postgresql.conf
+
/etc/init.d/postgresql-95 start
+

Latest revision as of 13:40, 16 March 2022

Perform minimal Installation Of Oracle Linux


After the Oracle Linux installation you can proceed with either of the following:

  • run a bash script (provided in Bash script Section) but your server must be able to access update.viavisolutions.com, yum.oracle.com and yum.postgresql.org
  • run the commands directly (details provided in Manual Installation Section)


Contents

Bash script

Open the terminal enter "sudo bash", press enter and specify your password. Then run the command below

bash <(curl -s https://update.viavisolutions.com/v18/ObserverGigaFlow_Install_Oracle8.4.sh)

When script is finished the installation is completed. For the verification go to the Verification Section

Manual installation If You Do Not Want To Use The Above Script

Install optional software components

yum -y install glibc.i686
yum -y install man
yum -y install wget
yum -y install openssh-clients
yum -y install perl
yum -y install chkconfig
yum -y install perl-CPAN
yum -y install perl-DBD-Pg
yum -y install tcpdump
yum -y install net-snmp-utils net-snmp
yum -y install net-tools
yum -y install dstat
yum -y install iotop
yum -y install sysstat
yum -y install iptraf
yum -y install rsync 

Create the GigaFlow user

sudo groupadd -r viavi
sudo useradd -r -s /bin/false -g viavi gigaflow

Please ensure that DNS is also configured for your network.

Enable network access by running the firewalld commands from Firewall_Management_in_Linux

Make folder to hold GigaFlow and related software.

mkdir /opt
mkdir /opt/software
cd /opt/software

Download Java and link to standard location

curl -o jre-8u202-linux-x64.rpm https://update.viavisolutions.com/v18/jre-8u202-linux-x64.rpm
rpm -i jre-8u202-linux-x64.rpm
ln -s /usr/java/jre1.8.0_202-amd64/ /opt/java

Check that java has installed

/opt/java/bin/java -version

Should output

java version "1.8.0_202"

Java(TM) SE Runtime Environment (build 1.8.0_202-b08)

Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)


Install postgres

rpm -Uvh https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
dnf -qy module disable postgresql 
yum install postgresql11-server postgresql11 -y
/usr/pgsql-11/bin/postgresql-11-setup initdb
systemctl start postgresql-11.service
systemctl enable postgresql-11.service
mv /var/lib/pgsql/11/data/pg_hba.conf /var/lib/pgsql/11/data/pg_hba.conf.orig
curl -o /var/lib/pgsql/11/data/pg_hba.conf https://update.viavisolutions.com/v18/ObserverGigaFlow_pg_hba.conf.txt
systemctl stop postgresql-11.service
systemctl start postgresql-11.service

If asked, Leave port as 5432, enter password as P0stgr3s_2ME, set started at boot = y

Download GigaFlow Software

curl -o ObserverGigaFlowUnixx64.tgz https://update.viavisolutions.com/latest/ObserverGigaFlowUnixx64.tgz
tar -vxzf ./ObserverGigaFlowUnixx64.tgz -C /

If this is a new installation, copy the service files

chown -R gigaflow:viavi /opt/ros
cp /opt/ros/resources/unix/gigaflow.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable gigaflow
systemctl start gigaflow.service
journalctl -u gigaflow.service

Initialise the gigaflow database

chmod 755 /opt/ros/resources/docs/sql/createmyipfixdb.sh
su - postgres < /opt/ros/resources/docs/sql/createmyipfixdb.sh

Start the service GigaFlow service

 systemctl start gigaflow.service

The installation is completed. For the verification go to the Verification item

Verification

You should now be able to access the application on http://IP_ADDRESS:7902

The default user is "admin" and the default password is "admin"

Linux Startup Settings

This is the login page for GigaFlow, the default login credentials are Username:admin and Password:admin

On this page you can also see details about the current version of Gigaflow which you are accessing.

Gigaflow install login.PNG
When you log in for the first time, you will be prompted for some information.

Server name is the name that you want to know this server as. It doesn't have to be the servers hostname. This name will appear in the web browser title bar. Minimum Free Space tells GigaFlow what the minimum free space that it should try to maintain on the disk (before purging old data). This should typically be 10% of your total disk space.

Gigaflow install initial setup.PNG

Additional Information

If you want to move an existing data folder to a new location (i.e. to a larger partition) you can use

e.g. move existing data folder to new location (/home/postgresdata) and link back to original /var/lib/pgsql/11/data

systemctl stop gigaflow
systemctl stop postgresql-11
rsync -av /var/lib/pgsql/11/data/ /data/gigaflow
mv /var/lib/pgsql/11/data /var/lib/pgsql/11/data_old
ln -s /data/gigaflow /var/lib/pgsql/11/data
chown postgres:postgres /var/lib/pgsql/11/data
chmod 0700 /var/lib/pgsql/11/data
systemctl start postgresql-11
systemctl start gigaflow


Appliance