Red Hat Bugzilla – Bug 1477203
disable-multipath.sh script does not add the lines required to blacklist devices in /etc/multipath.conf file.
Last modified: 2017-08-02 07:53:19 EDT
Description of problem:
disable-multipath.sh script does not add the lines required to blacklist multipath devices in /etc/multipath.conf file.
This happens due to the reason that multipathd is running and in the script there is a line to flush all the multipath entries and this does not work due to the reason that multipath map is in use. When this line in script returns a non zero value script terminates and rest of the script does not get executed.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install RHEL / RHV-H
2. Now login to cockpit and configure 'Hosted Engine with gluster'
Once the deployment is done, entries to black list multipath devices are not present in /etc/multipath.conf file
Entries to black list multipath devices should be added to /etc/multipath.conf
Not proposing this as a blocker for now due to the fact that we are not aware of the steps on how to flush and black list devices when multipathd is running. Once we have the steps i will propose this as blocker.
Do you know or point me to someone who would know the steps to blacklist devices?
What's currently in place as per https://github.com/gluster/gdeploy/blob/2.0.2/extras/scripts/blacklist_all_disks.sh :
1. call multipath -F
2. edit /etc/multipath.conf to blacklist devices
This errors out in step 1.