Operating System - HP-UX
1824983 Members
3879 Online
109678 Solutions
New Discussion юеВ

Re: Remove Alternate path

 
Christine Nguyen
Occasional Advisor

Remove Alternate path

I have VGs and using PVlink, I want to remove
the alternate link.

In vgdisplay:

--- Physical volumes ---
PV Name /dev/dsk/c15t0d3
PV Name /dev/dsk/c16t0d3 Alternate Link
PV Name /dev/dsk/c16t0d4
PV Name /dev/dsk/c15t0d4 Alternate Link

In lvmtab:

/dev/vg02
/dev/dsk/c15t0d3
/dev/dsk/c16t0d4
/dev/dsk/c16t0d3
/dev/dsk/c15t0d4

If I do:

#vgreduce /dev/vg02 /dev/dsk/c16t0d3
#vgreduce /dev/vg02 /dev/dsk/c15t0d4
#vgreduce -f /dev/vgqas02


then do strings lvmtab, I'll see 2 primary disks only:
/dev/vg02
/dev/dsk/c15t0d3
/dev/dsk/c16t0d4

Please advise the right procedure to remove the alternate link.

Thanks.






7 REPLIES 7
A. Clay Stephenson
Acclaimed Contributor

Re: Remove Alternate path

Except for this step from out of the blue:
vgreduce -f /dev/vgqas02
you did everything correctly although it's unusual to remove alternate links -- if they are still valid.
If it ain't broke, I can fix that.
Christine Nguyen
Occasional Advisor

Re: Remove Alternate path

Typo error, should be:
#vgreduce -f /dev/vgs02




Christine Nguyen
Occasional Advisor

Re: Remove Alternate path

Typo error, should be:
#vgreduce -f /dev/vg02




A. Clay Stephenson
Acclaimed Contributor

Re: Remove Alternate path

You don't need that step.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: Remove Alternate path

Hi Christine:

Typographical error or not, there is no need to do 'vgreduce -f'.

Eliminating an alternate (pvlink) is as simple as doing the 'vgreduce '.

Usually, you remove the *primary* link, which promotes the *alternate* link to a primary, and then 'vgextend' the former primary link thereby adding it as the new alternate link. This is the method by which you swap primary and alternate links to achieve path balancing.

Regards!

...JRF...
Christine Nguyen
Occasional Advisor

Re: Remove Alternate path

I used pvlink to balance the load in the emc storage array, because of the powerpath s/w requires no pvlink, therefore I need to remove all alternate paths. So I don't need to do the last cmd ?
James R. Ferguson
Acclaimed Contributor

Re: Remove Alternate path

Hi Christine:

If by the "last command" you mean the 'vgreduce -f', then no.

See the 'vgreduce' manpages for more information.

Regards!

...JRF...