Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- multipath_conf=/etc/multipath.conf
- overrides_conf="no_path_retry 50"
- grep -e "no_path_retry fail" "$multipath_conf"
- echo "$?"
- if [[ $? -ne '0' ]]; then
- printf "%s\n" " " "overrides {" " $overrides_conf" "}" > $multipath_conf
- fi
- I removed any trace of no_path_retry:
- # device-mapper-multipath configuration file
- # For a complete list of the default configuration values, run either:
- # # multipath -t
- # or
- # # multipathd show config
- # For a list of configuration options with descriptions, see the
- # multipath.conf man page.
- defaults {
- user_friendly_names yes
- find_multipaths yes
- enable_foreign "^$"
- }
- blacklist_exceptions {
- property "(SCSI_IDENT_|ID_WWN)"
- }
- blacklist {
- devnode "^dasd[a-z]"
- }
Advertisement
Add Comment
Please, Sign In to add comment