Skip to content

An ansible playbook to stripe multiple disks in Linux, customized by me to stripe in RAID 0

Notifications You must be signed in to change notification settings

younesehb/ansible-mdadm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Role Name

An Ansible role to install and manage mdadm raid arrays.

Requirements

  • Available unpartitioned disk devices

Role Variables

---
# defaults file for ansible-mdadm
#
# Define Raid Arrays to manage
mdadm_arrays:
    # Define array name
  - name: 'md0'
    # Define disk devices to assign to array
    devices:
      - '/dev/sdb'
      - '/dev/sdc'
    # Define filesystem to partition array with (optional)
    filesystem: 'ext4'
    filesystem_opts: ''
    # Define the array raid level
    # 0|1|4|5|6|10
    level: '1'
    # Define mountpoint for array device (optional)
    mountpoint: '/mnt/md0'
    # Define if array should be present or absent
    state: 'present'
    # Set mount options (optional)
    opts: 'noatime'
  # - name: 'md0'
  #   devices:
  #     - '/dev/sdb'
  #     - '/dev/sdc'
  #     - '/dev/sdd'
  #   filesystem: 'ext4'
  #   level: '5'
  #   mountpoint: '/mnt/md0'
  #   state: 'present'

Dependencies

None

Example Playbook

- hosts: all
  become: true
  vars:
  roles:
    - role: ansible-mdadm
  tasks:

License

BSD

Author Information

Larry Smith Jr.

About

An ansible playbook to stripe multiple disks in Linux, customized by me to stripe in RAID 0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published