Difference between revisions of "FibreChannel Setup"
From DHVLab
Wiki admin (talk | contribs) (Created page with "== Install packages == Install the required packages <syntaxhighlight lang="bash"> yum install device-mapper-multipath </syntaxhighlight> Use the following procedure to set up...") |
Wiki admin (talk | contribs) |
||
Line 4: | Line 4: | ||
yum install device-mapper-multipath | yum install device-mapper-multipath | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | == Add configuration == | ||
Use the following procedure to set up DM-Multipath for a basic failover configuration.<br/> | Use the following procedure to set up DM-Multipath for a basic failover configuration.<br/> | ||
Use the following /etc/multipath.conf | Use the following /etc/multipath.conf | ||
Line 25: | Line 27: | ||
blacklist_exceptions {} | blacklist_exceptions {} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | == Add service == | ||
Then run the following commands | Then run the following commands | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> |
Revision as of 12:28, 8 September 2016
Install packages
Install the required packages
yum install device-mapper-multipath
Add configuration
Use the following procedure to set up DM-Multipath for a basic failover configuration.
Use the following /etc/multipath.conf
defaults {
find_multipaths yes
polling_interval 5
no_path_retry fail
user_friendly_names yes
flush_on_last_del yes
fast_io_fail_tmo 5
dev_loss_tmo 30
max_fds 4096
}
blacklist {
devnode "^drbd[0-9]"
device {}
}
blacklist_exceptions {}
Add service
Then run the following commands
modprobe dm-multipath
service multipathd start
chkconfig multipathd on
multipath -v2
The multipath -v2 command prints out multipathed paths that show which devices are multipathed.
If the command does not print anything out, ensure that all SAN connections are set up properly and the system is multipathed.
Make sure the /etc/multipath/bindings /etc/multipath/wwids match on all hosts! Use scp to copy the files to all cluster nodes