CentOS多路徑配置的方法通常涉及以下幾個(gè)步驟:
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上配置多路徑的基本步驟,具體操作可能會(huì)因系統(tǒng)版本和硬件設(shè)備而有所不同,建議根據(jù)具體情況進(jìn)行調(diào)整。