From 9dfaa2d20fa6de038f8e2fb4d2a97691353140b4 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 13 Aug 2015 15:24:22 -0700 Subject: [PATCH] Create symlink in start.sh (and not container setup) --- setup/start/setup_infra.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup/start/setup_infra.sh b/setup/start/setup_infra.sh index 01997055e..9ea9b1559 100755 --- a/setup/start/setup_infra.sh +++ b/setup/start/setup_infra.sh @@ -32,6 +32,10 @@ docker run --restart=always -d --name="graphite" \ -p 127.0.0.1:2004:2004 \ -p 127.0.0.1:8000:8000 \ -v "${DATA_DIR}/graphite:/app/data" "${GRAPHITE_IMAGE}" +# collectd 5.4.1 has some bug where we simply cannot get it to create df-vda1 +mkdir -p "${DATA_DIR}/graphite/whisper/collectd/localhost/" +vda1_id=$(blkid -s UUID -o value /dev/vda1) +ln -sfF "df-disk_by-uuid_${vda1_id}" "${DATA_DIR}/graphite/whisper/collectd/localhost/df-vda1" # mail mail_container_id=$(docker run --restart=always -d --name="mail" \