Add examples with schema and disks

This commit is contained in:
Evgeniy L 2015-12-22 18:54:37 +03:00
parent 2beeddb512
commit b475a0f730
3 changed files with 75 additions and 0 deletions

View File

@ -0,0 +1,42 @@
- id: os
type: vg
contains:
- id: swap
- id: root
- id: root
type: lv
max_size: 10000
min_size: 5000
mount: /
fs_type: ext4
- id: swap
type: lv
# TODO: Should be calculated based on RAM
size: 2000
fs_type: swap
- id: logs
type: vg
contains:
- id: log
- id: log
type: lv
mount: /var/log
fs_type: ext4
min_size: 1000
max_size: 10000
- id: dynamic_data
type: vg
contains:
- id: dynamic_data_var_lib
- id: dynamic_data_var_www
- id: dynamic_data_var_lib
type: lv
fs_type: ext4
min: 1000
mount: /var/lib

View File

@ -0,0 +1,14 @@
disks:
- id: /dev/disk/by-id/id-for-sda
path: /dev/disk/by-path/path-for-sda
dev: /dev/sda
type: hdd
vendor: Hitachi
size: 30
- id: /dev/disk/by-id/id-for-sdb
path: /dev/disk/by-path/path-for-sdb
dev: /dev/sdb
type: hdd
vendor: Samsung
size: 40

View File

@ -0,0 +1,19 @@
- id: root
type: lv
min_size: 5000
mount: /
fs_type: ext4
weight: 1
- id: test
type: lv
min_size: 5000
mount: /test
fs_type: ext4
weight: 0.5
- id: swap
type: lv
# TODO: Should be calculated based on RAM
size: 2000
fs_type: swap