Skip to content

Conversation

@apolegoshko
Copy link

@apolegoshko apolegoshko commented Jul 31, 2023

Description

Related Issue

#31

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@apolegoshko apolegoshko marked this pull request as ready for review July 31, 2023 17:30
# - name: '/dev/sdb'
# - name: '/dev/sdc'
# - name: '/dev/sdd'
# additional_options: '--write-mostly'
Copy link
Author

@apolegoshko apolegoshko Jul 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-W, --write-mostly

subsequent devices listed in a --build, --create, or --add command will be flagged as 'write-mostly'. 
This is valid for RAID1 only and means that the 'md' driver will avoid reading
from these devices if at all possible. This can be useful if mirroring over a slow link.

# We pass yes in order to accept any questions prompted for yes|no
- name: arrays | Creating Array(s)
shell: "yes | mdadm --create /dev/{{ item.name }} --level={{ item.level }} --chunk={{item.chunk_size|default(512K)}} --metadata={{ item.raid_metadata_version | default(1.2) }} --raid-devices={{ item.devices|count }} {{ item.devices| join (' ') }}"
shell: "yes | mdadm --create /dev/{{ item.name }} --level={{ item.level }} --chunk={{item.chunk_size|default(512K)}} --metadata={{ item.raid_metadata_version | default(1.2) }} --raid-devices={{ item.devices|count }} {% for device in item.devices %}{% if device.additional_options is defined %}{{device.additional_options}}{% endif %} {{ device.name}} {% endfor %}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks backwards compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants