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

Test Outbound Connectivity on VCSA using Telnet

October 25, 2018 Jordansphere VMware

By default, telnet is not installed in the VCSA appliance. In fact its not installed in most VMware appliances. However there is a work around to test connectivity by using CURL Syntax: curl -v telnet://host:port   Here are a couple of examples: curl -v telnet://www.google.co.uk:443 curl -v telnet://my.amqpserver:5672  

More

curl, telnet, vcsa, vmware appliance,

Apply New Certificate to Tenant App Portal for vCloud Director

October 25, 2018 Jordansphere vCloud Director

Here are the steps to apply a new certificate to the tenant portal app (1.2.0)   1. Login into the appliance using the vsphere Web Client using the root username Note: I could not find any documentation on what the root password was so I had to reset the password by entering the GRUB menu.and booting […]

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

Migrate vCloud Director Database from MSSQL to Postgres

October 24, 2018 Jordansphere MS SQL

As vcloud director 9.5 is the last iteration to support MS SQL we decided to migrate the database to Postgres Here are the instructions to migrate the database   Pre-requisites 1) Snapshot all Cells 2) Snapshot MSSQL DB 3) Backup MSSQL DB   Procedure: 4) Shutdown all cells  service vmware-vcd stop      5) On […]

More

Configure Load Balancer on NSX Edge

October 4, 2018 Jordansphere NSX

The following guide describes how to set up LB on an NSX 6.4.1 Edge   1. Click Manage tab -> Load Balancer -> Edit -> Global Configuration -> Enable Load Balancer -> Enable Logging       2. Under Pools -> Select + (sign) -> {Enter details like below}  3. Click + (sign) -> {Enter details like […]

More

Adding vNICs in UCS Causes vmnic Reorder in ESXi 6.5

October 3, 2018 Jordansphere Cisco UCS

Problem I added two new vNics to UCS. When I rebooted I realised there was something wrong. One of my iSCSI paths was down and one of the new vmnics wasnt working at all.   Troubleshooting After much investigation it appeared that the NICS in the ESXI had been re-ordered. Looking at the UCS I […]

More

Configure RabbitMQ for vCloud Director 9

October 2, 2018 Jordansphere vCloud Director

In this example we will be using the Web interface for configuration. 1. Login via http:\\{IP}:15672 to with administrator credentials   2. When logged in. Click Exchanges tab -> Add a new exchange -> {Enter details like below}   2. Create user  Select Admin tab -> {Enter credentials like below) -> Add user   When created […]

More

rabbitmq, vcloud director 9,

Invalid PEM Data Received for Private Key – NSX Edge

September 25, 2018 Jordansphere NSX

Problem   When attempting to import an SSL certificate into an NSX Edge firewall I got the following error: Invalid PEM data received for private key     Resolution The private key was in PKCS#8 which is not a valid type for import. Export it to PKCS#1 using the following command: openssl rsa -in original.key -out […]

More

« Previous Posts

Powered by WordPress. Designed by elogi.