This widget could not be displayed.
Operating System - HP-UX
1845515 Members
2567 Online
110244 Solutions
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
New Discussion
This widget could not be displayed.
This widget could not be displayed.

Re: Cheking that PVLINKS configured correctly

 
farid S
Frequent Advisor

Cheking that PVLINKS configured correctly

Hi,
I had one xp128 connected to 2 superdomes which are running an "SG/oracle Rac" cluster. the paltform was formerly configured and monitored by another Admin. Now, I need to do some maintenance on one of the redundant SAN switches which induce down time. I need to make sure that all the pvlinks are configured correctly (I have doubt about that). So is there a way to check that the config is ok ?

(the disks are presented in Open-e 13 GB each which make the config impossible to check manually: I have nearly 800 LUN !)

Many thaks,
Farid
6 REPLIES 6
Calandrello
Trusted Contributor

Re: Cheking that PVLINKS configured correctly

Friend
when you execute the command:
xpinfo - i |grep /dev/dsk/cxxtxxxx
anger to appear lunid it executes the command: xpinfo - i |grep lunid anger then to appear all alternate path after this vgxxx verifies with the command vgdisplay -v if all the devices that are alternates are added inside of the VG.
Coolmar
Esteemed Contributor

Re: Cheking that PVLINKS configured correctly

Hi,

With vgdisplay -v you should see the following:

PV Name /dev/dsk/c3t5d6
PV Name /dev/dsk/c6t5d6 Alternate Link

The only way that I knew to test them to ensure they worked was to physically unplug the FC cables to test fail-over. I pulled the primary first - did a bdf (took a few seconds to come back) - then plugged it back in - waited around 5 minutes; then pulled the alternate.
Kevin Wright
Honored Contributor

Re: Cheking that PVLINKS configured correctly

sure, check all your pvlinks with strings /etc/lvmtab;vgdisplay -v;xpinfo -il
farid S
Frequent Advisor

Re: Cheking that PVLINKS configured correctly

Guys,

Thaks for the various and valuable hints you gave. But, I'm asking about any utility or home mad script that helps me get a descent human readable form of the output. I'm telling you this because I had a bout 450 LUN to check ??!!!

Many thanks,
Farid.
Torsten.
Acclaimed Contributor

Re: Cheking that PVLINKS configured correctly

Hi,

you could try to ask your hp account support for the "switchxp" script - it combines the various lvm data with xpinfo.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Heironimus
Honored Contributor

Re: Cheking that PVLINKS configured correctly

Attached is a quick awk script I wrote for a similar situation. I have a better one in perl, but it does a lot more and would be a lot harder to customize for your exact needs.

The script has instructions at the top, but the short version is that you pipe "vgdisplay -v" in to the script and it prints a summary for every PV it finds. It just uses standard input and standard output so pipes and I/O redirection should work exactly how you expect.

You can run it all as a non-root user. It will probably take a while to go through that many devices.