openstack-manuals/doc/training-guide/training-labs/Scripts/Cinder/format_volumes.sh
Pranav Salunke 37f62041cb Added Training Labs Automation Scripts
Removed Unwanted White Spaces.Z
Removed Cirros Image from one of the sub folder.

These scripts are meant to automate deployment of
OpenStack for training and Lab sessions.

bp/training-manuals

Change-Id: I0f46d986d154a1993b014847c2181c7b59412c87
2013-10-05 15:37:58 +05:30

30 lines
816 B
Bash

#!/bin/sh
#
# About:Setup Dependences for Virtual Box Sandbox
# meant for OpenStack Labs.
#
# Contact: pranav@aptira.com
# Copyright : Aptira @aptira,aptira.com
# License: Apache Software License (ASL) 2.0
###############################################################################
# #
# This Script will configure cinder volumes #
# #
###############################################################################
# Note: You DoNot Need Internet for this due to the magic of --download-only
echo "Enter Location of Disk To be used for formatting"
read $disk
# Assuming /dev/sdb for now
cat <<EOF | fdisk /dev/sdb
n
p
1
t
8e
w
EOF
partprobe