Bug #11811
Updated by Loïc Dachary almost 9 years ago
* hammer * MON=3 OSD=10 ./vstart.sh -X -n -l mon osd * profile=ecprofile * ceph osd erasure-code-profile set $profile pluing=lrc k=4 m=2 l=3 ruleset-failure-domain=osd * poolname=cephlrc * ceph osd pool create $poolname 1 1 erasure $profile * edit attachment:hw.cc to modify the location of the ceph.conf file * compile with <pre> g++ -g -c attachment:hw.cc -o hw.o ; g++ -g hw.o -lrados -o hw or </pre> if ceph is installed from packages or <pre> g++ -I include -L .libs hw.cc -l rados -o hw </pre> if running from sources * ./hw * verify that all chunks have the same size with ls -l dev/osd?/current/1.0*/ <pre> dev/osd0/current/1.0s1_head/: total 5008 -rw-r--r-- 1 loic loic 5120000 mai 29 13:49 another2__head_02479CCC__1_ffffffffffffffff_1 -rw-r--r-- 1 loic loic 0 mai 29 13:38 __head_00000000__1_ffffffffffffffff_1 dev/osd2/current/1.0s2_head/: total 5008 -rw-r--r-- 1 loic loic 5120000 mai 29 13:49 another2__head_02479CCC__1_ffffffffffffffff_2 -rw-r--r-- 1 loic loic 0 mai 29 13:38 __head_00000000__1_ffffffffffffffff_2 dev/osd3/current/1.0s4_head/: total 5008 -rw-r--r-- 1 loic loic 5120000 mai 29 13:49 another2__head_02479CCC__1_ffffffffffffffff_4 -rw-r--r-- 1 loic loic 0 mai 29 13:38 __head_00000000__1_ffffffffffffffff_4 dev/osd7/current/1.0s5_head/: total 5008 -rw-r--r-- 1 loic loic 5120000 mai 29 13:49 another2__head_02479CCC__1_ffffffffffffffff_5 -rw-r--r-- 1 loic loic 0 mai 29 13:38 __head_00000000__1_ffffffffffffffff_5 dev/osd8/current/1.0s0_head/: total 5008 -rw-r--r-- 1 loic loic 5120000 mai 29 13:49 another2__head_02479CCC__1_ffffffffffffffff_0 -rw-r--r-- 1 loic loic 0 mai 29 13:38 __head_00000000__1_ffffffffffffffff_0 dev/osd9/current/1.0s3_head/: total 5008 -rw-r--r-- 1 loic loic 5120000 mai 29 13:49 another2__head_02479CCC__1_ffffffffffffffff_3 -rw-r--r-- 1 loic loic 0 mai 29 13:38 __head_00000000__1_ffffffffffffffff_3 </pre>