Test Description
This test ensures that local drives are excluded from the multipath configuration file (multipath.conf
) blacklists.
This test case fails if:
- There is a local multipath device without a device-specific blacklist rule against it.
This test case passes if:
- There are no device no local multipath devices, or all local multipath devices are blacklisted in the multipath confugration.
How-to fix this test
Automatic fix
The automatic fix:
- Adds local device blacklist rules to the configuration file.
- Creates 2 files for user inspection before completing:
/etc/multipath.conf.[timestamp].full
- this file contains the current configuration.
Note that this file will include all multipath configuration, including default built-in values that the multipath service uses. This means that this file may contain more values than those already written in the configuration file (in/etc/multipath.conf
)/etc/multipath.conf.[timestamp].fixed
- this is the new file that will be used after the fix is completed.- Use a diff tool to compare these two files before confirming the fix.
- Removed the files once the fix completes. The files are not removed if the fix is not applied (e.g. if the user decides not to apply the automatic fix).
- Once applied, the fix creates a backup of the old configuration file, in
/etc/multipath.conf.[timestamp].bak
. - The fix will also creates a
grub
entry that the user may use to revert to the old configuration on startup, if needed.
This fix requires a reboot for the changes to take effect.
Manual fix
Run multipath -ll
and manually add blacklist rules for local devices to the configuration file.
Last edited: 2018-01-18 16:47:57 UTC
Comments