Likewise / PowerBroker: DNS_ERROR_BAD_PACKET

If you use PowerBroker, formerly known as Likewise, then you may have experienced the following error message when performing the domainjoin-cli command: DNS_ERROR_BAD_PACKET. If you look online may people have come across this issue and have posted their version of a resolution. I have experienced this issue in the past as well, however my online searching did not readily turn up the solution to my problem.

So how can you resolve this error message?

Continue reading

Corosync: unknown error

For environments where the use of a load balancer is not feasible because of say cost or complexity I often use Corosync to provide similar functionality. Corosync is a piece of software that allows for clustering of an application to provide high availability. One issue I have often experienced with the tool is that the error messages are not descriptive making troubleshooting difficult.

As an example, I have used Corosync to cluster syslog servers in the past. In one such environment I had a pair of syslog servers in an active-standby configuration with a VIP. While the VIP came up as expected the syslog server reported an unknown error as shown below.

So what was causing the error and how can you clear it up?

Continue reading

Creating a LVM filesystem

This post is more for more reference, but hopefully someone else finds it useful as well. There are several posts online about LVM, but the directions I follow are:

Using diff when the same text is on different lines

I recently ran into an issue where I needed to diff two files and determine what text was different though I did not want text to be marked as different if it appeared on different lines. As an example, if I had the below two files, I wanted diff to return nothing

To my surprise, when I ran diff it returned:

Looking at the diff man page, the only relevant option I could find was –ignore-all-space, but this flag had no impact on the result of the command. The reason why this option did not work was because it only removed spaces on the same line between the files. For example:

Now, you may be wondering why I desired the functionality to diff two files with the same text on different lines. I was trying to create a configuration synchronization script, but I learned that the configuration output was different depending on what order commands were executed on the device. In my particular case, the two devices I was comparing were initially configured differently so the lines did not always match up.

So how do you compare two files where the text is the same, but the text appears on different lines?

Continue reading

Crontab – Bad Minute

I had an interested problem the other day with crontab that I had never experienced before. When attempting to save the changes I had made to my crontab, I received the following error message:

“/tmp/crontab.XXXXXX.crontab”:1: bad minute errors in crontab file, can’t install. Do you want to retry the same edit?

The solution was to change my default text editor from vim to vi:

Based on an online search, this appears to be related to a newline issue probably due to my configuration changes to vim.