Operating System - HP-UX
1836472 Members
2162 Online
110101 Solutions
New Discussion

sysdef command cannot run

 
SOLVED
Go to solution
rodi
Occasional Advisor

sysdef command cannot run

Hi,

This error occur after creating additional swap space device and remove it on A500 system.
sysdef - display system definition
# sysdef
ioctl: Function is not available

Anyone encounter this issue

TQ
5 REPLIES 5
Animesh Chakraborty
Honored Contributor

Re: sysdef command cannot run

Hi,
Is your /stand file system mounted ?
Did you take a backup?
Carsten Krege
Honored Contributor
Solution

Re: sysdef command cannot run

Most likely scenario: The current version of the kernel doesn't match the current version of the symbol table symtab in /stand/dlkm. This can result if kmupdate is not run after building a new kernel. To fix your problem use the following procedure to build a new kernel and to activate it:

1. cd /stand/build
2. /usr/lbin/sysadm/system_prep -s system
3. mk_kernel -s ./system
4. kmupdate
5. shutdown -r 0

Carsten
-------------------------------------------------------------------------------------------------
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
Roger Baptiste
Honored Contributor

Re: sysdef command cannot run

Hi,

Been through this one, once before. In all
probability, a kernel change was done
manually without running the kmupdate command.
Here is the way out:
*****
Description: 11.0 sysdef: ioctl function is not available; use kmupdate
Document Id : A5220881
When I run the sysdef command, I get the error:
ioctl function is not available.
Why does this occur?

Solution
The current version of the kernel doesn't match the current version
of the symbol table symtab in /stand/dlkm. This can result if
kmupdate is not run after building a new kernel. To fix your problem
use the following procedure:
1. cd /stand/build
2. /usr/lbin/sysadm/system_prep -s system
3. mk_kernel -s ./system
4. kmupdate /stand/build/vmunix_test
5. shutdown -r 0 (don't use reboot.)
****

HTH
raj
Take it easy.
Sanjay_6
Honored Contributor

Re: sysdef command cannot run

Hi Rodi,

Here is the solution.

quote //

The current version of the kernel doesn't match the current version of the symbol table symtab in /stand/dlkm. This can result if kmupdate is not run after building a new kernel. To fix your problem use the following procedure:
1. cd /stand/build
2. /usr/lbin/sysadm/system_prep -s system
3. mk_kernel -s ./system
4. kmupdate /stand/build/vmunix_test
5. shutdown -r 0 (don't use reboot.)

//unquote

hope this helps.

Regds
rodi
Occasional Advisor

Re: sysdef command cannot run

Hi Guys,

Thank you, it's work.

Regards,