heizenbrg

Untitled

Nov 18th, 2021 (edited)
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. #!/bin/bash
  2. multipath_conf=/etc/multipath.conf
  3. overrides_conf="no_path_retry 50"
  4. grep -e "no_path_retry fail" "$multipath_conf"
  5. echo "$?"
  6. if [[ $? -ne '0' ]]; then
  7. printf "%s\n" " " "overrides {" " $overrides_conf" "}" > $multipath_conf
  8. fi
  9.  
  10.  
  11.  
  12. I removed any trace of no_path_retry:
  13. # device-mapper-multipath configuration file
  14.  
  15. # For a complete list of the default configuration values, run either:
  16. # # multipath -t
  17. # or
  18. # # multipathd show config
  19.  
  20. # For a list of configuration options with descriptions, see the
  21. # multipath.conf man page.
  22.  
  23. defaults {
  24. user_friendly_names yes
  25. find_multipaths yes
  26. enable_foreign "^$"
  27. }
  28.  
  29. blacklist_exceptions {
  30. property "(SCSI_IDENT_|ID_WWN)"
  31. }
  32.  
  33. blacklist {
  34. devnode "^dasd[a-z]"
  35. }
Advertisement
Add Comment
Please, Sign In to add comment