Operating System - HP-UX
1753370 Members
5145 Online
108792 Solutions
New Discussion юеВ

Re: /stand/vmunix missing.

 
SOLVED
Go to solution
Vinoyee Madashery Poulo
Frequent Advisor

/stand/vmunix missing.


We have installed inode patches on one of the HP-UX 11.31 server and rebooted box one and half months ago. After some time we found that /stand/vmunix is missing. However, the /stand/current/vmunix has the time stamp for the day we rebuilt the kernel. The adb command returns /stand/vmunix.

# echo boot_string/s | adb /stand/current/vmunix /dev/kmem

boot_string:

(;)/stand/vmunix

We have checked other 11.31 server and found that /stand/vmuinx is the hard link to /stand/current/vmunix

I am not denying the possibility that some one would have accidentally removed /stand/vmunix.

Could some one help what whould have happened in this case? Is there any way to make sure from which kernel the system is rebooted?
Did any one face similar issue? Also please let us know, if /stand/vmunix is hard link to /stand/current/vmunix or vice versa.


Points will be given promptley.



13 REPLIES 13
Sameer Kelkar
Advisor

Re: /stand/vmunix missing.

have you checked
#kclog

All kernel changes are recordrd in /var/adm/kc.log.
Venkatesh BL
Honored Contributor

Re: /stand/vmunix missing.

On my 11.31, /stand/vmunix is a hardlink of /stand/current/vmunix.
Solution

Re: /stand/vmunix missing.

>> Is there any way to make sure from which kernel the system is rebooted?


You already did this:

># echo boot_string/s | >adb /stand/current/vmunix /dev/kmem
>
>boot_string:
>
>(;)/stand/vmunix

That's what the in-core kernel booted from.

So someone or something removed the hard link to /stand/current/vmunix

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Sameer Kelkar
Advisor

Re: /stand/vmunix missing.

Hello
Since /stand/vmunix is missing & if u r feeling unsafe for reboot, You can save a copy of running configuration by :
#kconfig -s confname

also #kcpath will give path of current kernel.
stand/vmunix is hard link to /stand/current/vmunix
Venkatesh BL
Honored Contributor

Re: /stand/vmunix missing.

# kcpath -d
/stand/current

;; Print the directory containing the currently running kernel

Vinoyee Madashery Poulo
Frequent Advisor

Re: /stand/vmunix missing.

Thanks for the replies and I have assigned the points.

Venkatesh, the kcpath -d output is as follows.

# kcpath -d
/stand/current

Does this mean, the system booted using /stand/current/vmunix?

In that case /stand/vmunix should be the hard link to /stand/current/vmunix.

The /stand/vmunix and /stand/current/vmunix will have same time stamp and inode number.
The /stand/system is soft link to /stand/current/system.
Hence, I think /stand/current/vmunix should he hard linked to /stand/vmunix.

Re: /stand/vmunix missing.

Even stranger...

On my system /stand/system is a symbolic link to /stand/nextboot/system (which I'm pretty sure is correct)

I think at this point I'd be having an interesting disucssion with everyone who has root privilges on this system...

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Vinoyee Madashery Poulo
Frequent Advisor

Re: /stand/vmunix missing.

Duncan,

lrwxr-xr-x 1 root root 15 Jan 23 22:54 system -> nextboot/system
lrwxr-xr-x 1 root sys 7 Feb 9 10:38 nextboot -> current
drwxr-xr-x 5 root sys 8192 Jan 23 22:54 current
# cd current
# ls -l
total 265760
-rw-r--r-- 1 root root 525972 Jan 23 22:54 .cache
-rw-r--r-- 1 root sys 0 Jan 23 22:34 .config
-rw-r--r-- 1 root sys 147 Jan 23 22:34 README
drwxr-xr-x 3 root sys 96 Jan 23 22:34 bootfs
drwxr-xr-x 2 root sys 96 Jan 23 22:34 krs
-rw-r--r-- 1 root sys 6027 Jan 23 22:34 ldargs
drwxr-xr-x 2 root sys 8192 Jan 23 22:34 mod
-rw-r--r-- 1 root sys 5044 Feb 9 10:38 system
-rwxr-xr-x 2 root sys 135496680 Jan 23 22:34 vmunix

# pwd
/stand

ls -il nextboot/system
51 -rw-r--r-- 1 root sys 5044 Feb 9 10:38 nextboot/system

# cd current
# ls -il system
51 -rw-r--r-- 1 root sys 5044 Feb 9 10:38 system

So, /stand/system is a soft link to /stand/current/system.

Could any one please answer if the /stand/vmunix hard linked to /stand/current/vmunix or vice versa?



Re: /stand/vmunix missing.

Yes /stand/vmunix is a hard link to /stand/current/vmunix.

It would be interesting to see what "kconfig -w" says so you can see where this kernel configuration came from...

HTH

Duncan

I am an HPE Employee
Accept or Kudo