EC pool errors with some k/m combinations
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): CAKD2hyEhMvMQDcSUmyxtBaOOREk9FS51msRwG0kLyu6PQA6RyQ@mail.gmail.com
Hi Lluís,
Here is a minimal test that verifies your patch works (and will prevent regression). It fails without your patch. Feel free to cherry-pick it in your pull request.
erasure-code: verify that rados put enforces alignment
http://tracker.ceph.com/issues/8622 refs: #8622
--- src/test/erasure-code/test-erasure-code.sh | 11 +++++++++++ 1 file changed, 11 insertions(+)
src/test/erasure-code/test-erasure-code.sh +11 -0
@@ -60,6 +60,17 @@ function TEST_rados_put() { diff $dir/ORIGINAL $dir/COPY || return 1 rm $dir/ORIGINAL $dir/COPY + + # + # Verify that the rados command enforces alignment constraints + # imposed by the stripe width + # See http://tracker.ceph.com/issues/8622 + # + local stripe_width=$(./ceph-conf --show-config-value osd_pool_erasure_code_stripe_width) + local block_size=$((stripe_width - 1)) + dd if=/dev/zero of=$dir/ORIGINAL bs=$block_size count=2 + ./rados --block-size=$block_size \ + --pool ecpool put UNALIGNED $dir/ORIGINAL || return 1 } main test-erasure-code
Cheers
Quoted 92 lines · Lluís Pàmies i Juárez
Michael, Loic,
I'm having similar issues with certain (k,m) combinations when storing objects larger than 4MB. Since this thread is relatively old I was wondering if anyone had fixed it or at least has identified this bug. Any news?
Lluis
Quoted 79 lines · Michael Nelson
Quoted 23 lines · Michael Nelson
Hi Loic,
Quoted 15 lines · Loic Dachary
Hi Michael,
I'm trying to reproduce the problem from sources (today's instead of yesterday's but there is no difference that could explain the behaviour you have):
cd src
rm -fr/tmp/dev/tmp/out; mkdir -p/tmp/dev; CEPH_DIR=/tmp LC_ALL=C MON=1 OSD=6 bash -x ./vstart.sh -d -n -X -l mon osd
ceph osd erasure-code-profile set profile33 ruleset-failure-domain=osd k=3 m=3
ceph osd crush rule create-erasure ecruleset33 profile33 ceph osd pool create testec-33 20 20 erasure profile33 ecruleset33 ./rados --pool testec-33 put SOMETHING/etc/groupQuoted 2 lines
but it succeeds. Could you please script a minimal set of commands I could run to repeat the problem you're seeing ?
Quoted 5 lines
The file that I put into the pool was 15MB in size and the error occurred after the first 4MB chunk. That might be the difference.
I will try to come up with a list of commands in case that doesn't trigger it for you.
Here is a concise version of what I am deploying with (limited to 6 OSDs in this example).
ceph-deploy new c1 c2 c3
pdsh -wc[1-3] yum -y install ceph
ceph-deploy mon create c1 c2 c3
sleep 30cd
/etc/ceph
ceph-deploy gatherkeys c1 c2 c3machines=(c1 c2 c3)
for machine in ${machines[@]}; do
for n in {1..2}; do ssh root@$machine 'rm -rf /data$n/osd$n && mkdir -p/data$n/osd$n'
ssh root@$machine 'rm -rf /journals/journal-osd$n' ceph-deploy osd prepare
$machine:/data$n/osd$n:/journals/journal-osd$n
ceph-deploy osd activate
$machine:/data$n/osd$n:/journals/journal-osd$n
done
done# Wait for OSDs to settle
sleep 60ceph osd erasure-code-profile set profile33 ruleset-failure-domain=osd k=3 m=3
ceph osd crush rule create-erasure ecruleset33 profile33
ceph osd pool create ectest-33 20 20 erasure profile33 ecruleset33root@c1:~/ceph# rados -p ectest-33 put xyz sampledata error putting ectest-33/xyz: Operation not supportedroot@c1:~/ceph# du -h sampledata 15M sampledata_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
Hi Lluís,
Here is a minimal test that verifies your patch works (and will prevent regression). It fails without your patch. Feel free to cherry-pick it in your pull request.
erasure-code: verify that rados put enforces alignment
http://tracker.ceph.com/issues/8622 refs: #8622
--- src/test/erasure-code/test-erasure-code.sh | 11 +++++++++++ 1 file changed, 11 insertions(+)
src/test/erasure-code/test-erasure-code.sh +11 -0
@@ -60,6 +60,17 @@ function TEST_rados_put() { diff $dir/ORIGINAL $dir/COPY || return 1 rm $dir/ORIGINAL $dir/COPY + + # + # Verify that the rados command enforces alignment constraints + # imposed by the stripe width + # See http://tracker.ceph.com/issues/8622 + # + local stripe_width=$(./ceph-conf --show-config-value osd_pool_erasure_code_stripe_width) + local block_size=$((stripe_width - 1)) + dd if=/dev/zero of=$dir/ORIGINAL bs=$block_size count=2 + ./rados --block-size=$block_size \ + --pool ecpool put UNALIGNED $dir/ORIGINAL || return 1 } main test-erasure-code
Cheers
Quoted 92 lines · Lluís Pàmies i Juárez
Michael, Loic,
I'm having similar issues with certain (k,m) combinations when storing objects larger than 4MB. Since this thread is relatively old I was wondering if anyone had fixed it or at least has identified this bug. Any news?
Lluis
Quoted 79 lines · Michael Nelson
Quoted 23 lines · Michael Nelson
Hi Loic,
Quoted 15 lines · Loic Dachary
Hi Michael,
I'm trying to reproduce the problem from sources (today's instead of yesterday's but there is no difference that could explain the behaviour you have):
cd src
rm -fr/tmp/dev/tmp/out; mkdir -p/tmp/dev; CEPH_DIR=/tmp LC_ALL=C MON=1 OSD=6 bash -x ./vstart.sh -d -n -X -l mon osd
ceph osd erasure-code-profile set profile33 ruleset-failure-domain=osd k=3 m=3
ceph osd crush rule create-erasure ecruleset33 profile33 ceph osd pool create testec-33 20 20 erasure profile33 ecruleset33 ./rados --pool testec-33 put SOMETHING/etc/groupQuoted 2 lines
but it succeeds. Could you please script a minimal set of commands I could run to repeat the problem you're seeing ?
Quoted 5 lines
The file that I put into the pool was 15MB in size and the error occurred after the first 4MB chunk. That might be the difference.
I will try to come up with a list of commands in case that doesn't trigger it for you.
Here is a concise version of what I am deploying with (limited to 6 OSDs in this example).
ceph-deploy new c1 c2 c3
pdsh -wc[1-3] yum -y install ceph
ceph-deploy mon create c1 c2 c3
sleep 30cd
/etc/ceph
ceph-deploy gatherkeys c1 c2 c3machines=(c1 c2 c3)
for machine in ${machines[@]}; do
for n in {1..2}; do ssh root@$machine 'rm -rf /data$n/osd$n && mkdir -p/data$n/osd$n'
ssh root@$machine 'rm -rf /journals/journal-osd$n' ceph-deploy osd prepare
$machine:/data$n/osd$n:/journals/journal-osd$n
ceph-deploy osd activate
$machine:/data$n/osd$n:/journals/journal-osd$n
done
done# Wait for OSDs to settle
sleep 60ceph osd erasure-code-profile set profile33 ruleset-failure-domain=osd k=3 m=3
ceph osd crush rule create-erasure ecruleset33 profile33
ceph osd pool create ectest-33 20 20 erasure profile33 ecruleset33root@c1:~/ceph# rados -p ectest-33 put xyz sampledata error putting ectest-33/xyz: Operation not supportedroot@c1:~/ceph# du -h sampledata 15M sampledata_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre