#1889 PR merged: Print multipath device name during rescue when firendly_name is off

Labels: bug, fixed / solved / done

schabrolles opened issue at 2018-08-03 16:38:

Relax-and-Recover (ReaR) Pull Request Template

Please fill in the following items before submitting a new pull request:

Pull Request Details:
  • Type: Bug Fix

  • Impact: Low

  • Reference to related issue (URL): https://github.com/rear/rear/issues/1883
    starting at https://github.com/rear/rear/issues/1883#issuecomment-410248135
    and subsequent comments.

  • How was this pull request tested?
    tested with SLES12SP3

  • Brief description of the changes in this pull request:
    When loading multipath devices in rescue mode, ReaR rescue print to the user the name / UUID / size of the discovered multipath device.
    if multipath is used with "friendly_name" option, the output of the command multipath -l is

<friendly_mpath_name> (<mpath UUID>) <dm-name> <Vendor, type>
rootvg (3600507680c82004cf800000000000306) dm-2 IBM     ,2145

while it is a bit different when "friendly_name" is disabled

<mpath UUID> <dm-name> <Vendor, type>
36005076400810051380000000000007b dm-2 IBM,2145

=> "dm-" can be the 3rd or 2nd field.....
This means we have to adjust the awk to print the line where "dm-" appears and not when "dm-" is the 3rd field.

schabrolles commented at 2018-08-06 10:02:

@jsmeix ... I don't know ... :) please add/correct it.

jsmeix commented at 2018-08-06 10:34:

@schabrolles
many thanks for your fix!

schabrolles commented at 2018-08-06 11:28:

@jsmeix , many thanks for the comment, you are right it is better ...
I was looking at something missing into the code :) ...


[Export of Github issue for rear/rear.]