Sha256: 7120e3a9fdef8fa1e74a374d6f8efebf29b8fe07d5447595d83282ce75fff0cc
Contents?: true
Size: 848 Bytes
Versions: 2
Compression:
Stored size: 848 Bytes
Contents
class Pipette module Lvm def pv_create(device) run_command "pvcreate", device end def vg_create(name, *devices) run_command "vgcreate", "--physicalextentsize 16M", name, *devices end def vg_extend(name, *devices) run_command "vgextend", name, *devices end def lv_create(name, vg, size) run_command "lvcreate", "--size #{size}G", "--name #{name}", vg lv_dev(vg, name) end def lv_extend(device, size) run_command "lvextend", "--size #{size}G", device end def lv_remove(device) run_command "lvremove", "--force", device end protected def lv_dev(vg, name) "/dev/#{vg}/#{name}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pipette-0.1.1 | lib/pipette/lvm.rb |
pipette-0.1.0 | lib/pipette/lvm.rb |