1
0
Fork 0

disable multipath for longhorn volume

This commit is contained in:
Massaki Archambault 2022-02-14 11:59:15 -05:00
parent baec5a1d27
commit 103f517075
3 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1,6 @@
defaults {
user_friendly_names yes
}
blacklist {
devnode "^sd[a-z0-9]+"
}

View File

@ -1,2 +1,7 @@
- name: Restart multipathd
service:
name: multipathd
state: restarted
- name: reboot
reboot:

View File

@ -1,7 +1,14 @@
- name: Install required packages
apt:
name:
- open-iscsi
- nfs-common
- open-iscsi # required by longhorn
- nfs-common # required for nfs support
# https://longhorn.io/kb/troubleshooting-volume-with-multipath/
- name: Disable multipath (for longhorn volumes)
copy:
src: multipath.conf
dest: /etc/multipath.conf
notify: Restart multipathd
- include_tasks: '{{ platform }}.yml'