1836440 Members
3516 Online
110100 Solutions
New Discussion

Re: PV links

 
SOLVED
Go to solution
bbsupport
Advisor

PV links

How do i go about reversing primary and alternate links without affecting the filesystem. I want to make the primary link the Alternate one and vice versa
3 REPLIES 3
Peggy Fong
Respected Contributor
Solution

Re: PV links

I'll take a stab at this one.

If you mean that when you do a vgdisplay on this vg you have a disk and then an alternate link. Then to reverse this you would do a vgreduce of the disk that is the primary disk in the group. That makes the alternate the primary. Then do an vgextend of the volume group and add in the disk you just reduced out. That will make the disk the alternate link.

This can be done online...since they are the same disk physically so one should always be available. Make sure there are no hardware problems...

HTH,
Peggy
Gadura Praveen
Frequent Advisor

Re: PV links

For the purpose of explanation , let assume your primary as "p1" and alternate as "a1".if you execute :-

# pvchange -s "a1"

then the vgdisplay on the volume group will show you "a1" as the primary and "p1" as the alternate. This command does not change the order in which the disks appear in lvmtab file and so the change will be in effect until you reboot the server. In order to permanently apply the change , execute :-

# vgreduce /dev/vgxx "p1"
followed by
# vgextend /dev/vgxx "p1"

Good luck !!
bbsupport
Advisor

Re: PV links

Thanks