Skip to content

Commit

Permalink
add documentation on custom multipath config
Browse files Browse the repository at this point in the history
  • Loading branch information
timolow committed Aug 1, 2024
1 parent 5adb209 commit d19f8b5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ansible/playbooks/templates/genestack-multipath.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defaults {
find_multipaths yes
failback 10
no_path_retry 10
polling_interval 2
}
blacklist {
devnode "^nvme.*"
Expand All @@ -23,6 +24,5 @@ devices {
failback immediate
prio const
no_path_retry fail

}
}
33 changes: 32 additions & 1 deletion docs/openstack-cinder.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,22 @@ storage:
enable_iscsi: true
```

## Enable iSCSI and Custom Mutlipath configuration

!!! note
The included custom multipath config file uses queue-length and sends IO out all active paths when using iSCSI LVM, configure to your environment as you see fit.


Add variable to your inventory file, edit /opt/genestack/ansible/playbooks/templates/genestack-multipath.conf and re-run host-setup.yaml

``` shell
storage:
vars:
enable_iscsi: true
custom_multipath: true
```


## Enable iSCSI with LVM

Edit /opt/genestack/ansible/playbooks/deploy-cinder-volumes-reference.yaml and uncomment out lines under "Uncomment lines below to enable ISCSI multipath"
Expand Down Expand Up @@ -300,7 +316,7 @@ Target 4: iqn.2010-10.org.openstack:dd88d4b9-1297-44c1-b9bc-efd6514be035
ALL
```

On Compute nodes
On Compute nodes using generic multipath configuration file.

``` shell

Expand All @@ -313,3 +329,18 @@ size=20G features='0' hwhandler='0' wp=rw
`- 4:0:0:1 sdb 8:16 active ready running
```

Using custom multipath configuration file

``` shell
root@genestack-compute1:~# multipath -ll
360000000000000000e00000000010001 dm-0 IET,VIRTUAL-DISK
size=10G features='0' hwhandler='0' wp=rw
`-+- policy='queue-length 0' prio=1 status=active
|- 2:0:0:1 sda 8:0 active ready running
`- 3:0:0:1 sdb 8:16 active ready running
```


0 comments on commit d19f8b5

Please sign in to comment.