#! /bin/bash set -eux API_HOST=frugalos01 DEVICE_CAPACITY=$((100 * 1024 * 1024)) DISK_DIR_ROOT=/var/lib/frugalos DEVICES_PER_SERVER=$1 shift SERVERS=$@ ## ## 物理デバイス登録 ## for server in $SERVERS do for device in `seq 1 $DEVICES_PER_SERVER` do device_id="${server}_${device}" JSON=$(cat <