Allocate for ceph space which is left on a single disk

This commit is contained in:
Evgeniy L 2016-01-14 19:02:17 +03:00
parent 4213415596
commit b9c8dae269
3 changed files with 18 additions and 18 deletions

View File

@ -1,15 +1,21 @@
- id: ceph
type: partition
fs_type: ext4
min_size: 1000
best_with_disks: |
yaql=$.disks.where($.type = "hdd").skip(1)
- id: ceph-journal
type: partition
best_with_disks: |
yaql=$.disks.where($.type = "ssd")
- id: os
type: vg
contains:
- id: swap
- id: root
- id: root
type: lv
size: 5000
mount: /
fs_type: ext4
- id: swap
type: lv
size: |
@ -25,14 +31,8 @@
4096)
fs_type: swap
- id: ceph
type: partition
- id: root
type: lv
min_size: 5000
mount: /
fs_type: ext4
min_size: 1000
best_with_disks: |
yaql=$.disks.where($.type = "hdd").skip(1)
- id: ceph-journal
type: partition
best_with_disks: |
yaql=$.disks.where($.type = "ssd")

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8" ?>
<svg baseProfile="full" height="100%" preserveAspectRatio="none" version="1.1" viewBox="0 0 650.0 120" width="100%" xmlns="http://www.w3.org/2000/svg" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xlink="http://www.w3.org/1999/xlink"><defs /><g id="disks-group" transform="translate(30, 30)"><g id="sda" transform="translate(0, 0)"><text fill="black">sda size=10000</text><g id="in-sda" transform="translate(0, 10)"><rect height="2cm" rx="5" ry="5" style="fill:#f5f5f5;stroke:black;stroke-width:5;" width="450.0" x="0" y="0" /><rect height="2cm" id="root" rx="5" ry="5" style="fill:#666547;stroke:black;stroke-width:5;" width="225.0" x="0" y="0" /><rect height="2cm" id="swap" rx="5" ry="5" style="fill:#fb2e01;stroke:black;stroke-width:5;" width="92.16" x="225.0" y="0" /><rect height="2cm" id="ceph" rx="5" ry="5" style="fill:#6fcb9f;stroke:black;stroke-width:5;" width="132.84" x="317.16" y="0" /><rect height="2cm" id="ceph-journal" rx="5" ry="5" style="fill:#ffe28a;stroke:black;stroke-width:5;" width="0.0" x="450.0" y="0" /><rect height="2cm" id="unallocated" rx="5" ry="5" style="fill:#b9feb3;stroke:black;stroke-width:5;" width="0.0" x="450.0" y="0" /><text fill="#666547" x="460.0" y="20">root size=5000</text><text fill="#fb2e01" x="460.0" y="40">swap size=2048</text><text fill="#6fcb9f" x="460.0" y="60">ceph size=2952</text><text fill="#ffe28a" x="460.0" y="80">ceph-journal size=0</text><text fill="#b9feb3" x="460.0" y="100">unallocated size=0</text></g></g></g></svg>
<svg baseProfile="full" height="100%" preserveAspectRatio="none" version="1.1" viewBox="0 0 650.0 120" width="100%" xmlns="http://www.w3.org/2000/svg" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xlink="http://www.w3.org/1999/xlink"><defs /><g id="disks-group" transform="translate(30, 30)"><g id="sda" transform="translate(0, 0)"><text fill="black">sda size=10000</text><g id="in-sda" transform="translate(0, 10)"><rect height="2cm" rx="5" ry="5" style="fill:#f5f5f5;stroke:black;stroke-width:5;" width="450.0" x="0" y="0" /><rect height="2cm" id="ceph" rx="5" ry="5" style="fill:#666547;stroke:black;stroke-width:5;" width="132.84" x="0" y="0" /><rect height="2cm" id="ceph-journal" rx="5" ry="5" style="fill:#fb2e01;stroke:black;stroke-width:5;" width="0.0" x="132.84" y="0" /><rect height="2cm" id="swap" rx="5" ry="5" style="fill:#6fcb9f;stroke:black;stroke-width:5;" width="92.16" x="132.84" y="0" /><rect height="2cm" id="root" rx="5" ry="5" style="fill:#ffe28a;stroke:black;stroke-width:5;" width="225.0" x="225.0" y="0" /><rect height="2cm" id="unallocated" rx="5" ry="5" style="fill:#b9feb3;stroke:black;stroke-width:5;" width="0.0" x="450.0" y="0" /><text fill="#666547" x="460.0" y="20">ceph size=2952</text><text fill="#fb2e01" x="460.0" y="40">ceph-journal size=0</text><text fill="#6fcb9f" x="460.0" y="60">swap size=2048</text><text fill="#ffe28a" x="460.0" y="80">root size=5000</text><text fill="#b9feb3" x="460.0" y="100">unallocated size=0</text></g></g></g></svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB