Learns available storage size at the vm host, and uses that to allocate disk space to each VM. Also fails if not enough disk space is remaining at the host. Adds the following information to the vm_host table: * total_storage_gib * available_storage_gib
11 lines
204 B
Ruby
11 lines
204 B
Ruby
# frozen_string_literal: true
|
|
|
|
Sequel.migration do
|
|
change do
|
|
alter_table(:vm_host) do
|
|
add_column :total_storage_gib, Integer
|
|
add_column :available_storage_gib, Integer
|
|
end
|
|
end
|
|
end
|