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上配置多路徑的基本步驟,具體操作可能會因系統版本和硬件設備而有所不同,建議根據具體情況進行調整。