How to set up Cinder volumes correctly?
Hi, I am working on a server with a single physical HDD. I have installed Ubuntu 14.04 and using command:
sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
I get this output:
NAME FSTYPE SIZE MOUNTPOINT LABEL
sda 837.9G
├─sda1 ext4 832.9G /
├─sda2 1K
├─sda4 1023K
└─sda5 swap 5G [SWAP]
sr0 1024M
I have set up the Cinder service but when I try inputting this command:
pvcreate /dev/sda1
I get as output:
Can't open /dev/sda1 exclusively
. Mounted filesystem?
What have I missed and how to set the volume(s) correctly?
You should "pvcreate /dev/sda" without specify any partitions on it. Not sda1 but sda.