]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fix OSD weight and device size 115/head
authorSébastien Han <sebastien.han@enovance.com>
Tue, 2 Sep 2014 22:08:06 +0000 (00:08 +0200)
committerSébastien Han <sebastien.han@enovance.com>
Tue, 2 Sep 2014 22:08:06 +0000 (00:08 +0200)
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>
Vagrantfile

index 0ece960d5ba2580365932e7a54acceccc8d29286..f5227e3421eeb8ba790338d4576555f6f52eb630 100644 (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