Archive for November, 2007

Oracle’s EM Grid Control on CentOS5/RHEL5: libdb.so.2 issue and resolution

Sunday, November 25th, 2007

CentOS5 and RHEL5 comes without libdb.so.2 library (old Sleepycat database software). The problem is that there is no RPM for this library in the repositories (newest is only compat-db-4.3 which provides libdb4-3.so). Oracle’s EM installer fails about libdb.so.2 with:

libdb.so.2 missing on CentOS5/RHEL5

Resolution which worked for me was to install Redhat 7.3 db1 package(!). Binary compability seems to work:

[root@oemgc ~]# wget ftp://fr.rpmfind.net/linux/redhat/7.3/en/os/i386/RedHat/RPMS/db1-1.85-8.i386.rpm
--12:32:23-- ftp://fr.rpmfind.net/linux/redhat/7.3/en/os/i386/RedHat/RPMS/db1-1.85-8.i386.rpm
=> `db1-1.85-8.i386.rpm'
Resolving fr.rpmfind.net... 194.199.20.114
Connecting to fr.rpmfind.net|194.199.20.114|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /linux/redhat/7.3/en/os/i386/RedHat/RPMS ... done.
==> SIZE db1-1.85-8.i386.rpm ... 42581
==> PASV ... done. ==> RETR db1-1.85-8.i386.rpm ... done.
Length: 42581 (42K)
100%[=============================================================>] 42,581 230K/s in 0.2s
12:32:25 (230 KB/s) - `db1-1.85-8.i386.rpm' saved [42581]
[root@oemgc ~]# rpm -Uhv db1-1.85-8.i386.rpm
warning: db1-1.85-8.i386.rpm: Header V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:db1 ########################################### [100%]
[root@oemgc ~]# rpm -ql db1
/usr/bin/db1_dump185
/usr/lib/libdb.so.2
/usr/lib/libdb1.so.2
/usr/share/doc/db1-1.85
/usr/share/doc/db1-1.85/LICENSE
/usr/share/doc/db1-1.85/README
/usr/share/doc/db1-1.85/changelog
[root@oemgc ~]#

links 13/11/2007

Tuesday, November 13th, 2007

Setting up login on serial port on Solaris

Thursday, November 8th, 2007

1. Ensure that there is are no services defined using: pmadm -l (in order to
remove use pmadm -r -p <name1> -s <name2> where name1 && name2 are taken from
pmadm -l output ).

2. Place serial port parameters in /etc/ttydefs:
echo “conttymy:9600 hupcl:9600 hupcl::” >> /etc/ttydefs

3. Execute:
pmadm -a -p zsmon -s ttya -i root -fu -v `ttyadm -V` -m “`ttyadm -m ldterm,ttcompat -p ‘Enter_your_Hostname login: ‘ -S n -T vt100 -d /dev/term/a -l conttymy -s /usr/bin/login`”

4. Verify by using: pmadm -l

5. Try connecting from the other end(KVM/other server).

6. To allow root login from serial edit /etc/default/login file and comment out CONSOLE=/dev/console (allows root login).