Linux LVM with EMC powerpath
How you plan to use Linux LVM with a multipathing software like EMc powerpath?
The trick is to mask out the non emcpower devices from LVM view. This is to ensure any path failure is handled by the multipathing software rather than LVM itself. The underlying path management complexity is offloaded to multipathing software. When the command pvscan, is issued you see only the emcpower devices.
You will have to enable the filter for accepting the emcpower devices and reject all the non emcpower devices inside /etc/lvm/lvm.conf file
filter =[ "a|/dev/emcpower.*|", "r|/dev/sd*|", "r|/dev/cdrom|" ]
Ensure only one filter is enabled.
The trick is to mask out the non emcpower devices from LVM view. This is to ensure any path failure is handled by the multipathing software rather than LVM itself. The underlying path management complexity is offloaded to multipathing software. When the command pvscan, is issued you see only the emcpower devices.
You will have to enable the filter for accepting the emcpower devices and reject all the non emcpower devices inside /etc/lvm/lvm.conf file
filter =[ "a|/dev/emcpower.*|", "r|/dev/sd*|", "r|/dev/cdrom|" ]
Ensure only one filter is enabled.
Thank you, Rupesh - this is just what I was looking for and needed! Appreciate it!
ReplyDeleteThis is good stuff Rupesh, thanks. Do you know if the same is required when using native Linux multipathing?
ReplyDeleteNo, this rule isn't needed when using multipath. By the way, EMC doesn't recommend using multipath and powepath turned on simultaneously.
ReplyDeleteReally good stuff. An old and useful post!