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
rb:linuxsan [10/10/2013 15:21]
127.0.0.1 external edit
rb:linuxsan [20/08/2019 13:55]
andrew [Parameters]
Line 1: Line 1:
 ====== SAN Storage ====== ====== SAN Storage ======
  
 +===== HP Storage =====
  
 +See [[rb:​sssu-runningonfedora|Running HP sssu on Fedora]]
 ===== Overall Sequence ===== ===== Overall Sequence =====
  
Line 31: Line 33:
  
  
 +==== RHEL6 ====
 +  [root@satellite02 ~]# cat /​sys/​class/​fc_host/​host*/​port_name
 +  0x500110a00019a1c8
 +  0x500110a00019a1ca
  
 ===== Multipath info ====== ===== Multipath info ======
Line 87: Line 93:
   ​   ​
   ​   ​
 +
 +===== Parameters =====
 +
 +in /​etc/​modprobe.conf:​-
 +
 +  alias scsi_hostadapter1 qla2xxx_conf
 +  alias scsi_hostadapter2 qla2xxx
 +  options qla2xxx ​ ql2xmaxqdepth=16 qlport_down_retry=10 ql2xloginretrycount=30 ​
 +
 +These settings are more aggressive in failing quickly, this allows multipath to adjust sooner to lost paths.
 +
 +  options qla2xxx ql2xfailover=0 ql2xioctltimeout=10 ql2xprocessnotready=0 ql2xloginretrycount=3 ql2xsuspendcount=3 ql2xretrycount=2 ​ lport_down_retry=1
 +  options lpfc lpfc_lun_queue_depth=16 lpfc_nodev_tmo=30 lpfc_discovery_threads=32
 +
 +
 +
 +in /​etc/​multipath.conf (for EVA 8400):-
 +
 +  defaults {
 +  udev_dir /​dev
 +  polling_interval 10
 +  selector "​round-robin 0"
 +  path_grouping_policy failover
 +  getuid_callout "/​sbin/​scsi_id -g -u -s /​block/​%n"​
 +  prio_callout "/​bin/​true"​
 +  path_checker tur
 +  rr_min_io 100
 +  rr_weight ​      ​ uniform
 +  failback immediate
 +  no_path_retry 12
 +  user_friendly_names yes
 +  bindings_file "/​var/​lib/​multipath/​bindings"​
 +  }
 +  ​
 +  blacklist {
 +  devnode "​^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"​
 +  devnode "​^hd[a-z][[0-9]*]"​
 +  devnode "​^cciss!c[0-9]d[0-9]*"​
 +  }
 +  ​
 +  devices {
 +  ​
 +  device {
 +  vendor "​HP|COMPAQ"​
 +        product "​HSV1[01]1 \(C\)COMPAQ|HSV2[01]0|HSV300|HSV4[50]0"​
 +  path_grouping_policy group_by_prio
 +          getuid_callout "/​sbin/​scsi_id -g -u -s /​block/​%n"​
 +          path_checker tur
 +          path_selector "​round-robin 0"
 +          prio_callout "/​sbin/​mpath_prio_alua /​dev/​%n"​
 +          rr_weight uniform
 +          failback immediate
 +  hardware_handler "​0"​
 +          no_path_retry 18
 +  rr_min_io 100
 +         }
 +  }
 +  # End device
 +  ​
 +  multipaths {
 +  ​
 +          multipath {
 +          wwid 36001438005def5bf00006000004e0000
 +          alias HSV450_FRA_001
 +          }
 +  ​
 +          multipath {
 +          wwid 36001438005def5bf00006000004a0000
 +          alias HSV450_arch_001
 +          }
 +
 +
 +
 +===== USB drives and multipath =====
 +
 +No USB drives should be added by multipath. However, multipath can add a USB drive into it's configuration,​ if it detects a new drive.
 +
 +To check if multipath has added a USB drive, it is possible to check by running:
 +
 +<​file>​
 +# mount /dev/sda1 /​mnt/​ext_hdd ​
 +mount: /dev/sda1 already mounted or /​mnt/​ext_hdd busy
 +
 +
 +sudo /​sbin/​multipath -l
 +/dev/sda1: UUID="​da85426e-cffc-4d13-8d7f-64549e7ca0ce"​ SEC_TYPE="​ext2"​ TYPE="​ext3" ​
 +HSV450_log01_arch (36001438005dec6e40000500000060000) dm-6 HP,HSV450
 +[size=500G][features=1 queue_if_no_path][hwhandler=0][rw]
 +\_ round-robin 0 [prio=200][active]
 + \_ 0:0:0:1 sda 8:0   ​[active][ready]
 + \_ 0:0:1:1 sdb 8:16  [active][ready]
 + \_ 1:0:0:1 sdd 8:48  [active][ready]
 + \_ 1:0:1:1 sde 8:64  [active][ready]
 +\_ round-robin 0 [prio=40][enabled]
 + \_ 0:0:2:1 sdc 8:32  [active][ready]
 + \_ 0:0:3:1 sdf 8:80  [active][ready]
 + \_ 1:0:2:1 sdg 8:96  [active][ready]
 + \_ 1:0:3:1 sdh 8:112 [active][ready]
 +
 +</​file>​
 +
 +If the USB drive is found in multipath, then the device should be blacklisted in /​etc/​multipath.conf.
 +
 +An example is below:
 +
 +<​file>​
 +
 +blacklist {
 +        devnode ​        "​^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"​
 +        devnode ​        "​^hd[a-z][[0-9]*]"​
 +        devnode ​        "​^cciss!c[0-9]d[0-9]*"​
 +        wwid            "​da85426e-cffc-4d13-8d7f-64549e7ca0ce"​
 +}
 +
 +</​file>​
 +
 +multipath has to be flushed for the new configuration to take place. ​ This is done via:
 +
 +<​file>​
 +# multipath -F
 +# service multipath restart
 +</​file>​
 +
 +
 +
 +
 +
 +
 +
  
 ====== Re-Scan Fibre devices ====== ====== Re-Scan Fibre devices ======

rb/linuxsan.txt ยท Last modified: 20/08/2019 13:58 by andrew