performance: use local disk if one exists labeled nova-instances
This commit is contained in:
parent
3107deb2c5
commit
1b17570c4c
1 changed files with 6 additions and 2 deletions
8
stack.sh
8
stack.sh
|
@ -176,9 +176,13 @@ if [ "$CMD" == "run" ] || [ "$CMD" == "run_detached" ]; then
|
||||||
screen -d -m -S nova -t nova
|
screen -d -m -S nova -t nova
|
||||||
sleep 1
|
sleep 1
|
||||||
rm -f $NOVA_DIR/nova.sqlite
|
rm -f $NOVA_DIR/nova.sqlite
|
||||||
# TODO(ja): mount local partition nova-instances (can we use labels?)
|
rm -rf $NOVA_DIR/instances/*
|
||||||
rm -rf $NOVA_DIR/instances
|
|
||||||
mkdir -p $NOVA_DIR/instances
|
mkdir -p $NOVA_DIR/instances
|
||||||
|
# if there is a partition labeled nova-instances use it (ext filesystems
|
||||||
|
# can be labeled via e2label)
|
||||||
|
if [ -L /dev/disk/by-label/nova-instances ]; then
|
||||||
|
mount -L nova-instances /$NOVA_DIR/instances
|
||||||
|
fi
|
||||||
rm -rf $NOVA_DIR/networks
|
rm -rf $NOVA_DIR/networks
|
||||||
mkdir -p $NOVA_DIR/networks
|
mkdir -p $NOVA_DIR/networks
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue