* crush update failure ("corrupt inc osdmap epoch 5 off 50")
@ 2010-06-16 6:32 Thomas Mueller
2010-06-16 16:57 ` Sage Weil
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Mueller @ 2010-06-16 6:32 UTC (permalink / raw)
To: ceph-devel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: crush update failure ("corrupt inc osdmap epoch 5 off 50")
2010-06-16 6:32 crush update failure ("corrupt inc osdmap epoch 5 off 50") Thomas Mueller
@ 2010-06-16 16:57 ` Sage Weil
2010-06-17 8:41 ` Thomas Mueller
0 siblings, 1 reply; 3+ messages in thread
From: Sage Weil @ 2010-06-16 16:57 UTC (permalink / raw)
To: Thomas Mueller; +Cc: ceph-devel
Hi Thomas,
On Wed, 16 Jun 2010, Thomas Mueller wrote:
> 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
> 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.
We'll fix this up to not crash in that case. :)
sage
>
> - Thomas
>
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: crush update failure ("corrupt inc osdmap epoch 5 off 50")
2010-06-16 16:57 ` Sage Weil
@ 2010-06-17 8:41 ` Thomas Mueller
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Mueller @ 2010-06-17 8:41 UTC (permalink / raw)
To: ceph-devel
Am Wed, 16 Jun 2010 09:57:56 -0700 schrieb Sage Weil:
> Hi Thomas,
>
> On Wed, 16 Jun 2010, Thomas Mueller wrote:
>> 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
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
> $ ceph osd pool data size 1 # 1x replication
command worked.
thanks!
- Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-06-17 8:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-16 6:32 crush update failure ("corrupt inc osdmap epoch 5 off 50") Thomas Mueller
2010-06-16 16:57 ` Sage Weil
2010-06-17 8:41 ` Thomas Mueller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox