glyustb / mogilefs

Automatically exported from code.google.com/p/mogilefs
0 stars 0 forks source link

Cannot change mindevcount on class #61

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi
Got troubles in changing mindevcount on class

#mogadm class list
 domain               class                mindevcount   replpolicy  
-------------------- -------------------- ------------- ------------
 images               default                   2       MultipleHosts()

mogadm class modify images default --mindevcount=3

#mogadm class list
 domain               class                mindevcount   replpolicy  
-------------------- -------------------- ------------- ------------
 images               default                   2      MultipleHosts()

So nothing was changed
CentOs 6.2 MogileFS 2.60

Original issue reported on code.google.com by kaydanni...@gmail.com on 2 May 2012 at 1:42

GoogleCodeExporter commented 8 years ago
Checked in database:

mysql> use mogilefs;
mysql> select * from class;
+------+---------+-----------+-------------+-----------------+
| dmid | classid | classname | mindevcount | replpolicy      |
+------+---------+-----------+-------------+-----------------+
|    1 |       1 | default   |           3 | MultipleHosts() |
+------+---------+-----------+-------------+-----------------+
1 row in set (0.00 sec)

But mogadm still show mindevcount 2

Original comment by kaydanni...@gmail.com on 2 May 2012 at 1:46

GoogleCodeExporter commented 8 years ago
Had you "mogadm class add"'ed the "default" class before modifying it, or was 
it autocreated for you?

Does restarting the tracker give you the proper output? I'll leave this bug 
open until we figure out how that was missed in the config sync.

Original comment by dorma...@rydia.net on 2 May 2012 at 7:43

GoogleCodeExporter commented 8 years ago
At begin class default was autocreated.

And i couldn't change any settings, command 
mogadm class modify images default --mindevcount=3
Showed me class not found.

Then i went to DB and check - class didn't exist in db.
So i did 
mogadm class create images default --mindevcount=3

thats full story how it was 

Original comment by kaydanni...@gmail.com on 3 May 2012 at 7:06