Operating System - HP-UX
1830895 Members
1795 Online
110017 Solutions
New Discussion

switching controlers primary path

 
SOLVED
Go to solution
Jason_309
Regular Advisor

switching controlers primary path

I would like to change the following around and make the primary the secondary and secondary primary.

/dev/dsk/c4t3d0 16384 16384
/dev/dsk/c6t11d0 16384 16384
8 REPLIES 8
DCE
Honored Contributor
Solution

Re: switching controlers primary path

Jason

vgreduce the primary path device
This will make the alternate the new primary

vgextend the just reduced disk
This will add it as an alternate
Jason_309
Regular Advisor

Re: switching controlers primary path

That simple... Great thanks.
Jason_309
Regular Advisor

Re: switching controlers primary path

Thanks
Thomas J. Harrold
Trusted Contributor

Re: switching controlers primary path

You can use "pvchange" to immediately set the primary disk:

pvchange -s /dev/dsk/c6t11d0


(no need to specify the VG)

-tjh
I learn something new everyday. (usually because I break something new everyday)
Torsten.
Acclaimed Contributor

Re: switching controlers primary path

But "pvchange -s" is only valid until next reboot, because /etc/lvmtab will remain unchanged.

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!   
Jason_309
Regular Advisor

Re: switching controlers primary path

I tried this on the a test and then do a vgdiplay and it shows the original disk as primary.
Jason_309
Regular Advisor

Re: switching controlers primary path

I tried the pvchange -s, but when i do a lvdisplay -v, it still shows the same disk as the primary disk.
Jason_309
Regular Advisor

Re: switching controlers primary path

thanks