Problem A CentOS VM was rebooted but failed to start with the following error: /dev/mapper/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/mapper/VolGroup-lv_root 3 Reboot system # reboot
Category: Linux
Backup Postgres DB and Rotate using Logrotate – CentOS
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 Read More…
Install NRPE on CentOS 7
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) Read More…
Install Postgres 10 for vCloud Director 9.5
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. Read More…
Install RabbitMQ for vCloud Director 9
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 Read More…
How to Setup NTP on CentOS 7
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. # Read More…
Installing Puppet Agent on Ubuntu 16.04
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 Read More…
Zabbix Graphs Showing Incorrect Time
Problem: After a new installation of Zabbix (appliance) 3.4.6 the time on the graphs were 2 hours ahead. The clock on the server was correct. Solution Edit Zabbix configuration file vi /etc/apache2/conf-enabled/zabbix.conf It appeared the timezone in the Zabbix settings is set to Europe/Riga Change php_value date.timezone Europe/Riga to you actual timezone for Read More…
Install Zabbix Agent on CentOS
The following describes how to install Zabbix agent 3.4.6 onto CentOS 6.9 1) Add Zabbix Repository rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/6/x86_64/zabbix-release-3.4-1.el6.noarch.rpm 2) Install Zabbix yum install -y zabbix-agent 3) . Edit zabbix_agentd.conf vi /etc/zabbix/zabbix_agentd.conf Server={Zabbix_Monitoring_server} Hostname={your_server_name} 4) Start Zabbix agent service service zabbix-agent start 5) Add Zabbix Agent service to start up scripts Read More…
Reset Lost Root Password – CentOS 7
Issue: I lost the password for my CentOS 7 virtual machine in my cloud VDC. Resolution: To reset the root password we will firstly need to boot into single user mode. Use the following steps: 1) Reboot the VM. During startup press "e" in grub menu 2. Find the line starting with linux16. Read More…
You must be logged in to post a comment.