Skip to main content

Posts

Showing posts from February, 2010

Dell OMSA on CentOS 5.4 x86_64 - No Controllers found error

It seems that several people have been having problems getting Dell OMSA 6.2 to work correctly on CentOS 5.4 x86_64. Specifically, the software does not detect any storage controllers, and therefore also doesn't find any disks. eg. [root@b034 ~]# omreport storage pdisk controller=0Invalid controller value. Read, controller=0No controllers found. After a little investigation, I found the source of the problem.

Building RPMs from Ruby gems

Update: see my recent post describing a better way to do this. I often need to deploy Ruby gems across many CentOS servers. I prefer to use the native OS package management tools (rpm + yum) rather than using Ruby gems. Here’s how to build RPMs from Ruby gems using gem2rpm.

Useful date command format string

When creating backups or log files, I like to name the files with a timestamp, ie. the date plus the time. I use the date command to produce timestamps in the appropriate format, but I find the format specifier a bit long-winded and difficult to remember – is %m minutes or month? There is a better way… date -I