Sha256: 83c45b23b68b19b29b0e0c6914669a39712ec9ac9d7cf7c37b5747ace2823f5e

Contents?: true

Size: 302 Bytes

Versions: 2

Compression:

Stored size: 302 Bytes

Contents

class Pipette
  module Md

    def create_md_mirror(md_device, *devices)
      run_command "mdadm",
                  "--create", md_device,
                  "--level=mirror",
                  "--raid-devices=#{devices.size}",
                  *devices

      wait_for md_device
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pipette-0.1.1 lib/pipette/md.rb
pipette-0.1.0 lib/pipette/md.rb