Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure local SSD filesystem is assembled into a RAID even upon power off/on cycles #3129

Merged
merged 2 commits into from
Oct 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Refactor default value for mountpoint in local SSD solution
  • Loading branch information
tpdownes committed Oct 17, 2024
commit e3293120867aad46b961fd0328dd2adf96a40616
5 changes: 3 additions & 2 deletions modules/scripts/startup-script/files/setup-raid.yml
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@
fstype: ext4
interface: nvme
mode: '0755'
mountpoint: /mnt/{{ raid_name }}
tasks:
- name: Get local SSD devices
ansible.builtin.find:
@@ -61,7 +62,7 @@
- name: Mount RAID array
ansible.posix.mount:
src: "{{ array_dev }}"
path: '{{ mountpoint | default("/mnt/" + raid_name) }}'
path: "{{ mountpoint }}"
fstype: "{{ fstype }}"
# the nofail option is critical as it enables the boot process to complete on machines
# that were powered off and had local SSD contents discarded; without this option
@@ -71,6 +72,6 @@

- name: Set mount permissions
ansible.builtin.file:
path: '{{ mountpoint | default("/mnt/" + raid_name) }}'
path: "{{ mountpoint }}"
state: directory
mode: "{{ mode }}"