Skip to content

Commit

Permalink
more logging for detected multipath and bios raids
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed May 17, 2018
1 parent a9dc168 commit c7760c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/BootStorage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,12 @@ def stage1_disks_for(device)
# to the real disk.
multipaths = component.select { |a| a.is?(:multipath) }
multipath_wires = multipaths.each_with_object([]) { |m, r| r.concat(m.parents) }
log.info "multipath devices #{multipaths.inspect} and its wires #{multipath_wires.inspect}"

# And same for bios raids
bios_raids = component.select { |a| a.is?(:bios_raid) }
raid_members = bios_raids.each_with_object([]) { |m, r| r.concat(m.parents) }
log.info "bios_raids devices #{multipaths.inspect} and its members #{multipath_wires.inspect}"

result = multipaths + disks + bios_raids - multipath_wires - raid_members

Expand Down

0 comments on commit c7760c2

Please sign in to comment.