Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
c8243f20
Commit
c8243f20
authored
Jan 03, 2014
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: allow to specify crush ruleset on pool creation
parent
1e5253ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
Ceph.pm
PVE/API2/Ceph.pm
+13
-1
changelog.Debian
debian/changelog.Debian
+4
-0
Ceph.js
www/manager/node/Ceph.js
+9
-0
No files found.
PVE/API2/Ceph.pm
View file @
c8243f20
...
...
@@ -980,7 +980,15 @@ __PACKAGE__->register_method ({
optional
=>
1
,
minimum
=>
8
,
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
'
},
...
...
@@ -1002,6 +1010,10 @@ __PACKAGE__->register_method ({
&
$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
;
}});
...
...
debian/changelog.Debian
View file @
c8243f20
...
...
@@ -3,6 +3,10 @@ pve-manager (3.1-33) unstable; urgency=low
* ceph: return decompiled crush map in text format
* 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
...
...
www/manager/node/Ceph.js
View file @
c8243f20
...
...
@@ -41,6 +41,15 @@ Ext.define('PVE.CephCreatePool', {
maxValue
:
3
,
allowBlank
:
false
},
{
xtype
:
'
numberfield
'
,
fieldLabel
:
gettext
(
'
Crush RuleSet
'
),
name
:
'
crush_ruleset
'
,
value
:
0
,
minValue
:
0
,
maxValue
:
32768
,
allowBlank
:
false
},
{
xtype
:
'
numberfield
'
,
fieldLabel
:
'
pg_num
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment