1832809 Members
3109 Online
110045 Solutions
New Discussion

Re: Kernel Inf

 
aziz_1
Occasional Contributor

Kernel Inf

Hi
On Hpux 9.04 wish command would be appropriate to determine wish disk in the kernel
thks
7 REPLIES 7
Victor BERRIDGE
Honored Contributor

Re: Kernel Inf

Hi
I would use sam, but Im not sure what you are looking for, Is it to see if the disks are LIF format?
then lifls /dev/rdsk/cYd0sXX would test.
otherwise there is ioscan
There used to be sysdiag also

Regards
Victor
Rainer_1
Honored Contributor

Re: Kernel Inf

to have a list of disks connected to the system you could do

cd /dev/rdsk
for dev in *
do
/etc/diskinfo $dev
done
Victor BERRIDGE
Honored Contributor

Re: Kernel Inf

If youre looking for the device driver for the system disk:
disc1 for HP-IB
disc2 for HP-FL
disc3 for SCSI
disc4 for HP-FL

To determine the driver and address of the system disk, use:
/etc/devn
it should output something like /dev/dsk/c0d0sXX /
using /etc/lssf /dev/dsk/c0d0sXX , the output should be like:
disc1 lu 0 unit...address 4.0.0 /dev...
The driver=disc1, addr=(4.0.0)

Hope this helps a bit
Darrel Louis
Honored Contributor

Re: Kernel Inf

The best to use is ioscan.
Check man ioscan for the option below the -k

-k Scan kernel I/O system data structures instead of the actual hardware and list the results.
No binding or unbinding of drivers is performed. The -d, -C, -I, and -H options can be used to restrict listings. Cannot be used with -u.

example:
ioscan -fnkC disk
Glen Liu
Advisor

Re: Kernel Inf

Hi, Victor.

Is it devnm? and it seems that it need path name(s) as parameter(s). BTW, I read the man page and it said I can also see the brc(1M). But I cannot get the manual entry of brc. Do you know what is it? Thx
Victor BERRIDGE
Honored Contributor

Re: Kernel Inf

Hi Glen
Youre right, thanks for pointing out:
you should read /etc/devnm / (or whatever)
Im having trouble reading and sending to discussion because we are going thru a severe virus attak on our mail servers, and it impacts the network performance (I never know if what I typed is seen since I cannot from time to time....
Now for brc, just let me connect to a 9.04...
brc(1M) Series 800 Only brc(1M)

NAME
brc, bcheckrc, mirrorrc, rc, powerfail - system initialization shell
scripts

SYNOPSIS
/etc/brc

/etc/bcheckrc

/etc/mirrorrc

/etc/rc

/etc/powerfail

Remarks:
The mirror disk features described on this page require installation
of optional Data Pair 800 software (not included in the standard HP-UX
operating system) before they can be used.

DESCRIPTION
These shell procedures are executed via entries in /etc/inittab by
init (see init(1M)). bcheckrc, brc, and mirrorrc are executed when
the system is changed out of single-user mode. rc is executed upon
entering a new, numbered, run-level. powerfail is executed whenever a
system power failure is detected.

brc Clears the mounted file system table /etc/mnttab (see
mnttab(4)), and loads any programmable
microprocessors with their appropriate scripts.

bcheckrc Performs all necessary consistency checks to prepare
the system to change into multi-user mode. It
prompts to set the system date and to check the file
systems with fsck (see fsck(1M)).

mirrorrc Sets up mirror disk pairs based on information
contained in /etc/mirrortab (see mirrortab(4)). It
invokes mirror to configure the mirror pairs and, if
necessary, to reimage the mirrors for data
consistency (see mirror(1M)). It is run by bcheckrc
before fsck is run.

rc Starts all system daemons before the terminal lines
are enabled for multi-user mode. In addition, file
systems are mounted, and accounting, error logging,
system activity logging, and the Remote Job Entry
(RJE) system are activated in this procedure.

powerfail Invoked when the system detects a power-failure
condition. Its chief duty is to reload any

Hewlett-Packard Company - 1 - HP-UX Release 9.04: November 1993

brc(1M) Series 800 Only brc(1M)

programmable microprocessors with their appropriate
scripts, where applicable. It also logs the fact
that a power failure occurred.

SEE ALSO
fsck(1M), init(1M), mirror(1M), shutdown(1M), inittab(4),
mirrortab(4), mnttab(4).

Hewlett-Packard Company - 2 - HP-UX Release 9.04: November 1993

You were lucky the machine was up (Supposed to be dead...)
Regards
Victor
Glen Liu
Advisor

Re: Kernel Inf

Thx,Victor. And it seems that the brc was no use in 10.20?