Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
hypervisor:iscsi1404 [2015/09/17 15:05]
giancarlo
hypervisor:iscsi1404 [2015/09/17 15:21]
giancarlo
Line 35: Line 35:
 # modprobe scsi_dh_rdac # modprobe scsi_dh_rdac
 # modprobe sd_mod # modprobe sd_mod
 +# /etc/init.d/multipath-tools restart
 +</code>
 +</WRAP>
 +Identify wwid of local disk.
 +<WRAP prewrap center>
 +<code>
 +# /lib/udev/scsi_id --whitelisted --device=/dev/sda
 +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> </code>
 </WRAP> </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>
 +</WRAP>
 
 
hypervisor/iscsi1404.txt ยท Last modified: 2015/09/17 15:23 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki