1824809 Members
4058 Online
109674 Solutions
New Discussion юеВ

volumes on prefered path

 
SOLVED
Go to solution
Garry Taylor_3
Occasional Advisor

volumes on prefered path

My volume groups created on a STK D280 will not stay on the prefered paths , I put them on controller A or B and they fail over to the other path after about 30 sec and stay there. How can I check the prefered path in lvm. My os is 11.11 Is there a command I can run for each CxTxDx
6 REPLIES 6
Muthukumar_5
Honored Contributor

Re: volumes on prefered path

lvdisplay -v

Autoswitch parameter is deciding that.

hth.
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: volumes on prefered path

# pvchange -S autoswitch pv_path will ask for input.

y LVM is directed to automatically
switch from the path it is using
whenever a better path to the
physical volume is available. LVM
will switch paths when a better
path recovers (after it had failed
earlier), or if the current path
fails and another path is
available. This is the default.

n LVM is directed to automatically
switch to using the best available
path only when the path currently
in use is unavailable. LVM will
continue using a specific path for
the physical volume as long as it
works, regardless of whether
another better path recovers from a
failure.

hth.
Easy to suggest when don't know about the problem!
Garry Taylor_3
Occasional Advisor

Re: volumes on prefered path

Thank you, so I can run the lvdisplay command and it will show me the prefered path and the alternate path, how can I change the prefered path to the alternate path
RAC_1
Honored Contributor

Re: volumes on prefered path

man pvchange
pvchange -s

(lowercase s option)
There is no substitute to HARDWORK
Muthukumar_5
Honored Contributor
Solution

Re: volumes on prefered path

To manually switch a physical volume to use another controller path:

# pvchange -s disk

hth.
Easy to suggest when don't know about the problem!
Bharat Katkar
Honored Contributor

Re: volumes on prefered path

Even SAM would do it for you

# sam
Disk and FileSystems
Disk Devices
Choose the disk Path
Select Actions TAB

Regards,
You need to know a lot to actually know how little you know