Automatically partition /dev/vdb

Change-Id: Idd76f96aa41504a012e8cb48439d7a5f908bbc2d
This commit is contained in:
Yun Mao 2013-05-24 16:02:23 -04:00
parent 4b00c061e5
commit 327f22fcde
1 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,11 @@
#!/bin/bash
# umount extra volume not needed by OpenStack
# /dev/vdb is formatted and mounted on /mnt
# we need to use it as a volume for cinder instead
sudo /bin/umount /mnt/
sudo parted /dev/vdb --script -- mklabel gpt
sudo parted /dev/vdb --script -- mkpart primary ext4 1 -1
sudo parted /dev/vdb --script -- set 1 lvm on
# use dnsmasq (fixed resolv.conf) instead
sudo apt-get -y remove resolvconf