crush update failure ("corrupt inc osdmap epoch 5 off 50")
hi
i tried to change data "max_size" to 1 to disable replication for testing.
what i've done (reproducable):
mkcephfs -c /etc/ceph/ceph.conf --mkbtrfs (1mds, 1mon, 2osd (2 phyiscal disks)) start ceph
mount ceph fs
write some files to the mount
ceph osd getcrushmap -o /tmp/crush
crushtool -d /tmp/crush -o /tmp/crush.txt
change data "max_size 10" to "max_size 1" in /tmp/crush.txt crushtool -c /tmp/crush.txt -o /tmp/crush.new
ceph osd setcrushmap -i /tmp/crush.new (Output:
* read 428 bytes from /tmp/crush.new
* 10.06.16_08:12:57.187556 41223950 monclient(hunting): found mon0
* 10.06.16_08:12:57.188298 mon <- [osd,setcrushmap]
* 10.06.16_08:12:58.303241 mon0 -> 'set crush map' (0)
)
after starting to write a file to the mount, I see these kernel messages :
http://pastebin.com/maVj9daV
ceph / kclient are yesterdays git unstable / unstable-backport versions. kernel is debian lenny backport 2.6.32.
- Thomas
Hi Thomas,
Quoted 1 line · Thomas Mueller
i tried to change data "
max_size" to 1 to disable replication for testing.
You don't actually need/want to change the crush map to adjust replication. Each crush rule is written to generalize to some range of replication levels (hence the min/max size definitions). To adjust replication for testing/whatever, just do
$ ceph osd pool data size 1 # 1x replication
See
http://ceph.newdream.net/wiki/Adjusting_replication_level
Quoted 18 lines
what i've done (reproducable):
mkcephfs -c
/etc/ceph/ceph.conf--mkbtrfs (1mds, 1mon, 2osd (2 phyiscal disks)) start ceph
mount ceph fs
write some files to the mount
ceph osd getcrushmap -o/tmp/crush
crushtool -d/tmp/crush-o/tmp/crush.txt
change data "max_size10" to "max_size1" in/tmp/crush.txtcrushtool -c/tmp/crush.txt-o/tmp/crush.new
ceph osd setcrushmap -i/tmp/crush.new(Output:
* read 428 bytes from/tmp/crush.new
* 10.06.16_08:12:57.187556 41223950 monclient(hunting): found mon0
* 10.06.16_08:12:57.188298 mon <- [osd,setcrushmap]
* 10.06.16_08:12:58.303241 mon0 -> 'set crush map' (0)
)
Quoted 5 lines
after starting to write a file to the mount, I see these kernel messages :
http://pastebin.com/maVj9daVceph / kclient are yesterdays git unstable / unstable-backport versions. kernel is debian lenny backport 2.6.32.
We'll fix this up to not crash in that case. :)
sage
Quoted 9 lines
- Thomas
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Am Wed, 16 Jun 2010 09:57:56 -0700 schrieb Sage Weil:
Quoted 11 lines
Hi Thomas,
Quoted 2 lines · Thomas Mueller
i tried to change data "
max_size" to 1 to disable replication for testing.You don't actually need/want to change the crush map to adjust replication. Each crush rule is written to generalize to some range of replication levels (hence the min/max size definitions). To adjust replication for testing/whatever, just do
Quoted 5 lines
$ ceph osd pool data size 1 # 1x replicationSee
ahh, once more i overlooked usefull information.
i've read http://ceph.newdream.net/wiki/Custom_data_placement_with_CRUSH
and somehow came to the conclusion that this has to be done with an update of the crush map.
the
Quoted 1 line
$ ceph osd pool data size 1 # 1x replication
command worked.
thanks!
- Thomas