From 6f173716320ab7e7b1cd4e6ff543f7d4f15ac081 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Wed, 3 Sep 2014 00:08:06 +0200 Subject: [PATCH] Fix OSD weight and device size MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- Vagrantfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 0ece960d5..f5227e342 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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 -- 2.39.5