RSS feed

Dell OMSA reports No controllers found.

March 9th, 2010 | Posted in Blog, Linux | No Comments

During a routine scheduled upgrade window I upgraded to the latest Dell OMSA on a range of Dell PowerEdge servers running CentOS. After the upgrade, shell scripts that check the health of disks started reporting that no storage controllers can be found.


# omreport storage pdisk controller=0
Invalid controller value. Read, controller=0
No controllers found.

After some digging through the Dell mailling lists it became apparent that i’m missing the Dell Firmware Tools on my installation. Installing the firmware tools solved the problem.


# yum -y install dell_ft_install

# srvadmin-services.sh restart

Once done, all was fine.



PowerDNS Multiple MySQL Backends

January 10th, 2010 | Posted in Blog, Linux, PowerDNS | No Comments

http://doc.powerdns.com/modules.html

To launch two backends of the same type, you can assign a name to each launch like this;

launch=gmysql:connection1,gmysql:connection2

gmysql-connection1-host=10.10.10.1
gmysql-connection1-user=pdns
gmysql-connection1-dbname=pdns

gmysql-connection2-host=10.10.10.2
gmysql-connection2-user=pdns
gmysql-connection2-dbname=pdns



Debian reset root password

October 21st, 2009 | Posted in Debian, Linux | No Comments

In order to reset the password, you need to boot your debian installation into single user mode. You can do this by following the steps below;

1. Once grub menu comes up, select the single user entry and press ‘e’
2. Select the kernel … line and press ‘e’ once again
3. Append ‘init=/bin/bash’ at the end of line and press b to boot

You will be dropped into a shell, next you need to mount the filesystem in read/write mode in order to change the password.

5. mount -n -o remount,rw /
6. passwd
7. reboot

That’s all there is to it!



Postfix port 587 (submission)

August 17th, 2009 | Posted in Blog, Linux | No Comments

Edit /etc/postfix/master.cf and uncomment the submission line;

smtp      inet  n       -       -       -       -       smtpd
submission inet n       -       -       -       -       smtpd

Your postfix installation will now accept connections on both port 25 & 587 which is useful to hand out to users who’s ISP’s block outgoing connections to port 25.



warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied

August 17th, 2009 | Posted in Blog, Debian, Linux, Postfix | No Comments

Check the OPTIONS directive in /etc/default/saslauthd and set it to within your postfix chroot.

OPTIONS=”-c -r -m /var/spool/postfix/var/run/saslauthd”

Then run;

dpkg-statoverride –add root sasl 710 /var/spool/postfix/var/run/saslauthd

adduser postfix sasl

Restart both postfix and saslauthd for the changes to take effect.



Debian xenserver updates apt repository missing GPG key

August 13th, 2009 | Posted in Blog, Debian, Linux, Xen | No Comments

After you’ve installed XenTools on your VM and you try to do a apt-get update you are greeted with a GPG error message saying that the repository isn’t trusted. This is because the GPG key Citrix use to sign their packages has not been added to the apt keyring.

To fix it, run;

wget -q http://updates.vmd.citrix.com/XenServer/5.5.0/GPG-KEY -O- | apt-key add —



CentOS yum update Missing Dependency

August 13th, 2009 | Posted in Blog, Linux | No Comments

yum clean all

yum update



error: xenconsole: Could not open tty `/dev/pts/2': No such file or directory

August 13th, 2009 | Posted in Blog, Linux, Xen | No Comments

Error: xenconsole: Could not open tty `/dev/pts/2′: No such file or directory

Check whether xenconsoled is running, if not;

 

/etc/init.d/xend start

or

xenconsoled



mount: could not find any device /dev/loop#

July 1st, 2009 | Posted in Blog, Linux | No Comments

If you get the above error while trying to mount an ISO image, try to the following;

Option 1

MAKEDEV loop (If it doesn’t exist already)

modprobe loop

mount -t iso9660 -o loop yourisofile.iso /mnt/iso

Option 2

cd /dev/;mkdir loop;cd loop;mknod 0 b 7 0

mount -t iso9660 -o loop yourisofile.iso /mnt/iso



Find files between two dates

June 23rd, 2009 | Posted in Blog, Linux | No Comments

# touch -amt 200906220000 /tmp/date1
# touch -amt 200906222359 /tmp/date2
# find / -type f -newer /tmp/date1 -a ! -newer /tmp/date2–




Categories