CentOS多路径配置的方法通常涉及以下几个步骤:
sudo yum install device-mapper-multipath
blacklist {
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
devnode "^hd[a-z]"
devnode "^cciss!c[0-9]d[0-9]*[p[0-9]*]"
}
defaults {
user_friendly_names yes
}
devices {
device {
vendor "VENDOR"
product "PRODUCT"
path_grouping_policy "multibus"
getuid_callout "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
path_checker readsector0
path_selector "round-robin 0"
hardware_handler "1 alua"
failback immediate
rr_weight uniform
no_path_retry 5
rr_min_io 1000
}
}
sudo systemctl start multipathd
sudo systemctl enable multipathd
sudo multipath -v2
sudo multipath -ll
以上是在CentOS上配置多路径的基本步骤,具体操作可能会因系统版本和硬件设备而有所不同,建议根据具体情况进行调整。