Category Archives: Linux

TCP keepalive: what is it, why do you need it, how to configure it on #Linux

By | November 7, 2017

As you are aware, no service runs alone on some server. You always have to take into account the communication layer between your server and client services. One of the most tricky thing a lot of people overlook is the “housekeeping” of the communication layer. In a properly setup enterprise environment your communication layer (firewalls,… Read More: TCP keepalive: what is it, why do you need it,… »

Back-up of /home of a running system using lv snapshot

By | October 21, 2017

Following is a simple and easy way to do a consistent back-up of the /home directory (usually mounted in a separate partition) on a running system. We do not have the luxury of being able to stop the operations of a server and unmount the home partition to make sure no changes are done during… Read More: Back-up of /home of a running system using lv snapshot »

Linux: Save a pdf presentation to individual image slides

By | May 26, 2017

There is a very simple way to save a pdf presentation to individual jpeg images of the slides using convert. convert -density 300 presentation.pdf presentation_page_%04d.jpg where: – density 300 specifies the DPI used to read the pdf. – presentation_page_%04d.jpg is a name pattern for the saved images As a result if presentation has 20 slides… Read More: Linux: Save a pdf presentation to individual image slides »

Linux Cluster with #DRBD replication: solving “HA LVM requires Only one logical volume per volume group” issue

By | April 24, 2017

I have a RHEL 6 Linux cluster setup where the main database storage is replicated on a remote site using DRBD. In case of a failure of the primary site the decision is taken to move operations on the remote site. When the production site is back online sometimes the administrator is too eager to… Read More: Linux Cluster with #DRBD replication: solving “HA LVM requires Only… »

Solving “HA LVM: Improper setup detected * initrd image needs to be newer than lvm.conf”

By | April 24, 2017

In a Linux HA cluster setup on RHEL 6 that involves replication between sites using DRBD suddenly after reboot of one of the nodes it was imposible to start any cluster service from that node. Surprinsingly there was no issue to do so from the other node. While looking in the /var/log/messages on the affected… Read More: Solving “HA LVM: Improper setup detected * initrd image needs… »