Archive for the ‘Linux’ Category

Do initrd dance before turning Linux physical server into VM

If one day you decide to convert your physical server to a VM, which could be easily achieved if all its disks are presented from SAN, then don’t forget to rebuild initrd beforehand. Otherwise you would see something similar to this: No device found Scanning and configuring dmraid supported devices Scanning logical volumes Reading all […]

Posted on April 17, 2016 at 8:19 pm by sergeyt · Permalink · Leave a comment
In: Linux

Workaround for Tomcat7 on Linux, JDBC and javax.naming.NamingException

A few days ago I was dabbling with JDBC and Tomcat7 and the configuration that seemingly had no issues resulted in the following error in the log file: org.apache.catalina.core.NamingContextListener addResource WARNING: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory] Thankfully, Google pointed me to this post […]

Posted on February 19, 2016 at 2:53 pm by sergeyt · Permalink · 2 Comments
In: Linux

Interview fizzle as a chance to get better

Not a long ago I had one of those humiliating moments when a simple question makes you numb a or even worse – you begin to mumble an absolute rubbish. That is exactly what has happened to me recently and being an afterthought person (which, of course, doesn’t give me any advantage) I decided to […]

Posted on December 2, 2015 at 2:19 pm by sergeyt · Permalink · Leave a comment
In: Life, Linux

Configuring FCoE in Linux (RHEL) and HP FlexFabric

Actually it’s easy. Very easy indeed, like going 1, 2, 3. Collect information about MAC addresses to distinguish pure Ethernet NICs and CNA that will pass FCoE traffic. The latter have both MAC and WWN addresses. Power on a server and update /etc/udev/rules.d/70-persistent-net.rules if required. Activate new dev rules: Install fcoe-utils and lldpad packages: Rename […]

Posted on April 23, 2015 at 12:31 pm by sergeyt · Permalink · 4 Comments
In: Linux

OpenSSL TLS 1.1 and wrong version number

If you, like myself, have been living under a rock you’d be also surprised to know that OpenSSL didn’t support TLSv1.1 and TLSv1.2 until version 1.0.1 . Found out that accidently by trying to disable TLSv1 in Nginx which was running on a RHEL5 box with OpenSSL 0.9.8e. Below is how TLS handshake looked when […]

Posted on February 20, 2015 at 11:15 am by sergeyt · Permalink · Leave a comment
In: Linux

Linux pptp stumbling blocks that I was hit by

While configuring a pptp on a Linux box I bumped into the several smalish issues which I’d like to blog about. Make sure that your network engineers have enabled traffic inspection on all intermediate firewalls between tunnel’s endpoints. Otherwise LCP won’t be able to finish its configuration negotiation phase even if the control channel on […]

Posted on February 18, 2015 at 9:13 pm by sergeyt · Permalink · Leave a comment
In: Linux

What the heck are all those terms – PV, HVM, HVM with PV drivers, PVHVM, PVH?

If you have to deal with Xen from time to time and not on a permanent basis and want to refresh the difference between all those Xen modes, I strongly encourage everyone to read the following two outstanding articles: The Paravirtualization Spectrum, part 1: The Ends of the Spectrum The Paravirtualization Spectrum, Part 2: From […]

Posted on August 22, 2014 at 12:37 pm by sergeyt · Permalink · One Comment
In: FreeBSD, Linux

Default Linux I/O multipathd configuration, SCSI timeout and Oracle RAC caveat

I’ve been recently involved in a project to migrate from old and rusty Cisco MDS 9222i to the new MDS 9506 SAN switches and during the first phase of the migration the primary node in a two-node Oracle RAC cluster lost access to its voting disks and went down. And that’s when only half paths […]

Posted on June 7, 2014 at 4:46 pm by sergeyt · Permalink · One Comment
In: Linux, Oracle

Matching Oracle ASM disks names with the physical devices

Quite often it’s required to find a physical device which backs up ASM disk. The easiest way a Linux administrator could accomplish that is by using oracleasm command (of course, if ASMlib was used to create them): # oracleasm listdisks ASMARCHIVE1 ASMARCHIVE2 ASMARCHIVE3 ASMDATA1 ASMDATA2 ASMDATA3 OCR1 OCR2 VOTEDISK1 VOTEDISK2 VOTEDISK3 # oracleasm querydisk -p […]

Posted on October 8, 2013 at 11:40 pm by sergeyt · Permalink · Leave a comment
In: Linux

Openfire. Migrating from HSQLDB to MySQL.

The other day, I had to migtate Openfire from HSQLDB to MySQL using MySQL Migration tool and below just a couple tips that could save a bit of your time if you up to the same task: I used Windowds XP. MySQL Migration tool has been EOLed but it is still available from mysql.com. Java […]

Posted on August 14, 2013 at 10:24 am by sergeyt · Permalink · Leave a comment
In: Linux