Fix OSD weight and device size

Because of the following bug: http://tracker.ceph.com/issues/8551
If we use a disk file size of 1GB the OSD weight calculation ends up
being 0. Thus no data will be stored on any OSD.
Increasing the disk file size up to 11GB (we save some filesystem
overhead since the calculation is based on df thus 11GB is safer than
10GB). Because we significantly increased the size of the disk files we
now only create 2 devices per OSD host.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
pull/115/head
Sébastien Han 2014-09-03 00:08:06 +02:00
parent c9618b1470
commit 6f17371632
1 changed files with 4 additions and 4 deletions

8
Vagrantfile vendored
View File

@ -67,16 +67,16 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
osd.vm.network :private_network, ip: "192.168.0.10#{i}"
osd.vm.network :private_network, ip: "192.168.0.20#{i}"
osd.vm.provider :virtualbox do |vb|
(0..5).each do |d|
vb.customize [ "createhd", "--filename", "disk-#{i}-#{d}", "--size", "1000" ]
(0..1).each do |d|
vb.customize [ "createhd", "--filename", "disk-#{i}-#{d}", "--size", "11000" ]
vb.customize [ "storageattach", :id, "--storagectl", "SATA Controller", "--port", 3+d, "--device", 0, "--type", "hdd", "--medium", "disk-#{i}-#{d}.vdi" ]
end
vb.customize ["modifyvm", :id, "--memory", "192"]
end
osd.vm.provider :vmware_fusion do |v|
(0..5).each do |d|
(0..1).each do |d|
v.vmx["scsi0:#{d+1}.present"] = 'TRUE'
v.vmx["scsi0:#{d+1}.fileName"] = create_vmdk("disk-#{i}-#{d}", '1000MB')
v.vmx["scsi0:#{d+1}.fileName"] = create_vmdk("disk-#{i}-#{d}", '11000MB')
end
v.vmx['memsize'] = '192'
end