Class: Lvm2::Root

Inherits:
Object
  • Object
show all
Defined in:
lib/lvm2.rb

Overview

Configure system with lvm

Direct Known Subclasses

Hybrid

Instance Method Summary collapse

Constructor Details

#initialize(devs, options) ⇒ Root

Returns a new instance of Root.



8
9
10
11
12
13
# File 'lib/lvm2.rb', line 8

def initialize(devs, options)
  @cache = options[:cache_disk] ||= nil
  @root = devs[:root] ||= nil
  @home = options[:home_disk] ||= nil
  @vg = options[:vg_name] ||= 'vg0'
end

Instance Method Details

#xObject



15
16
17
18
19
20
21
# File 'lib/lvm2.rb', line 15

def x
  load_datas
  pv_create
  vg_create
  lv_setup
  enable_lvs
end