Wuhai’s Weblog

October 26, 2009

vmware converter error

Filed under: Linux, vmware — wuhai @ 5:09 pm

vmware-converter-server-1.log:[#9] [2009-10-26 10:15:48.402 F07AEBA0 error 'App'] System PAM libraries are unusable: libpam.so.0: cannot open shared object file: No such file or directory

Fixed: apt-get install pam.32bit

32bit PAM module needs to be installed on this 64bit RHEL4 OS

October 23, 2009

pxeboot / kickstart

Filed under: Linux — wuhai @ 6:40 pm

This is for Pxeboot / Kickstart a Rackable server. The first NIC cable is loose, and DHCP is configured to go to 2nd NIC. But kickstart is configured as:
network –bootproto dhcp

which trying to use eth0 all the time, and of course failed all the time.

The fix is to add “ksdevice=bootif” in the line “append” in pxeboot menu, and add “IPAPPEND 2″ line below.

It would show 2 devices to be manually picked in this case, after picking the 2nd NIC, it is working again.

October 5, 2009

Hard Drive Rebuild Rate

Filed under: IBM, Linux — wuhai @ 6:04 pm

This is one bad IBM EXP3000 hard drive:
MegaCli -ldpdinfo -a0:

PD: 3 Information
Enclosure Number: 1
Slot Number: 4
Device Id: 47
Sequence Number: 3
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
Raw Size: 70006MB [0x88bb6b0 Sectors]
Non Coerced Size: 69494MB [0x87bb6b0 Sectors]
Coerced Size: 68664MB [0x861c000 Sectors]
Firmware state: Rebuild
SAS Address(0): 0×5000cca00db2de1d
SAS Address(1): 0×0
Inquiry Data: IBM-ESXSVPBA073C3ETS11 NA496JEY5BHECVBXSA496

watch “MegaCli -PDRbld -ShowProg -PhysDrv [1:4] -a0″

MegaCli -PDRbld -ShowProg -PhysDrv [1:4] -a0

Rebuild Progress on Device at Enclosure 1, Slot 4 Completed 65% in 9 Minutes.

September 27, 2009

WWPN – RHEL5 – QLogic

Filed under: Linux, RedHat, SAN — wuhai @ 6:23 pm

http://kbase.redhat.com/faq/docs/DOC-19446

ql-hba-info-1.2/ql-hba-info.sh -a

systool -c fc_host -v

apt-get install sg3_utils

sg_map -x

I have been wondering about the following one recently:
http://kbase.redhat.com/faq/docs/DOC-9937

September 18, 2009

pthread_create Resource temporarily unavailable

Filed under: Linux — wuhai @ 7:33 pm

Keeping getting this error while the system is not doing much things:

From the process log: Resource temporarily unavailable(solarisThreadCreate: pthread_create failed)

From the command line output: fork: Resource temporarily unavailable

Went to /etc/security/limits.conf, change this user’s limitation:

username hard nproc unlimited
username soft nproc unlimited

It is ok afterwards. Went back to the file and put back the limit, could not reproduce this issue anymore ..

Eventually bumped up the limit from old value 65536 to 130672 (double) for this username, all others are still the same:

* soft nproc 4096
* hard nproc 65336
username hard nproc 130672
username soft nproc 130672

apt key

Filed under: Linux — wuhai @ 5:43 am

apt-get update:

W: GPG error: http://deb.opera.com stable Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY F9A2F76A9D1A0061
W: You may want to run apt-get update to correct these problems

hwu@hwu-laptop:~$ gpg –keyserver pgpkeys.mit.edu –recv-key F9A2F76A9D1A0061
gpg: requesting key 9D1A0061 from hkp server pgpkeys.mit.edu
gpg: key 9D1A0061: public key “Opera Software Archive Automatic Signing Key 2010 ” imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1

$ gpg –edit-key packager@opera.com
gpg (GnuPG) 1.4.9; Copyright (C) 2008 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

pub 1024D/9D1A0061 created: 2009-08-31 expires: 2011-01-23 usage: SC
trust: unknown validity: unknown
sub 4096g/87DEACAE created: 2009-08-31 expires: 2011-01-23 usage: E
[ unknown] (1). Opera Software Archive Automatic Signing Key 2010

Command> fpr
pub 1024D/9D1A0061 2009-08-31 Opera Software Archive Automatic Signing Key 2010
Primary key fingerprint: 8526 E45F AF83 DE2F 634C 1909 F9A2 F76A 9D1A 0061

gpg -a –export 9D1A0061 | sudo apt-key add -
OK

http://deb.opera.com/

September 16, 2009

puppetrun

Filed under: Linux — wuhai @ 7:00 pm

puppetrun –host puppet_client_host

on puppet_client_host:

vi /etc/puppet/puppet.conf

add line at the end (section [puppetd]):
listen = true

vi /etc/puppet/namespaceauth.conf

add lines:

[puppetrunner]
allow puppet_master_host (has to be A record, alias seems not work)

workaround for Suse – wunderbar_emporium

Filed under: Linux — wuhai @ 6:03 am

cat /etc/modprobe.conf.local:

install appletalk /bin/true
install ipx /bin/true
install irda /bin/true
install ax25 /bin/true
install x25 /bin/true
install bluetooth /bin/true
install ppp_generic /bin/true
install pppoe /bin/true
install pppox /bin/true
install slhc /bin/true

August 21, 2009

syntax check named.conf file

Filed under: Linux — wuhai @ 8:08 am

named-checkconf -t /var/named/chroot /etc/named.conf

August 19, 2009

Error while loading shared libraries

Filed under: Linux — wuhai @ 2:35 pm

Got the following error message after running one executable:
“error while loading shared libraries: libfilename.so.28: cannot open shared object file: No such file or directory”

But when using ‘ldd’ or ’strace’, then everything works fine.

After using rpm -V to verify the package, it seems many files mode got changed, which include the executable.

It was changed from 775 to 2775, once changed it back, then things are Ok. Not sure why, but it needs to be remembered later ..

Next Page »

Blog at WordPress.com.