Operating System - HP-UX
1833770 Members
2351 Online
110063 Solutions
New Discussion

removing iscsi persistent settings from krs (kernel registry)

 
SOLVED
Go to solution
Charles Slivkoff
Respected Contributor

removing iscsi persistent settings from krs (kernel registry)

I have recently moved a rp3440 running 11.23. I will be attaching new iscsi targets. How do I remove the old iscsi persistent data?

I have tried "iscsiutil -d -I " which removed some of the entries, but I do not see how to remove the others.

From what I can tell (based on "strings -a" output) the data is stored in the KRS (kernel registry) in /stand/krs/system.krs and loaded during system boot.

I'm having a hard time finding any documentation on KRS. Any pointers would be appreciated.

Thanks,

-Charles
3 REPLIES 3
Charles Slivkoff
Respected Contributor

Re: removing iscsi persistent settings from krs (kernel registry)

I found two KRS utilities:

/usr/lbin/krs_print
/usr/lbin/krs_file

with which I can definitely see the ISCSI values in the KRS, but I'm still looking for a way to remove these.

Am I going to have to build a new kernel minus the iscsi driver to clear these?

Sameer_Nirmal
Honored Contributor
Solution

Re: removing iscsi persistent settings from krs (kernel registry)

There is an undocumented option i.e. -x for iscsiutil which can be used to delete all iSCSI information from the KRS. But it requires to set a kernel variable i.e. iscsi_krs_delete as mentioned in this document on page 4.

http://h40047.www4.hp.com/lefthand/doc/Whitepaper-Configuring_HP-UX%2011i_for_the_HP_LeftHand_SAN.pdf
Charles Slivkoff
Respected Contributor

Re: removing iscsi persistent settings from krs (kernel registry)

Excellent!

I guess there's no HPUX equiv "regedit.exe", huh?

:-)