Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:cmd:fclun [2016/02/23 15:53] jslinux:cmd:fclun [2022/07/29 13:05] (current) – [multipath] js
Line 3: Line 3:
 === multipathd === === multipathd ===
      - first install multipathd <code bash>yum install device-mapper-multipath</code>      - first install multipathd <code bash>yum install device-mapper-multipath</code>
-     - copy multipath.conf in /etc+     - copy multipath.conf in /etc or use multipath -t >/etc/multipath.conf
      - restart multipathd <code bash>service multipathd restart</code>      - restart multipathd <code bash>service multipathd restart</code>
      - alias in multipath.conf <code>multipaths {      - alias in multipath.conf <code>multipaths {
Line 28: Line 28:
   |- 1:0:0:1 sdc 8:32 active ready running   |- 1:0:0:1 sdc 8:32 active ready running
   `- 2:0:0:1 sde 8:64 active ready running</code>   `- 2:0:0:1 sde 8:64 active ready running</code>
 +  
 +<WRAP center round box 90%>
 +Example:
 +  
 +A server node with 2 * fibre channel HBAs attached to a storage controller with 2 ports sees 4 devices: 
 +/dev/sda, /dev/sdb, dev/sdc, and /dev/sdd.
 + 
 +Device Mapper (DM) Multipath creates a single device with a unique World Wide Identifier (WWID) that reroutes I/O to those four underlying devices according to the multipath configuration.
 +
 +</WRAP>
 +
  
 === device mapper === === device mapper ===
Line 42: Line 53:
   Physical volume "/dev/mapper/fsilun" successfully created</code>   Physical volume "/dev/mapper/fsilun" successfully created</code>
          * show volume group <code bash>vgdisplay</code>          * show volume group <code bash>vgdisplay</code>
-      - create logical volume (-L <size in PE see above) <code bash>lvcreate -L 256000 -n lvfsilun fsilun</code><code>ile descriptor 7 (pipe:[13154434]) leaked on lvcreate invocation. Parent PID 3865: bash+      - create logical volume (-L <size in PE see above) <code bash>lvcreate -L 256000 -n lvfsilun fsilun</code><code>File descriptor 7 (pipe:[13154434]) leaked on lvcreate invocation. Parent PID 3865: bash
   Logical volume "lvfsilun" created.</code>   Logical volume "lvfsilun" created.</code>
          * show logical volume <code bash>lvdisplay</code>          * show logical volume <code bash>lvdisplay</code>