Module: Pipette::Md

Included in:
Pipette
Defined in:
lib/pipette/md.rb

Instance Method Summary collapse

Instance Method Details

#create_md_mirror(md_device, *devices) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/pipette/md.rb', line 5

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