Operating System - HP-UX
1752812 Members
6190 Online
108789 Solutions
New Discussion юеВ

How do I identify the VG from the syslog

 
SOLVED
Go to solution

How do I identify the VG from the syslog



Hi There,

Is there a simple way to identify which volume group VG25 belongs? I have appended a sample message from the syslog below.
Recovered Path (device 0x1f0f9700) to PV 6 in VG 25.
7 REPLIES 7
G. Vrijhoeven
Honored Contributor
Solution

Re: How do I identify the VG from the syslog

Hi,

What you can do is: ll -R /dev/ | grep 1f0
this will give you a device file. Check strings /etc/lvmtab for vginfo if it happens to be a disk.

HTH,

Gideon
A. Clay Stephenson
Acclaimed Contributor

Re: How do I identify the VG from the syslog

Probably the most straightforward method would be to do a strings /etc/lvmtab and note the VG that /dev/dsk/c15t9d7 falls under. 1f = Blk device; 0f = c15; '9' = t9, 7 = d7, 00 -- n/a.
If it ain't broke, I can fix that.
Sridhar Bhaskarla
Honored Contributor

Re: How do I identify the VG from the syslog

Hi,

It is the order of VG that appears in /etc/lvmtab determines it. Similarly the order of PV under that VG in /etc/lvmtab determines the PV in question. A simple way is to find the device file first

ll /dev/dsk |grep 0x1f0f9700

strings /etc/lvmtab |more

search for the above device file and the corresponding VG.

Otherway is

strings /etc/lvmtab |grep vg |sed -n '26p' will show you 25th VG as the numbers start from 0.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
A. Clay Stephenson
Acclaimed Contributor

Re: How do I identify the VG from the syslog

Plan B.
Simply do a vgdisplay -v so that all VG's will be displayed.

vgdisplay -v > myfile
Now vi myfile and search for /dev/dsk/c15t9d7.
If it ain't broke, I can fix that.

Re: How do I identify the VG from the syslog

Thanks....Chris.
James A. Donovan
Honored Contributor

Re: How do I identify the VG from the syslog

....actually it's really easy to identify the volume group

the number 25 is actually the decimal representation of the first two hexadecimal digits in the /dev/vgXXX/group minor number.

So busting out the old decimal->hexadecimal converter (aka the Windows scientific calculator, calc...see Window IS good for something! ;-))

25 decimal is equivalant to 0x19 hexadecimal.

So the volume group you need has a minor number of 0x190000, and your problem is with the 6th disk (which should be c15t9d7) in that volume group.

Remember, wherever you go, there you are...

Re: How do I identify the VG from the syslog

Right on target!....Excellent! Thanks!

crw-rw-r-- 1 root sys 64 0x190000 May 8 2003 /dev/vgarchs1a/group

....I tried Sri's method ...it did not work because we have only 11 VG's.