Skip to content

Commit

Permalink
refresh udev with trigger before activating multipath
Browse files Browse the repository at this point in the history
Insure that all informations from multipath devices are updated by udev
into /sys before activating multipath. This is one of the root cause
of issues rear#2002 and rear#2016
  • Loading branch information
schabrolles committed Feb 4, 2019
1 parent 40e9072 commit 03228ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions usr/share/rear/layout/prepare/GNU/Linux/210_load_multipath.sh
Expand Up @@ -33,6 +33,12 @@ blacklist {
fi
fi

# it is recommended to reload udev in order to have /sys updated with information from all the device path before activating multipath.
# This could avoid situation like https://github.com/rear/rear/issues/2016 and https://github.com/rear/rear/issues/2002
udevadm control --reload-rules
udevadm trigger

# multipath activation.
LogPrint "Activating multipath"
list_mpath_device=1
modprobe dm-multipath >&2 && LogPrint "multipath activated" || LogPrint "Failed to load dm-multipath module"
Expand Down

1 comment on commit 03228ff

@jsmeix
Copy link

@jsmeix jsmeix commented on 03228ff Feb 22, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@schabrolles
I think you should merge that into ReaR master code, cf.
rear#2019 (comment)

Please sign in to comment.