Operating System - HP-UX
1752806 Members
5821 Online
108789 Solutions
New Discussion юеВ

Adding alternate SAN links to lvols

 
SOLVED
Go to solution
ConnieK
Regular Advisor

Adding alternate SAN links to lvols

I have vgextended 5 disks into one vg. I created a number of raw lvols in this vg. But when I did the lvextend for each one, I forgot to add the alternate paths. Is there a way just to add the alt paths (not mirrored) to the lv's?
Independent by nature
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: Adding alternate SAN links to lvols

Hi:

Alternate links, also known as 'pvlinks' are simply addtional paths to a physical volume. You add them with 'vgextend'.

The order of the pvlinks as recoreded for a volume group in '/etc/lvmtab' determines the primary and secondary link. To promote a secondary link to a primary one, 'vgreduce' the primary link and then add it back with 'vgextend'.

Regards!

...JRF...
ConnieK
Regular Advisor

Re: Adding alternate SAN links to lvols

Thanks James, but to clarify, I've already added the addtional pv's in the volume group. I'm asking how to add the alternate paths in for each lvol.

Ive already created the lvols and extended them onto the pv, like this:

lvextend -L 2048 /dev/vg01/lvol1 /dev/dsk/c7t2d0

but neglected to add in the alt paths when I lvextended them. Don't I need to lvextend over all 4 paths - one primary and 3 alternate?

I just need to know how to add the alternate paths onto each lvol.
Independent by nature
James R. Ferguson
Acclaimed Contributor
Solution

Re: Adding alternate SAN links to lvols

Hi (again) Connie:

Alternate links relate to a volume group and its physical volumes, not to a logical volume which is a subset of the volume group.

If, however, you have more than one alternate link to the volume group, simply use 'vgextend' to add up to seven alternate links in addition to your primary one.

Within a volume group, every logical volume is accessable by every pvlink to the volume group. There is nothing to do at the logical volume level.

LVM mirroring is done at the logical volume level.

Regards!

...JRF...
ConnieK
Regular Advisor

Re: Adding alternate SAN links to lvols

James - Thank you!!! I guess I thought I had to do the lvols too. DANKE!!!!!
Independent by nature
ConnieK
Regular Advisor

Re: Adding alternate SAN links to lvols

Closed -
Independent by nature
skt_skt
Honored Contributor

Re: Adding alternate SAN links to lvols

JUST DO
vgextend altpath1pv1 altpath2pv1 altpath1pv2 altpath2pv2 etc VGNAME

That is all u required. go through man page of vgextend/lvextend for any clarification.