Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
multipathing changes for longhorn
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsumaui committed Jul 20, 2022
1 parent f555b2b commit b4f2e7d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions provision/ansible/roles/ubuntu/tasks/filesystem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,20 @@
loop:
- swap
- none

- name: Exclude sd{x} devices from multipathing
ansible.builtin.blockinfile:
path: /etc/multipath.conf
create: true
block: |
blacklist {
devnode "^sd[a-z0-9]+"
}
register: multipath_exclude

- name: Restart multipathd
when: multipath_exclude.changed
ansible.builtin.systemd:
name: multipathd
enabled: true
state: restarted

0 comments on commit b4f2e7d

Please sign in to comment.