1753720 Members
5089 Online
108799 Solutions
New Discussion юеВ

Re: Read LIF Header

 
SOLVED
Go to solution
PVR
Valued Contributor

Read LIF Header

Hi Champs

I use the following command to read PVRA of a disk in HP-UX 11.11

echo "0x2008?4D" | adb /dev/dsk/c5t1d0

This shall give me CPU ID, PV ID etc. from the LVM header of the disk.

But when I try the same command in 11.23 and 11.31, it didn't give me anything. It simple hangs....Is there any difference in the LVM structure in 11.23 and 11.31 ?

Thanks in advance :)
Don't give up. Try till success...
5 REPLIES 5
PVR
Valued Contributor

Re: Read LIF Header

Please read the subject as " Read LVM header"
Don't give up. Try till success...
James R. Ferguson
Acclaimed Contributor
Solution

Re: Read LIF Header

HI:

Add the backward compatability switch to 'adb' on 11.23 or later:

# echo "0x2008?4D" | adb -o /dev/dsk/c5t1d0

Regards!

...JRF...
Sajjad Sahir
Honored Contributor

Re: Read LIF Header

data1#lifls -l /dev/dsk/c0t6d0
volume ISL10 data size 7984 directory size 8 02/05/10 16:25:44
filename type start size implement created
===============================================================
ISL -12800 584 306 0 02/05/10 16:25:44
AUTO -12289 896 1 0 02/05/10 16:25:44
HPUX -12928 904 848 0 02/05/10 16:25:44
PAD -12290 1752 1580 0 02/05/10 16:25:45
LABEL BIN 3336 8 0 04/10/07 07:27:48
PVR
Valued Contributor

Re: Read LIF Header

Thanks much guys :)
Don't give up. Try till success...
Dennis Handly
Acclaimed Contributor

Re: Read LIF Header

>echo "0x2008?4D" | adb /dev/dsk/c5t1d0

Instead of using confusing adb, you should use xd:
# xd -tx4 -j 0x2008 -N 16 /dev/dsk/c5t1d0

See:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1148338