From 06533abca697ea96885ca36ab0974e5b0aa9d0fa Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 4 Aug 2022 21:03:11 +0200 Subject: ch-epimetheus: replace disk --- chaos-at-home/ch-epimetheus.yml | 6 +++++- inventory/host_vars/ch-epimetheus.yml | 2 +- 2 files changed, 6 insertions(+), 2 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 diff --git a/inventory/host_vars/ch-epimetheus.yml b/inventory/host_vars/ch-epimetheus.yml index f05e6b26..938aef34 100644 --- a/inventory/host_vars/ch-epimetheus.yml +++ b/inventory/host_vars/ch-epimetheus.yml @@ -50,7 +50,7 @@ prometheus_job_multitarget_ssl__probe: luks_volumes: crypto-sata0: passphrase: "{{ vault_luks_volumes['crypto-sata0'].passphrase }}" - device: /dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N6ZP3KFJ + device: /dev/disk/by-id/ata-ST4000VN008-2DR166_ZGY976JP crypto-sata1: passphrase: "{{ vault_luks_volumes['crypto-sata1'].passphrase }}" device: /dev/disk/by-id/ata-ST4000VN008-2DR166_ZDHAVYJT -- cgit v1.2.3