[pve-devel] [PATCH manager 1/5] ceph: make size 3/min 2 default with createpool

Dominik Csapak d.csapak at proxmox.com
Wed Aug 9 11:42:52 CEST 2017


in the gui this is already the default, so make it also the default
in the backend (also 2/1 is really bad as a default)

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/API2/Ceph.pm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/PVE/API2/Ceph.pm b/PVE/API2/Ceph.pm
index 601f852e..7cf07b70 100644
--- a/PVE/API2/Ceph.pm
+++ b/PVE/API2/Ceph.pm
@@ -1506,7 +1506,7 @@ __PACKAGE__->register_method ({
 	    size => {
 		description => 'Number of replicas per object',
 		type => 'integer',
-		default => 2,
+		default => 3,
 		optional => 1,
 		minimum => 1,
 		maximum => 7,
@@ -1514,7 +1514,7 @@ __PACKAGE__->register_method ({
 	    min_size => {
 		description => 'Minimum number of replicas per object',
 		type => 'integer',
-		default => 1,
+		default => 2,
 		optional => 1,
 		minimum => 1,
 		maximum => 7,
@@ -1546,8 +1546,8 @@ __PACKAGE__->register_method ({
 	    if ! -f $pve_ckeyring_path;
 
 	my $pg_num = $param->{pg_num} || 64;
-	my $size = $param->{size} || 2;
-	my $min_size = $param->{min_size} || 1;
+	my $size = $param->{size} || 3;
+	my $min_size = $param->{min_size} || 2;
 	my $rados = PVE::RADOS->new();
 
 	$rados->mon_command({
-- 
2.11.0




More information about the pve-devel mailing list