#!/bin/bash set -ex test_scratch_device=/dev/nvme0n1 if [ $# -ge 1 ] ; then test_scratch_device=$1 fi db_device=$2 wal_device=$3 sudo lsblk sudo test ! -b "${test_scratch_device}" && echo "invalid scratch device, not a block device: ${test_scratch_device}" >&2 && exit 1 sudo rm -rf /var/lib/rook/rook-integration-test sudo mkdir -p /var/lib/rook/rook-integration-test/mon1 /var/lib/rook/rook-integration-test/mon2 /var/lib/rook/rook-integration-test/mon3 node_name=$(kubectl get nodes -o jsonpath={.items[*].metadata.name}) kubectl label nodes ${node_name} rook.io/has-disk=true kubectl delete pv -l type=local cat <