Operating System - HP-UX
1823959 Members
5144 Online
109667 Solutions
New Discussion юеВ

checking availability of pvlink

 
michael averkorn
Occasional Advisor

checking availability of pvlink

Hello,

how can i check the availybitity of a pvlink. After i change the status with pvchange -a n /dev/dsk/c13t0d0 i don't see a diverence with pvdisplay.

Thanks !
16 REPLIES 16
Steven E. Protter
Exalted Contributor

Re: checking availability of pvlink

Shalom,

ioscan -fnC disk


insf -C disk

That should get things visible.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
michael averkorn
Occasional Advisor

Re: checking availability of pvlink

Thanks.

I see the disk. But when i detach a disk with pvchange -a n , how can i see that this disk (or pvlink) is detached ??
When i detached a disk and his pvlinks , i see it with pvdisplay "PV Stauts unavailable"
Torsten.
Acclaimed Contributor

Re: checking availability of pvlink

Of course you see the disk in ioscan - it will NOT disappear!!!

Please read the man page!

http://docs.hp.com/en/B2355-60130/pvchange.1M.html
(this is 11.31, but anyway ...)

"...

A detached path is not available for LVM to use

..."


If you detach, let's say a disk from vg00 and run

vgdisplay -v vg00

you will see this disk as

unavailable!


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!   
michael averkorn
Occasional Advisor

Re: checking availability of pvlink

PV Name /dev/dsk/c15t0d4
PV Name /dev/dsk/c13t0d4 Alternate Link
PV Name /dev/dsk/c17t0d4 Alternate Link
PV Name /dev/dsk/c19t0d4 Alternate Link
PV Status available
Total PE 638
Free PE 446
Autoswitch On
Proactive Polling Off

c15t0d4 is primary path. after
pvchange -a n /dev/dsk/c15t0d4
Warning: Detaching a physical volume reduces the availability of data
within the logical volumes residing on that disk.
Prior to detaching a physical volume or the last available path to it,
verify that there are alternate copies of the data
available on other disks in the volume group.
If necessary, use pvchange(1M) to reverse this operation.
Physical volume "/dev/dsk/c15t0d4" has been successfully changed.
PV Name /dev/dsk/c13t0d4
PV Name /dev/dsk/c15t0d4 Alternate Link
PV Name /dev/dsk/c17t0d4 Alternate Link
PV Name /dev/dsk/c19t0d4 Alternate Link
PV Status available
Total PE 638
Free PE 446
Autoswitch On
Proactive Polling Of
now c15t0d4 is detach and alernate link. but how can i check , after a week or so , that c15t0d4 was detached.
when i detach the other one (c13.., c17.., c19..) the pv status change to unavailable. this should not happen !!!
Torsten.
Acclaimed Contributor

Re: checking availability of pvlink

"this should not happen !!!"

Why not?

The reason for this command is to prevent any LVM access to a disk in order to replace the disk.

See

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf


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!   
michael averkorn
Occasional Advisor

Re: checking availability of pvlink

i want to detach the pv's of one fabric (for service). later i will change the pvlinks to the other fabric. now i look for a command to check on which fabric are the pv's detached .
Torsten.
Acclaimed Contributor

Re: checking availability of pvlink

If you have 2 "disks" in 2 fabrics, you don't want to detach only a single alternate links, but *all* links to this disk in this single fabric, right. Look for
pvchange -a N ...

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!   
michael averkorn
Occasional Advisor

Re: checking availability of pvlink

no. i have one disk with 4 ways in 2 fabrics ! so i have to detach two ways for our service.

VG DISK CLARIION SP IP ALTERLINK LUN LUNDEZ HWP
vg11 - c15t0d4 - CKxxxxxxxxx - A - xxx.xx.xx.xxx - - 0x00e4 - 228 - 42.13
vg11 - c13t0d4 - CKxxxxxxxxx - B - xxx.xx.xx.xxx - Alternate - 0x00e4 - 228 - 41.13
vg11 - c17t0d4 - CKxxxxxxxxx - A - xxx.xx.xx.xxx - Alternate - 0x00e4 - 228 - 61.13
vg11 - c19t0d4 - CKxxxxxxxxx - B - 172.30.14.214 - Alternate - 0x00e4 - 228 - 62.13

Torsten.
Acclaimed Contributor

Re: checking availability of pvlink

Do you have another multipathing software installed (powerpath by chance)?

In this case the software may work below the pvlinks level - this is the place where you need to look.

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!   
michael averkorn
Occasional Advisor

Re: checking availability of pvlink

we have not installed powerpath. we use mpio of hp-ux.
Miguel Carabano_1
Regular Advisor

Re: checking availability of pvlink

Hi Michael,

What is your storage model ?

You can use AutoPath or SecurePath.
michael averkorn
Occasional Advisor

Re: checking availability of pvlink

we use emc cx-700 !
No pwerpath only hp-ux 11.11 .
Torsten.
Acclaimed Contributor

Re: checking availability of pvlink

Where did this output came from?

VG DISK CLARIION SP IP ALTERLINK LUN LUNDEZ HWP
vg11 - c15t0d4 - CKxxxxxxxxx - A - xxx.xx.xx.xxx - - 0x00e4 - 228 - 42.13
vg11 - c13t0d4 - CKxxxxxxxxx - B - xxx.xx.xx.xxx - Alternate - 0x00e4 - 228 - 41.13
vg11 - c17t0d4 - CKxxxxxxxxx - A - xxx.xx.xx.xxx - Alternate - 0x00e4 - 228 - 61.13
vg11 - c19t0d4 - CKxxxxxxxxx - B - 172.30.14.214 - Alternate - 0x00e4 - 228 - 62.13

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!   
michael averkorn
Occasional Advisor

Re: checking availability of pvlink

a perl-script generate this output .
Fabien GUTIERREZ
Frequent Advisor

Re: checking availability of pvlink

u may get availability of your path by a command such as diskinfo but if u want to change some fabric configuration what u ll need is a vgreduce of old path and vgextend of newly discovered path
michael averkorn
Occasional Advisor

Re: checking availability of pvlink

Sorry ! I did not found a easy solution. Now i attach all volumes and then i detach the volumes of one fabric. so it works !
Thanks all !!!