Operating System - HP-UX
1820906 Members
4754 Online
109629 Solutions
New Discussion

Re: Turn off LVM autoswitch (pvchange -S n)

 
Daniel Neeves
Advisor

Turn off LVM autoswitch (pvchange -S n)

Question is, does running this command on a disk device file update the LVM structure on the physical disk and thus it will be persistent across a reboot or is it like the -s (lowercase s) which will only survive until VG is restarted on server is rebooted ?

Also, we run S/G here so I'm assuming if the command pvchange -S (uppercase S) is run it only needs to be run on one node in the cluster.

Thanks
Dan
Like Ya Know !!
5 REPLIES 5
whiteknight
Honored Contributor

Re: Turn off LVM autoswitch (pvchange -S n)

Dan,

What LVM cumulative patch you are installing ?

The pvchange command provides several options for managing LVM
behavior with paths:
â ¢ The -s (lower case s) option (immediate switch) requests that the
specified path be used for all future I/O.

â ¢ The -S (upper case s) option (autoswitchback) when set (default
value), tells LVM to automatically switch to the best available path. When
autoswitchback is disabled, LVM will still switch paths when the current path
becomes unavailable, but it will not switch back to a higher priority path
that returns. The pvdisplay command will show the current autoswitchback
setting.

WK
Problem never ends, you must know how to fix it
Daniel Neeves
Advisor

Re: Turn off LVM autoswitch (pvchange -S n)

If you meant what LVM patch do we have installed its PHKL_34518. I know what the switches to pvchange do, I wanted to know if issuing a pvchange -S disk/device would remain after reboot and would it also remain after failover to alternative node in S/G cluster.
Like Ya Know !!
Denver Osborn
Honored Contributor

Re: Turn off LVM autoswitch (pvchange -S n)

It's similar to setting the pv timeout (-t). Yes, changes to the autoswitch setting will survive a reboot. You can make the change from the active node and you're done.

-denver
whiteknight
Honored Contributor

Re: Turn off LVM autoswitch (pvchange -S n)

Dan,

Yes, -S it will remain even after you reboot.

WK
Problem never ends, you must know how to fix it
Daniel Neeves
Advisor

Re: Turn off LVM autoswitch (pvchange -S n)

Thanks guys. Managed to test it yesterday to confirm your answers.
Like Ya Know !!