mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
device_id: change default search_for_devnames to all
Problematic scenario: . the device for a PV has no wwid, so it's identified in system.devices with IDTYPE=devname IDNAME=/dev/foo . user adds/enables a wwid for the device . on reboot, the device name changes, e.g. now /dev/bar . the code that searches for the new device name includes an optimization to skip looking on devs that have a wwid, on the basis that a device with a wwid won't have IDTYPE=devname . this optimization causes lvm to not look for the PV on /dev/bar since that device now has a wwid, so the PV is not found . the optimization is enabled by search_for_devnames="auto" . change the default to search_for_devnames="all" which does not use the problematic optimization
This commit is contained in:
parent
37773c1055
commit
35cefa50fa
@ -330,7 +330,7 @@
|
|||||||
|
|
||||||
#define DEFAULT_DEVICES_FILE "system.devices"
|
#define DEFAULT_DEVICES_FILE "system.devices"
|
||||||
|
|
||||||
#define DEFAULT_SEARCH_FOR_DEVNAMES "auto"
|
#define DEFAULT_SEARCH_FOR_DEVNAMES "all"
|
||||||
|
|
||||||
#define DEFAULT_WWIDS_FILE "/etc/multipath/wwids"
|
#define DEFAULT_WWIDS_FILE "/etc/multipath/wwids"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user