Difference between revisions of "FibreChannel Setup"

From DHVLab

(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...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
[[Category:General Setup]]
 +
[[File:Dhvlab san.png]]
 
== Install packages ==
 
== Install packages ==
 
Install the required packages
 
Install the required packages
Line 4: Line 6:
 
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 29:
 
blacklist_exceptions {}
 
blacklist_exceptions {}
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
== Add service ==
 
Then run the following commands
 
Then run the following commands
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">

Latest revision as of 18:02, 10 September 2016

Dhvlab san.png

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