Wuhai’s Weblog

November 24, 2009

Convert DHCP to Static IP for IBM RSA II card

Filed under: IBM — wuhai @ 5:13 pm

In my case: IBM System x3755 -[7163AC1]

First need to ensure the following in BIOS per IBM:
Enabling USB keyboard and mouse support:

1. Turn on or restart the server and watch the monitor screen.
2. When the message Press F1 for Configuration/Setup appears, press F1.
3. Select Advanced Setup and then select RSA II Settings.
4. In the OS USB Selection field, select Linux.
5. Select Save Values and Reboot RSA II.

Download and Install asu and ibmusbasm64-1.51-2 (custom build RPM from SRPM for Centos5 in my case).

./asu64 show all | grep RSA_DHCP

./asu64 set RSA_DHCP1 Disabled

./asu64 rebootrsa

./asu64 set RSA_HostIPAddress1 new_ip_addr
./asu64 set RSA_HostIPSubnet1 new_subnet
./asu64 set RSA_GatewayIPAddress1 new_gateway_addr

./asu64 rebootrsa

Done.

November 17, 2009

vCenter Converter 4.0 Sysprep warning

Filed under: vmware — wuhai @ 6:32 pm

When trying to convert Windows2k3 Standard server using VMware vCenter Converter, I got following warning message:

Warning: Unable to locate the required Sysprep files. Please upload them under ‘c:\Documents and Settings\All Users\Application Data\VMware\VMware vCenter Converter Standalone\sysprep\svr2003′ on the Converter server machine.

Go to CD1, Win2003-R2-i386std-cd1\SUPPORT\TOOLS, copy and extract DEPLOY.CAB to the above mentioned folder, then restart vCenter Converter session, the warning will go away ..

November 15, 2009

IBM BladeCenter blade SOL (LS41)

Filed under: IBM, Linux — wuhai @ 7:30 am

Centos5:

In /etc/inittab:
add one line:
s1:2345:respawn:/sbin/agetty -L -f /etc/issueserial 19200 ttyS1 vt100

root: init q

In /etc/securetty:
add line
ttyS1

In /etc/grub.conf:
add “console=tty0 console=ttyS1,19200″ at the end of kernel line

To access serial console:

console -T system:blade[1]

