Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
Last revision
Both sides next revision
|
hypervisor:iscsi1404 [2015/09/17 15:08] giancarlo |
hypervisor:iscsi1404 [2015/09/17 15:21] giancarlo |
</code> | </code> |
</WRAP> | </WRAP> |
Identify scsi id for local disk. | Identify wwid of local disk. |
<WRAP prewrap center> | <WRAP prewrap center> |
<code> | <code> |
# /lib/udev/scsi_id --whitelisted --device=/dev/sda | # /lib/udev/scsi_id --whitelisted --device=/dev/sda |
e827ca06c08b1001787e0636005c35541 | e827ca06c08b1001787e0636005c35541 |
| </code> |
| </WRAP> |
| Connect storage. |
| <WRAP prewrap center> |
| <code> |
| # iscsiadm -m discovery -t st -p 192.168.10.100 |
| # iscsiadm -m node -T iqn.xxxxxx --login |
| # iscsiadm -m session -P 1 |
| |
| Target: iqn.xxxxxx |
| Current Portal: 192.168.10.100:3260,1 |
| Persistent Portal: 192.168.10.100:3260,1 |
| ********** |
| Interface: |
| ********** |
| Iface Name: default |
| Iface Transport: tcp |
| ... |
| Current Portal: 192.168.10.101:3260,2 |
| Persistent Portal: 192.168.10.101:3260,2 |
| ********** |
| Interface: |
| ********** |
| Iface Name: default |
| Iface Transport: tcp |
| ... |
| |
| </code> |
| </WRAP> |
| Configure multipath. |
| <WRAP prewrap center> |
| <code> |
| # nano -w /etc/multipath.conf |
| |
| defaults { |
| user_friendly_names yes |
| path_grouping_policy group_by_prio |
| path_checker rdac |
| polling_interval 5 |
| path_selector "round-robin 0" |
| failback immediate |
| no_path_retry 30 |
| prio rdac |
| failback immediate |
| rr_min_io 100 |
| #getuid_callout "/lib/udev/scsi_id --whitelisted --device=/dev/%n" |
| blacklist { |
| devnode "^sd[a]$" |
| #sda |
| wwid e827ca06c08b1001787e0636005c35541 |
| } |
| multipaths { |
| multipath { |
| wwid 105ce1ec3600b254000001a47d1a09800 |
| alias stor1 |
| } |
| } |
| devices { |
| device { |
| vendor "DELL" |
| product "MD38xxi" |
| hardware_handler "1 rdac" |
| features "2 pg_init_retries 50" |
| } |
| } |
| |
</code> | </code> |
</WRAP> | </WRAP> |