#!/bin/bash # restart-devstack # remount the data volumes being used by swift and cinder sudo losetup -f /opt/stack/data/swift/drives/images/swift.img sudo losetup -f /opt/stack/data/stack-volumes-default-backing-file sudo losetup -f /opt/stack/data/stack-volumes-lvmdriver-1-backing-file sudo mount -t xfs -o rw,noatime,nodiratime,nobarrier,logbufs=8 /dev/loop0 /opt/stack/data/swift/drives/sdb1 # re launch the screen session screen -c /opt/stack/devstack/stack-screenrc -m -q -d