1833802 Members
2235 Online
110063 Solutions
New Discussion

lifls command

 
eric2
Occasional Contributor

lifls command

The vg00 is mirored between /dev/dsk/c0t6d0 and /dev/dsk/c3t6d0, when I used lifls command to show the HD information,

test#[/]lifls /dev/rdsk/c0t6d0
ODE MAPFILE SYSLIB CONFIGDATA SLMOD2
SLDEV2 SLDRV2 SLSCSI2 MAPPER2 IOTEST2
PERFVER2 PVCU SSINFO HPUX ISL
AUTO LABEL

test#[/]lifls /dev/rdsk/c3t6d0
ISL AUTO HPUX PAD LABEL

I wondered why the information was different between these two mirrored harddisks?
6 REPLIES 6
Ravi_8
Honored Contributor

Re: lifls command

Hi,

#diskinfo /dev/rdsk/c0t6d0
#diskinfo /dev/rdsk/c3t6d0

what's the o/p of both the commands?
never give up
bhavin asokan
Honored Contributor

Re: lifls command

hi,

see the following link.it clearly describes about this problem

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=92005


regds,


eric2
Occasional Contributor

Re: lifls command

diskinfo command only show the hardware infor about the harddisk, I think it doesn't concern this.

test#diskinfo /dev/rdsk/c0t6d0
SCSI describe of /dev/rdsk/c0t6d0:
vendor: HP 36.4G
product id: STXXXXXXXX
type: direct access
size: 35566480 Kbytes
bytes per sector: 512
Ravi_8
Honored Contributor

Re: lifls command

Hi

Propably you might have dumped this command while creating mirror

mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p LABEL /dev/rdsk/c3t6d0
never give up
twang
Honored Contributor

Re: lifls command

It is correct, only the following LIF files are required on both disks:
ISL; AUTO; HPUX; PAD
The rest are diagnostic utilities for HP-UX.
Geoff Wild
Honored Contributor

Re: lifls command

HP document LVMKBRC00005103, How to create a Mirrored Boot Disk on PA-RISC Systems - Cookbook, has information on how to mirror a root disk, at the bottom is a way to update the LIF files on a boot disk. The relevant section of the cookbook is below.



Installation of Offline Diagnostics (ODE) on Mirrored Boot Disks

The following hardware support tools are distributed on the Support Plus Media in the OnlineDiag swinstall bundle:

Support Tools Manager (STM)
EMS Hardware Monitors
HP Predictive Support tools (Series 800 only)
LIF-resident offline diagnostics (ODE)
There is an easy way to install the ODE to the mirror if you have already installed the OnlineDiag bundle.

First, check if your system is a pure 64 bit system:

# getconf HW_CPU_SUPP_BITS
The result is either 32, 32/64 or 64. If the system is a pure 64 bit systems (e.g. N-Class) the result is 64.

Check the existence of the updatediaglif and updatediaglif2 files:

# ll /usr/sbin/diag/lif/updatediaglif*

-r--r--r-- 1 bin bin 848896 May 7 17:29 /usr/sbin/diag/lif/updatediaglif
-r--r--r-- 1 bin bin 865280 May 7 17:29 /usr/sbin/diag/lif/updatediaglif2

We will use the updatediaglif2 file only for pure 64 bit systems (e.g. N-Class). For 32 bit systems or systems that support both CPU types (e.g K-Class) we use the updatediaglif file.

List the contents of the LIF directory of the mirror:

# lifls -l /dev/rdsk/c0t5d0
volume ISL10 data size 7984 directory size 8 96/05/28 04:10:13
filename type start size implement created
===============================================================
ISL -12800 584 240 0 96/05/28 04:10:13
AUTO -12289 824 1 0 96/05/28 04:10:13
HPUX -12928 832 848 0 96/05/28 04:10:13
PAD -12290 1680 1652 0 96/05/28 04:10:14
LABEL BIN 3336 8 0 99/01/25 06:00:41

Install the ODE LIF files with mkboot and protect (-p) the existing LIF files which you detected with lifls as described above.

For 32 bit and systems that support both 32 and 64 bit:

# mkboot -b /usr/sbin/diag/lif/updatediaglif \
-p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c0t5d0
For pure 64 bit systems:

# mkboot -b /usr/sbin/diag/lif/updatediaglif2 \
-p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c0t5d0
Check with

# lifls /dev/rdsk/c0t5d0
One will find additional LIF files.

volume ISL10 data size 7984 directory size 8 96/05/28 04:10:13
filename type start size implement created
===============================================================
ODE -12960 584 880 0 03/05/06 20:27:48
MAPFILE -12277 1464 128 0 03/05/06 20:27:48
SYSLIB -12280 1592 353 0 03/05/06 20:27:48
CONFIGDATA -12278 1952 249 0 03/05/06 20:27:48
SLMOD -12276 2208 133 0 03/05/06 20:27:48
SLDEV -12276 2344 204 0 03/05/06 20:27:48
SLDRIVERS -12276 2552 496 0 03/05/06 20:27:48
SLSCSI -12276 3048 117 0 03/05/06 20:27:48
MAPPER -12279 3168 234 0 03/05/06 20:27:48
IOTEST -12279 3408 208 0 03/05/06 20:27:48
PERFVER -12279 3616 198 0 03/05/06 20:27:48
PVCU -12801 3816 64 0 03/05/06 20:27:48
SSINFO -12286 3880 2 0 03/05/06 20:27:48
...


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.