Operating System - HP-UX
1833838 Members
2439 Online
110063 Solutions
New Discussion

Re: lvmtab can't tell alternate link

 
SOLVED
Go to solution
zhaogui
Super Advisor

lvmtab can't tell alternate link

Is it true that the sequence order of disk files for each VG in `strings /etc/lvmtab` does not tell you which one is primary path and which one is alternate link, the only way to do this is running "vgdisplay -v"
4 REPLIES 4
Justo Exposito
Esteemed Contributor
Solution

Re: lvmtab can't tell alternate link

Hi,

Yes, it is.
When you do a strings lvmtab the first is the primary and the second is the alternate.

In order to see clear you must to use vgdisplay -v.

Regards,

Justo.
Help is a Beatiful word
U.SivaKumar_2
Honored Contributor

Re: lvmtab can't tell alternate link

Hi,
it is false.
order in /etc/lvmtab really matters. Even vgdisplay will report on the basis of order of
links in /etc/lvmtab.

regards,
U.SivaKumar
Innovations are made when conventions are broken
Justo Exposito
Esteemed Contributor

Re: lvmtab can't tell alternate link

Hi,

If you want to change the primary and alternate, you can do it online by:

Changing PV Link order
To make an alternate link become the primary link (manual switch) use pvchange:
# pvchange -s
To change it permanently (across VG deacivation) you have to change the order in
/etc/lvmtab:
# vgreduce vg01
Device file path "/dev/dsk/c0t1d0" is a primary link. Removing
primary link and switching to an alternate link.
# vgextend vg01

Regards,

Justo.
Help is a Beatiful word
Juan Manuel López
Valued Contributor

Re: lvmtab can't tell alternate link

to update the lvmtab file, use " vgscan " command.

I hope this help you.

Juanma.
I would like to be lie on a beautiful beach spending my life doing nothing, so someboby has to make this job.