Switch disk used for storing data during benchmarks.
[bluesky.git] / microbench / setup / cleanup-proxy
1 #!/bin/bash
2 #
3 # Start up the NFS server.
4
5 . /scratch/aws-keys
6
7 export BLUESKY_TARGET=s3
8 # Export any environment variables specified on the command line
9 for e in "$@"; do
10     echo "$e" 1>&2
11     if echo "$e" | grep = >/dev/null; then
12         eval "$e"
13         export ${e%=*}
14     fi
15 done
16
17 if [ "$BLUESKY_TARGET" = "native" ]; then
18     /etc/init.d/nfs-kernel-server stop
19     umount /export
20     mkfs.ext3 -F /dev/sdb
21     mount /export
22 else
23     rm -rf /export/journal
24     /scratch/bluesky.git/microbench/setup/s3-cleanup.py
25 fi