20120914

CleanUp Multipath, Remove Failed Faulty Device

# for i in /sys/class/scsi_host/host*/scan
> do echo "- - -" > $i
> done
# DEV=`multipath -ll | grep failed | awk '{print $3}'`
# for i in $DEV
> do echo 1 > /sys/block/${i}/device/delete
done

3 comments:

  1. Anonymous5:24 AM

    Grazie molte... ha funzionato.
    Thank you very much...it worked.

    ReplyDelete
  2. multipath -f should be enough

    ReplyDelete
  3. Anonymous12:04 AM

    Cool for RH6.6

    But for RH7.1
    [root@L28UMBUSSD01 block]# multipath -ll
    LUN1 (3600c0ff00025f563f450fa5601000000) dm-0 ,
    size=466G features='0' hwhandler='0' wp=rw
    `-+- policy='round-robin 0' prio=0 status=enabled
    |- #:#:#:# - #:# failed faulty running
    |- #:#:#:# - #:# failed faulty running
    |- #:#:#:# - #:# failed faulty running
    `- #:#:#:# - #:# failed faulty running
    LUN0 (3600c0ff00025f7042951055701000000) dm-1 HP ,MSA 2040 SAN
    size=466G features='0' hwhandler='0' wp=rw
    `-+- policy='round-robin 0' prio=1 status=active
    |- 4:0:0:0 sdc 8:32 active ready running
    |- 3:0:0:0 sdb 8:16 active ready running
    |- #:#:#:# - #:# failed faulty running
    `- #:#:#:# - #:# failed faulty running

    ReplyDelete