Operating System - HP-UX
1830898 Members
3412 Online
110017 Solutions
New Discussion

Re: Errors in /etc/rc.log

 
SOLVED
Go to solution
Livia
Advisor

Errors in /etc/rc.log

I got a HP-UX 11.11 server that has not patched for a long~~ time. I came to http://www1.itrc.hp.com/service/patch/searchBySystem.do?BC=main| and followed the steps to search everything I should patch on this server. I selected all critical fix, downloaded all, and then patched all on my server.
However, after patching, some errors appear on server starting (/etc/rc.log) as the log content below:

===========================================================
Enable auxiliary swap space
Output from "/sbin/rc1.d/S500swap_start start":
----------------------------
Enabling device paging on /dev/vg00/lvol10.
Enabling device paging on /dev/vg00/lvol2.
/usr/sbin/swapon: /dev/vg00/lvol2 is already enabled for paging.
Enabling device paging on /dev/vg00/lvol11.
Warning: swapon returned exit code: 1
"/sbin/rc1.d/S500swap_start start" FAILED

Configure HP Gigabit Ethernet interfaces
Output from "/sbin/rc2.d/S308hpgelan start":
----------------------------
ERROR: (PPA: 3) : Device lan3 is not a gelan device. It is a igelan device.
"/sbin/rc2.d/S308hpgelan start" FAILED
===========================================================

I read the content of /etc/rc.config.d/hpgelanconf :
===========================================================
HP_GELAN_INIT_ARGS="HP_GELAN_STATION_ADDRESS HP_GELAN_SPEED HP_GELAN_MTU HP_GELAN_FLOW_CONTROL HP_GELAN_AUTONEG HP_GELAN_SEND_
COAL_TICKS HP_GELAN_RECV_COAL_TICKS HP_GELAN_SEND_MAX_BUFS HP_GELAN_RECV_MAX_BUFS"

HP_GELAN_INTERFACE_NAME[0]=lan3
HP_GELAN_STATION_ADDRESS[0]=
HP_GELAN_SPEED[0]=
HP_GELAN_MTU[0]=
HP_GELAN_FLOW_CONTROL[0]=
HP_GELAN_AUTONEG[0]=0
HP_GELAN_SEND_COAL_TICKS[0]=
HP_GELAN_RECV_COAL_TICKS[0]=
HP_GELAN_SEND_MAX_BUFS[0]=
HP_GELAN_RECV_MAX_BUFS[0]=
===========================================================

/etc/rc.config.d/hpigelanconf also config lan3. It seems /etc/rc.config.d/hpgelanconf has been mis-configured, but how can I fix it? Can I directly edit /etc/rc.config.d/hpgelanconf and delete "lan3"?

Moreover, the swap_start is strange too. /sbin/rc1.d/S500swap_start and successfully passed on server starting before patched. Why does this strange FAILED message come out now? How can I fix this error?

Because patched too much, I have already been confused about which patch causing this. Is there anyone who can kindly tell me what should I do now? >_<
Thanks a lot!
3 REPLIES 3
Matti_Kurkela
Honored Contributor
Solution

Re: Errors in /etc/rc.log

Yes, you can delete the "lan3" from th /etc/rc.config.d/hpgelanconf file.

Just remember: if you want to have a backup of the file before editing it, move the backup out of the /etc/rc.config.d directory. The /etc/rc.config script will read *every* file in that directory in various points of system startup and shutdown. (If I recall correctly, it can avoid the "file~" style backups and maybe a few other common backup suffixes, but it's far from foolproof.)

The swap_start message may also be explainable by the messages you copied.
In particular, the message:
/usr/sbin/swapon: /dev/vg00/lvol2 is already enabled for paging.

Do you have /dev/vg00/lvol2 indicated as a swap partition in /etc/fstab? If so, comment it out. /dev/vg00/lvol2 is a standard part of HP-UX system disk layout and is always activated as a swap partition very early in the boot process. If it's explicitly mentioned in /etc/fstab, the system tries to activate it twice: once in early boot, and another time in swap_start. That is an error, but not a fatal one.

MK
MK
Ludovic Derlyn
Esteemed Contributor

Re: Errors in /etc/rc.log

hi

Just a remark for swap
What is the result to swapinfo ?

If you are on 11iv2, sometimes swap activation generate a core file
To correct it, install patch
PHCO_35043.


regards
L-DERLYN
Livia
Advisor

Re: Errors in /etc/rc.log

To Matti Kurkela:
Thanks~~
Now everything is ok!

To Ludovic Derlyn:
I am using 11iv1, but thank you anyway.
I'll keep it in mind when working with 11iv2.