Commit a814e07f authored by David Johnson's avatar David Johnson

Use /dev/sda4 (if possible) for Nova VM backing store on compute nodes.

parent 4f5ccc6c
......@@ -41,6 +41,26 @@ fi
maybe_install_packages nova-compute sysfsutils
maybe_install_packages libguestfs-tools libguestfs0 python-guestfs
# Once we install packages, if the user wants a bigger VM disk space
# area, we make that and copy anything in /var/lib/nova into it (which
# may include stuff that was just installed). Then we bind mount it to
# /var/lib/nova .
if [ "$COMPUTE_EXTRA_NOVA_DISK_SPACE" = "1" ]; then
mkdir -p /mnt/var-lib-nova
/usr/local/etc/emulab/ -r sda -s 4 /mnt/var-lib-nova
if [ $? = 0 ]; then
chown nova:nova /mnt/var-lib-nova
rsync -avz /var/lib/nova/ /mnt/var-lib-nova/
mount -o bind /mnt/var-lib-nova /var/lib/nova
echo "/mnt/var-lib-nova /var/lib/nova none defaults,bind 0 0" \
>> /etc/fstab
echo "*** ERROR: could not make larger Nova /var/lib/nova dir!"
crudini --set /etc/nova/nova.conf DEFAULT rpc_backend rabbit
crudini --set /etc/nova/nova.conf DEFAULT auth_strategy keystone
crudini --set /etc/nova/nova.conf DEFAULT my_ip ${MGMTIP}
......@@ -65,6 +65,10 @@ QUOTASOFF=1
# Off by default for Juno; on for Kilo and on by default.
# On by default; users will have to take full disk images of the
# compute nodes if they have this enabled.
# We have an 'adminapi' user that gets a random password. Then, we have
# the dashboard and instance password, that comes in from geni-lib/rspec as a
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment