Google

listing available groups in yum with ids (for kickstart)

July 29th, 2010
To list the package groups available in yum, you would use yum grouplist. When you are adding groups to your kickstart file, you use the id of the group not the name, so this *very* simple script lists the groups with their ids. Read the rest of this entry »

kickstart problem Partition requires a size specification RHEL6beta

July 29th, 2010
In the process of munging our RHEL5 kickstarts to RHEL6, we started getting this error “Partition requires a size specification”, the partition had a size of 0 set in the kickstart, with grow. Read the rest of this entry »

wwn of a linux hba

July 21st, 2010
My problem is that I wanted to filter access on a raid array instead of doing it on the switch. I could login to the switch and figure out the linux hba’s wwn (world-wide-name), but I thought there must be a way to get it from the linux machine directly. Read the rest of this entry »

online resize of lvm filesystem on fibre channel or iscsi or similar when using multipath

May 27th, 2010
I had a problem with a filesystem that was full on a vm. The vm’s hard drive is just a lun on a fibre channel. So I resized the lun on the raid controller. The devices (/dev/sdx) for the drive noticed the new size after I did the usual scan and partprobe, but the multipath device didn’t see the new size and was working off the old size. After some digging I found this page on how to get multipathd to notice the new size. I’ll summarise here. Read the rest of this entry »

qlogic sanbox monitoring from zabbix server (hexadecimal values have spaces)

March 22nd, 2010
While attempting to monitor traffic on a qlogic Sanbox 5602 I noticed that the traffic (connUnitPortStatCountTxObjects) was being returned as a hexadecimal value with spaces in it (e.g. Hex-STRING: 00 00 00 00 01 4F E1 1B). Read the rest of this entry »

using rsync with ssh keys via authorized_keys and command=”rsync …”

January 29th, 2010
We often need to keep two directories on different machines synchronised. We would like the rsync to be secure and to only allow the rsync, no shell access. This method uses ssh keys with commands in authorized_keys. Read the rest of this entry »

puppetserver certificates being signed in the future

January 29th, 2010
We had a problem where new clients couldn’t get their keys signed properly by the puppetmaster. Both the client and the server were in perfect sync with our ntp server. date on both machines returned the expected results. We are running mongrel so I went down the wrong path of thinking apache was to blame for the time problem. It wasn’t until I started going through the certificate_factory stuff that I found the problem. Read the rest of this entry »

extract private key and cert from pkcs12 (cert8.db/key3.db)

January 25th, 2010
using fedora-ds/redhat-ds it creates cert8.db and key3.db to store the certs. I wanted to extract the private key as PEM so I could import it elsewhere. Read the rest of this entry »

puppetmaster Error 400 on SERVER: Too many connections

January 15th, 2010
Was getting this error on our puppetmaster that only had a few clients. Read the rest of this entry »

weird device names like devXXXXX with ifconfig on Fedora/RHEL

January 13th, 2010
We had a machine that would keep coming up with devXXXXX where XXXXX is a seemingly random number. Read the rest of this entry »