disable multipath for longhorn volume
This commit is contained in:
parent
baec5a1d27
commit
103f517075
|
@ -0,0 +1,6 @@
|
||||||
|
defaults {
|
||||||
|
user_friendly_names yes
|
||||||
|
}
|
||||||
|
blacklist {
|
||||||
|
devnode "^sd[a-z0-9]+"
|
||||||
|
}
|
|
@ -1,2 +1,7 @@
|
||||||
|
- name: Restart multipathd
|
||||||
|
service:
|
||||||
|
name: multipathd
|
||||||
|
state: restarted
|
||||||
|
|
||||||
- name: reboot
|
- name: reboot
|
||||||
reboot:
|
reboot:
|
|
@ -1,7 +1,14 @@
|
||||||
- name: Install required packages
|
- name: Install required packages
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- open-iscsi
|
- open-iscsi # required by longhorn
|
||||||
- nfs-common
|
- 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'
|
- include_tasks: '{{ platform }}.yml'
|
||||||
|
|
Loading…
Reference in New Issue