Révision 22 bin/get-disk-info
get-disk-info (revision 22) | ||
---|---|---|
39 | 39 |
if [[ -e /sbin/multipath ]] || [[ -e /usr/sbin/multipath ]] || [[ -e /usr/local/sbin/multipath ]] |
40 | 40 |
then |
41 | 41 |
|
42 |
resultMulti=$(multipath -l $DEVBYID |sed -e 's/(/disk_id=/g' |sed -e 's/)//g'|cut -d " " -f2 |grep disk_id|cut -d '=' -f2) |
|
42 |
resultMulti=$(multipath -v 2 -l $DEVBYID |sed -e 's/(/disk_id=/g' |sed -e 's/)//g'|cut -d " " -f2 |grep disk_id|cut -d '=' -f2)
|
|
43 | 43 |
if [ "$resultMulti" != "" ] |
44 | 44 |
then |
45 | 45 |
while read liner |
Formats disponibles : Unified diff