Skip to content

Commit

Permalink
BUG: Multipath partition not found in rhel7.2
Browse files Browse the repository at this point in the history
RHEL 7 is naming multipath partition in a different way :
/dev/mpath1 instead of /dev/mpathp1 or /dev/mpath-part1 etc ...
  • Loading branch information
schabrolles committed Jun 10, 2016
1 parent 673732b commit 2be0a14
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -34,7 +34,7 @@ extract_partitions() {
if [[ ${#sysfs_paths[@]} -eq 0 ]] ; then
### try to find partitions like /dev/mapper/datalun1p1
if [[ ${device/mapper//} != ${device} ]] ; then
for path in ${device}p[0-9]* ${device}-part* ${device}_part*; do
for path in ${device}p[0-9]* ${device}[0-9] ${device}-part* ${device}_part*; do
sysfs_path=$(get_sysfs_name $path)
if [[ "$sysfs_path" ]] && [[ -e "/sys/block/$sysfs_path" ]] ; then
sysfs_paths=( "${sysfs_paths[@]}" "/sys/block/$sysfs_path" )
Expand Down

0 comments on commit 2be0a14

Please sign in to comment.