To exit:
ctrl+[
Then
ctrl+(

November 12, 2009

DB2 “does not have the authority to perform the requested command”

Filed under: DB2 — wuhai @ 6:20 am

It turns out user used “chown -R instanceUsername:anotherGroupname sqllib”, thus changed lots of permissions.

Tried to reset permission using “/opt/IBM/db2/V9.5/instance/db2iupdt -k instanceUsername”, but still not working after that.

The workaround, per IBM, is to:

1. Uncatalog database;
2. Drop instance;
3. Create instance;
4. Catalog database again;

so as instance owner (note: I got the same error: instance owner does not have authority .. This step can be skipped .. ):
db2 uncatalog database db1
db2 uncatalog database db2

as root:
/opt/IBM/db2/V9.5/instance/db2idrop instanceUsername

/opt/IBM/db2/V9.5/instance/db2icrt -u db2fenc1 instanceUsername

as instance owner:
db2 catalog database db1 as db1
db2 catalog database db2 as db2
db2 terminate

November 10, 2009

Apache frontend Tomcat

Filed under: Tomcat — wuhai @ 7:10 am

For Apache to be front end of Tomcat:

Say appname is at http://servername:8080/appname

1.
Redirect / http://servername/appname/
ProxyPass /appname/ http://localhost:8080/appname/
ProxyPassReverse /appname/ http://localhost:8080/appname/

2.
LoadModule jk_module modules/mod_jk.so
JkWorkersFile /etc/httpd/conf/workers.properties
JkShmFile /var/log/httpd/mod_jk.shm
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel info
JkLogStampFormat “[%a %b %d %H:%M:%S %Y]“

$ cat /etc/httpd/conf/workers.properties
# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009

(virtual host config)
RewriteEngine on
Rewriterule ^/$ /appname/ [R=301]
JkMount /appname/ worker1
JkMount /appname/* worker1

3. conf.d/proxy_ajp.conf:
uncomment:
ProxyPass /appname/ ajp://localhost:8009/appname/

November 4, 2009

IBM CSM error – The saved node identifiers do not agree

Filed under: IBM — wuhai @ 6:57 pm

Reference: http://publib.boulder.ibm.com/infocenter/clresctr/vxrx/index.jsp?topic=/com.ibm.cluster.rsct.doc/rsct_aix5l53/bl5dia0216.html

Nov 4 12:51:51 nodename_4 RMCdaemon[23836]: (Recorded using libct_ffdc.a cv 2):::Error ID: 824….5pQw8/DqU1.X8Nc/……………….:::Reference ID: :::Template ID:
0:::Details File: :::Location: RSCT,rmcd.c,1.52,211 :::RMCD_INFO_0_ST The daemon is started.
Nov 4 12:51:51 nodename_4 RMCdaemon[23836]: (Recorded using libct_ffdc.a cv 2):::Error ID: 822….5pQw8/ZxU1.X8Nc/……………….:::Reference ID: :::Template ID:
0:::Details File: :::Location: RSCT,rmcd_env.c,1.36,123 :::RMCD_2610_101_ER Internal error. Error data 1 0000001c Error data 2 00000000 Error data 3 2641-0
37 The saved node identifiers do not agree.
Nov 4 12:51:51 nodename_4 srcmstr: src_error=-9035, errno=0, module=’srchevn.c’@line:’252′, 0513-035 The ctrmc Subsystem ended abnormally. SRC will try and restart it.
Nov 4 12:51:51 nodename_4 RMCdaemon[23839]: (Recorded using libct_ffdc.a cv 2):::Error ID: 824….5pQw8/wlY1.X8Nc/……………….:::Reference ID: :::Template ID:
0:::Details File: :::Location: RSCT,rmcd.c,1.52,211 :::RMCD_INFO_0_ST The daemon is started.
Nov 4 12:51:51 nodename_4 RMCdaemon[23839]: (Recorded using libct_ffdc.a cv 2):::Error ID: 822….5pQw8/SsY1.X8Nc/……………….:::Reference ID: :::Template ID:
0:::Details File: :::Location: RSCT,rmcd_env.c,1.36,123 :::RMCD_2610_101_ER Internal error. Error data 1 0000001c Error data 2 00000000 Error data 3 2641-0
37 The saved node identifiers do not agree.
Nov 4 12:51:51 nodename_4 srcmstr: src_error=-9035, errno=0, module=’srchevn.c’@line:’252′, 0513-035 The ctrmc Subsystem ended abnormally. SRC will try and restart it.
Nov 4 12:51:51 nodename_4 RMCdaemon[23841]: (Recorded using libct_ffdc.a cv 2):::Error ID: 824….5pQw8/pVc1.X8Nc/……………….:::Reference ID: :::Template ID:
0:::Details File: :::Location: RSCT,rmcd.c,1.52,211 :::RMCD_INFO_0_ST The daemon is started.
Nov 4 12:51:51 nodename_4 RMCdaemon[23841]: (Recorded using libct_ffdc.a cv 2):::Error ID: 822….5pQw8/ncc1.X8Nc/……………….:::Reference ID: :::Template ID:
0:::Details File: :::Location: RSCT,rmcd_env.c,1.36,123 :::RMCD_2610_101_ER Internal error. Error data 1 0000001c Error data 2 00000000 Error data 3 2641-0
37 The saved node identifiers do not agree.
Nov 4 12:51:51 nodename_4 srcmstr: src_error=-9020, errno=0, module=’srchevn.c’@line:’409′, 0513-020 The ctrmc Subsystem did not end normally. The subsystem respawn li
mit has been exceeded. Check the Subsystem and restart it manually.

fcslogrpt /var/log/messages

/usr/sbin/rsct/bin/rmcdomainstatus -s ctrmc

On this node:

# cat /etc/ct_node_id
e30b82d7d977ae93

# cat /var/ct/cfg/ct_node_id
2fa704ea5403f37b

(Note: /var partition was completely corrupted, so we copied /var from another node in the cluster, to this one, thus the above 2 files are not matching each other)

# cp /var/ct/cfg/ct_node_id /var/ct/cfg/BACK_ct_node_id
# cp /etc/ct_node_id /var/ct/cfg/ct_node_id

# /etc/init.d/ctrmc status
Subsystem Group PID Status
ctrmc rsct inoperative

# /etc/init.d/ctrmc start
0513-059 The ctrmc Subsystem has been started. Subsystem PID is 23963.

# /etc/init.d/ctrmc status
Subsystem Group PID Status
ctrmc rsct 23963 active

/usr/sbin/rsct/bin/rmcdomainstatus -s ctrmc

Management Domain Status: Management Control Points
O A 0xe2ae70929d8e2b07 0001 192.168.5.1

# lssrc -a
Subsystem Group PID Status
ctrmc rsct 23963 active
IBM.CSMAgentRM rsct_rm 24017 active
IBM.ERRM rsct_rm 24020 active
IBM.AuditRM rsct_rm 24059 active
ctcas rsct inoperative
IBM.HostRM rsct_rm inoperative
IBM.ConfigRM rsct_rm inoperative
IBM.SensorRM rsct_rm inoperative
IBM.FSRM rsct_rm inoperative
IBM.LPRM rsct_rm inoperative

November 2, 2009

ESX 3.5 license error

Filed under: vmware — wuhai @ 7:24 am

Keeps getting the following errors:

“Information needed to acquire the correct set of licenses not provided”

No CPU or Memory information displayed for this ESX host

Fix: /etc/init.d/mgmt-vmware restart

# /etc/init.d/mgmt-vmware restart
Stopping VMware ESX Server Management services:
VMware ESX Server Host Agent Watchdog [ OK ]
VMware ESX Server Host Agent [ OK ]
Starting VMware ESX Server Management services:
VMware ESX Server Host Agent (background) [ OK ]
Availability report startup (background) [ OK ]

another one to try: /etc/init.d/vmware-vpxa restart

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 22, 2009

Suse – ifplugstatus

Filed under: Suse — wuhai @ 5:48 pm

# ifplugstatus
lo: link beat detected
eth0: link beat detected
eth1: link beat detected
eth2: link beat detected
sit0: unplugged

Next Page »

Blog at WordPress.com.