Operating System - HP-UX
1823385 Members
2752 Online
109654 Solutions
New Discussion юеВ

Re: Can't load rng module

 
Paul Torp
Regular Advisor

Can't load rng module

I have a server/node I want to add to an existing SG-cluster (one node), both running HP-UX 11.23 and MC-SG 11.18.

The problem is that I can't add the node because the rng-module fail to start:

*******:/ #kcmodule rng=loaded
* The automatic 'backup' configuration has been updated.
ERROR: Unable to load module 'rng': No locks available




I have tried to double the nflock kernel parameter to 8192 (found a hint on the web), but this didn't help.

Any help will be appreciated.
"sendmail is kind of fun..."
8 REPLIES 8
VK2COT
Honored Contributor

Re: Can't load rng module

Hello,

Let's start with the basics:

a) Do you have a proper patch:

# swlist -l fileset | grep -i random
OS-Core.RNG-DKRN B.11.23 HP-UX Strong Random Number Generator
PHKL_31506 1.0 Kernel Random Number Generator patch

b) Does lsdev report the following:

# lsdev | grep rng
105 -1 rng pseudo

c) What do permissions show:

# ll /dev/random /dev/urandom
crw-r--r-- 1 root root 105 0x000000 Apr 16 2008 /dev/random
crw-r--r-- 1 root root 105 0x000001 Apr 16 2008 /dev/urandom

d) What is the usage of kernel parameters?

# kcusage

e) Do you have any errors checking:

# swverify \*

f) Does this command work without errors:

# insf -e

g) Any errors in syslogs?

h) What does this command show:

# ll /stand/*/mod/rng

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Paul Torp
Regular Advisor

Re: Can't load rng module

a) Do you have a proper patch:

Yes, patch is there.

b) Does lsdev report the following:

Not excactly:

******:/ #lsdev | grep rng
115 -1 rng unknown


c) What do permissions show:

# ll /dev/random /dev/urandom

Looks right

d) What is the usage of kernel parameters?

# kcusage
Tunable Usage / Setting
=============================================
dbc_max_pct 22 / 50
maxdsiz 264085504 / 4294963200
maxdsiz_64bit 51953664 / 4294967296
maxfiles_lim 576 / 12288
maxssiz 1572864 / 8388608
maxssiz_64bit 81920 / 268435456
maxtsiz 315392 / 100663296
maxtsiz_64bit 12288 / 1073741824
maxuprc 29 / 4095
max_thread_proc 381 / 3000
maxvgs 2 / 20
msgmni 2 / 512
msgseg 0 / 8192
msgtql 0 / 1024
nfile 2077 / 65536
nflocks 53 / 8192
ninode 2230 / 12288
nkthread 1749 / 16500
nproc 189 / 16400
npty 0 / 128
nstrpty 2 / 128
nstrtel 0 / 60
nswapdev 1 / 10
nswapfs 0 / 10
semmni 39 / 2048
semmns 158 / 16384
shmmax 32671920 / 1073741824
shmmni 43 / 1024
shmseg 26 / 1024


e) Do you have any errors checking:

# swverify \*

Some errors. Will look into it.

f) Does this command work without errors:

# insf -e

Yes

g) Any errors in syslogs?

Jan 10 03:14:33 ******** vmunix: NOTICE: mod_load_helper: gio_mod_opstart load failed, mcp->mc_typep = 0xb75b1040
Jan 10 03:15:47 ******** cmclconfd[2253]: Unable to open /dev/urandom (No such device).
Jan 10 03:15:47 ******** cmclconfd[2253]: Failed to generate 64 from prng.


h) What does this command show:

# ll /stand/*/mod/rng

-r--r--r-- 1 bin bin 92744 Aug 27 2004 /stand/last_install/mod/rng
"sendmail is kind of fun..."
Paul Torp
Regular Advisor

Re: Can't load rng module

....and from /etc/rc.log:

Starting IPFilter
Output from "/sbin/rc2.d/S131ipfboot start":
----------------------------
open device: No such device
ioctl(SIOCGETFS: Bad file number
open device: No such device
ioctl(SIOCIPFFL): Bad file number
/sbin/rc2.d/S131ipfboot: load of /etc/opt/ipf/ipf.conf into alternate set failed
/sbin/rc2.d/S131ipfboot: load of /etc/opt/ipf/ipf6.conf into alternate set failed
/dev/ipnat: open: No such device
/sbin/rc2.d/S131ipfboot: load of /etc/opt/ipf/ipnat.conf failed
/dev/ipl: open: No such device
"sendmail is kind of fun..."
VK2COT
Honored Contributor

Re: Can't load rng module

Interesting.

Try this:

# cp -r /stand/last_install/mod/rng /stand/current/mod

... and then see how it goes with loading the
module.

Also, try again:

# insf e

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Paul Torp
Regular Advisor

Re: Can't load rng module

No change as far as I can see.
"sendmail is kind of fun..."
Paul Torp
Regular Advisor

Re: Can't load rng module

I have also attached the output from swverify if you could take a look at it.
"sendmail is kind of fun..."
Paul Torp
Regular Advisor

Re: Can't load rng module

Problem solved.

There was a problem with an old fc-driver that caused this. Not easy to find out, but thanks to HP support it was solved.

The fc-driver that was installed was from the september 06 release of HP-UX 11.23.
"sendmail is kind of fun..."
JTraxler
Occasional Advisor

Re: Can't load rng module

I have the same issue with LLT and others

What FC Patch specifically did you use for the FC?

Thanks,
Jon