Author: Grzegorz Juszczak

OpenStack: Create Instance Snapshot to backup or migrate Instance

openstack: create instance snapshot to migrate or restore instance
OpenStack Snapshots can be utilized to backup Instance before some critical changes are made on Instance OS or to migrate Instance to the new OpenStack Cloud.
In this tutorial we will create snapshot from existing Instance to launch it in different Cloud, but you can also create snapshot just to backup the Instance and restore it’s state later in the same Cloud, if needed.
Read More

How to Extend Subnet Allocation Pool in OpenStack

extend subnet IP allocation pool in neutron
After OpenStack installation it can turn out, that the IP allocation pool of the subnet, we have just created is too small. If the allocation pool refers to public / provider network, we will quickly run out of free Floating IPs. Moreover, OpenStack Dashboard (Horizon) doesn’t provide the ability to extend or modify subnet IP alocation pool of already created subnet with already allocated IPs. But we can use dirty workaround and manually edit MariaDB which stores Openstack configuration data.
Read More

Encrypt Linux Partition using LUKS cryptsetup

encrypt linux volume using luks cryptsetup
LUKS (Linux Unified Key Setup) is encryption standard designed for Linux to encrypt Linux volumes or partitions. The implementation of LUKS is based on cryptsetup script as a basic disk encryption backend tool.

In this tutorial we will create Linux partition on KVM based CentOS 7, encrypt partition using LUKS cryptsetup and mount it permanently in particular mount point.
Read More

Extend LVM Volume Group with the new Hard Disk

Extend LVM Volume Group
One of the benefits of LVM (Logical Volume Manager) is the possibility to extend LVM based storage by adding new Physical Volumes which together form LVM Volume Group. Adding new Physical Volume increases the capacity of the whole Volume Group by the capacity of that particular Physical Volume and can be performed online without any outages in LVM activity.
Read More

Backup and Restore Logical Volume using LVM Snapshot

Backup Restore LVM using Snapshot
LVM (Logical Volume Manager) gives us the ability to create Snapshots. LVM Snapshot is a logical volume that temporarily preserves the original data of changing logical volume, so it’s data can be backed up preserving consistency. Snapshot must be created prior to any critical modifications on the Logical Volume in order to fulfill it’s role.

Note: Snapshot Volume needs to be large enough to store the data that will change while it exists. If more data changes than the Snapshot can hold, the Snapshot will become unusable. That means we have to “predict” how much data will be changed on the original Volume while the Snapshot exists to let the Snapshot hold all those data changes.
Read More

Install Nagios Core from RPM on CentOS 7 / RHEL 7

nagios_logo
Nagios is a free software, which offers monitoring and alerting services for servers, switches, applications and services.

This tutorial describes simple Nagios Core and Nagios Plugins installation from rpm packages on CentOS 7 / RedHat 7. There is no need to configure and compile Nagios Core tar.gz based source files unless you really need the newest version.
Read More

OpenStack Kilo 3 Node Installation (Controller, Network, Compute) on CentOS 7

install openstack on three nodes
In this tutorial we will install OpenStack Kilo release from RDO repository on three nodes (Controller, Network, Compute) based on CentOS 7 operating system using packstack automated script. The following installation utilizes VLAN based internal software network infrastructure for communication between instances.

Environment used:
public network (Floating IP network): 192.168.2.0/24
internal network (on each node): no IP space, physical connection only (eth1)
controller node public IP: 192.168.2.12 (eth0)
network node public IP: 192.168.2.13 (eth0)
compute node public IP: 192.168.2.14 (eth0)
OS version (each node): CentOS Linux release 7.2.1511 (Core)
install openstack on 3 nodes
Read More

Register Red Hat 7 using Subscription Manager via Proxy

Register Red Hat 7 using Subscription Manager via Proxy
Once our Red Hat 7 system is installed, it should be registered at RHN using Subscription Manager in order to be able to get newest updates. If the server is placed in network behind firewall and outgoing traffic is blocked by firewall, the only reliable way of keeping our Red Hat 7 up-to-date is through proxy (if any exists).
Below we will show you in 2 simple steps, how to configure HTTP Proxy for Red Hat Subscription Manager and register Red Hat 7 with RHN in command line using HTTP Proxy:
Read More

nethogs – Display Network Utilization per Process

ethernet_card
Have you ever wondered how to check network utilization by PID in Linux? Now it’s easy with nethogs application, which unlike other network utilization monitoring applications (nload, iftop) works like Linux top command, but displays network utilization per PID along with the network device used.

nethogs
Read More

OpenStack: Failed to connect to server (code: 1006)

install openstack on three nodes
In OpenStack Dashboard (Horizon), when I launch an Instance and I am trying to connect to the Instance via Dashboard VNC Console – I am getting error: Failed to connect to server (code: 1006). This is most often caused by improper /etc/nova/nova.conf configuration on Compute node, where the Instance is running:

openstack_vnc_failed_to_connect_to_server_code_1006
Read More