diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-08-04 21:03:11 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-08-04 21:03:11 +0200 |
commit | 06533abca697ea96885ca36ab0974e5b0aa9d0fa (patch) | |
tree | f4e3f46dd635c1a1ddf8a30c15f52e5f11960cd1 /chaos-at-home | |
parent | acmetool: update subscriber aggrement for let's encrypt (diff) |
ch-epimetheus: replace disk
Diffstat (limited to 'chaos-at-home')
-rw-r--r-- | chaos-at-home/ch-epimetheus.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chaos-at-home/ch-epimetheus.yml b/chaos-at-home/ch-epimetheus.yml index 5900ce3d..98eab3e2 100644 --- a/chaos-at-home/ch-epimetheus.yml +++ b/chaos-at-home/ch-epimetheus.yml @@ -58,4 +58,8 @@ mode: 0755 content: | #!/bin/bash - exec dstat -cnd -N {{ network.primary.name }} -D sdc,sda,sdb,sdd,sde --disk-util --top-io --top-bio + disk_primary=$(basename $(realpath '{{ install.disks.primary }}')) + {% for name,volume in luks_volumes.items() %} + disk_{{ name | replace('-', '_') }}=$(basename $(realpath '{{ volume.device }}')) + {% endfor %} + exec dstat -cnd -N {{ network.primary.name }} -D "$disk_primary,$disk_{{ luks_volumes | map('replace', '-', '_') | join(',$disk_') }}" --disk-util --top-io --top-bio |