Linux

Script to Customize CentOS 7 Install in a VMware Environment

September 16, 2019 Jordansphere Linux

#!/bin/bash echo "#######################################################################"; echo "This script will Update the OS, install useful tools and configure NTP"; echo "#######################################################################"; #Update OS yum update -y #install useful tools yum install telnet -y yum install bind-utils -y # install vmware tools yum install -y open-vm-tools systemctl enable vmtoolsd.service systemctl start vmstoolsd.service # Disable selinux sed -i 's/^SELINUX=.*/SELINUX=disabled/g' /etc/sysconfig/selinux […]

More

Route Commands on ESXi, VCSA, Linux & Windows

August 28, 2019 Jordansphere Linux

Sample route commands    Windows Show routing table route print Add a persistent route ROUTE -p ADD 10.10.129.0 MASK 255.255.255.0 10.5.72.254   ESXi Show routing table esxcfg-route -l  Show routing table for specific stack esxcfg-route -l -N (stack name) Add route esxcli network ip route ipv4 add –gateway 10.5.72.254 –network 10.10.129.0/24   VCSA Show routing […]

More

routing table ESxi, routing table Linux, routing table VCSA, routing table Windows, static route Centos,

Upgrade Zabbix from 3.4 to 4.0 with Pacemaker/Corosync

February 6, 2019 Jordansphere Linux

Here are the instructions for upgrading Zabbix from 3.4 to 4.0 in a HA setup in a  Pacemaker and Corosync environment. In this particular setup there are 6 servers – depicted below Two web front ends Two Zabbix Servers Two DB servers   Steps Pre-requisite: As this was running in a VMware environment I snapshotted each […]

More

3.4 to 4.0, corosync, pacemaker, Upgrade Zabbix,

UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY

December 6, 2018 Jordansphere Linux

Problem A CentOS VM was rebooted but failed to start with the following error: /dev/ampper/VolGroup-lv_root: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY Solution 1)  Enter CLI {Enter root password} 2) Run filesystem check . In my case. # fsck -y /dev/ampper/VolGroup-lv_root 3 Reboot system # reboot  

More

Backup Postgres DB and Rotate using Logrotate – CentOS

November 5, 2018 Jordansphere Linux

Here is a rudimentary script to backup a specific Postgres DB. Logrotate then takes care of the log rotation. As you'll see below we will keep 7 days worth of compressed files.   #! /bin/bash # This script is called from logrotate /etc/logrotate.d/my-dumps # It backs up myDB every evening and logrotate takes care of compression […]

More

automatically backup postrgres database,

Install NRPE on CentOS 7

October 26, 2018 Jordansphere Linux

1) Install required packages yum -y install wget openssl-devel 2)  Download latest NRPE agent   cd /tmp wget http://assets.nagios.com/downloads/nagiosxi/agents/linux-nrpe-agent.tar.gz   3)  Unzip NRPEagent tar xzf linux-nrpe-agent.tar.gz 4)  Install agent   cd linux-nrpe-agent ./fullinstall You will get asked which hosts to add. include your Nagios Server here In this case my Nagios server is 10.0.0.50 6)  […]

More

Install Postgres 10 for vCloud Director 9.5

October 25, 2018 Jordansphere Database

Here are the steps to install Postgres 10 on CentOS 7 Spec: OS:          CentOS 7 DB:          Postgres 10.x RAM:       16GB vCPU:      4 HDD:       100 GB   OS Installation: Use Guided GUI installation. Select to partition manually so that all data is on /root LVM.    […]

More

Install RabbitMQ for vCloud Director 9

September 19, 2018 Jordansphere Linux

Here are the step-by-step instructions to install RabbitMQ. This install will be used for a vCloud Director 9.1 installation. Desired versions: Rabbit MQ :  3.7.7 Erlang:          20.1.7.1 (>19.3 is required for Rabbit MQ 3.7.7)   1.   Install EPEL yum -y install epel-release   2. Create Erlang Repo vi /etc/yum.repos.d/rabbitmq-erlang.repo Inset this […]

More

How to Setup NTP on CentOS 7

September 19, 2018 Jordansphere Linux

This is a quick start guide to set up NTP on Centos 7   1. Install NTP service yum install ntp   2.  Start service systemctl start ntpd   3.  Enable service systemctl enable ntpd   4. Edit NTP configuration vi /etc/ntp.conf Edit values for "server" eg # Use public servers from the pool.ntp.org project. # […]

More

centos 7, ntp, quick guide,

Installing Puppet Agent on Ubuntu 16.04

June 19, 2018 Jordansphere Linux

Problem: When trying to install the puppet agent on an Ubuntu 16.04 server the following error appeared Command:  ​curl -k https://puppet:8140/packages/current/install.bash | sudo bash   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current Dload  Upload   Total   Spent    Left  Speed 100 25756  100 25756    0     0   162k      0 –:–:– –:–:– –:–:–  163k […]

More

« Previous Posts

Powered by WordPress. Designed by elogi.