Commit c8243f20 authored by Dietmar Maurer's avatar Dietmar Maurer

ceph: allow to specify crush ruleset on pool creation

parent 1e5253ca
...@@ -980,7 +980,15 @@ __PACKAGE__->register_method ({ ...@@ -980,7 +980,15 @@ __PACKAGE__->register_method ({
optional => 1, optional => 1,
minimum => 8, minimum => 8,
maximum => 32768, maximum => 32768,
}, },
crush_ruleset => {
description => "The ruleset to use for mapping object placement in the cluster.",
type => 'integer',
minimum => 0,
maximum => 32768,
default => 0,
optional => 1,
},
}, },
}, },
returns => { type => 'null' }, returns => { type => 'null' },
...@@ -1002,6 +1010,10 @@ __PACKAGE__->register_method ({ ...@@ -1002,6 +1010,10 @@ __PACKAGE__->register_method ({
&$run_ceph_cmd(['osd', 'pool', 'set', $param->{name}, 'size', $size]); &$run_ceph_cmd(['osd', 'pool', 'set', $param->{name}, 'size', $size]);
if (defined($param->{crush_ruleset})) {
&$run_ceph_cmd(['osd', 'pool', 'set', $param->{name}, 'crush_ruleset', $param->{crush_ruleset}]);
}
return undef; return undef;
}}); }});
......
...@@ -3,6 +3,10 @@ pve-manager (3.1-33) unstable; urgency=low ...@@ -3,6 +3,10 @@ pve-manager (3.1-33) unstable; urgency=low
* ceph: return decompiled crush map in text format * ceph: return decompiled crush map in text format
* ceph: try to unmount OSD after removal * ceph: try to unmount OSD after removal
* ceph: only use 64 PGs by default
* ceph: allow to specify crush ruleset on pool creation
-- Proxmox Support Team <support@proxmox.com> Fri, 03 Jan 2014 10:58:49 +0100 -- Proxmox Support Team <support@proxmox.com> Fri, 03 Jan 2014 10:58:49 +0100
......
...@@ -41,6 +41,15 @@ Ext.define('PVE.CephCreatePool', { ...@@ -41,6 +41,15 @@ Ext.define('PVE.CephCreatePool', {
maxValue: 3, maxValue: 3,
allowBlank: false allowBlank: false
}, },
{
xtype: 'numberfield',
fieldLabel: gettext('Crush RuleSet'),
name: 'crush_ruleset',
value: 0,
minValue: 0,
maxValue: 32768,
allowBlank: false
},
{ {
xtype: 'numberfield', xtype: 'numberfield',
fieldLabel: 'pg_num', fieldLabel: 'pg_num',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment