Skip to content

Instantly share code, notes, and snippets.

View concubidated's full-sized avatar

Tyler Brekke concubidated

View GitHub Profile
root@hpbs-c01-s01:~# strace btrfs subvolume delete /data/osd.0/test/current.remove.me.1750439234/
execve("/sbin/btrfs", ["btrfs", "subvolume", "delete", "/data/osd.0/test/current.remove."...], [/* 18 vars */]) = 0
brk(0) = 0xcdf000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa928fda000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=24971, ...}) = 0
mmap(NULL, 24971, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fa928fd3000
close(3) = 0
inktank@inktank01:~$ cat fsbench.sh
#!/bin/bash
hosts=`cat /etc/ceph/ceph.conf | grep host | sort | uniq | awk {'print $3'}`
results="smallio_results"
duration="300"
for host in $hosts
do
ssh root@$host mkdir $results
osds=`ssh root@$host ps aux | grep osd | awk {'print $13'}`
57c57
< # weight 9.900
---
> # weight 10.000
61c61
< item osd.2 weight 0.900
---
> item osd.2 weight 1..00
73c73
< # weight 9.500
ubuntu@ceph2-anna:/var/log/ceph$ ceph pg dump
dumped all in format plain
version 15948
last_osdmap_epoch 7952
last_pg_scan 1
full_ratio 0.95
nearfull_ratio 0.85
pg_stat objects mip degr unf bytes log disklog state state_stamp v reported up acting last_scrub scrub_stamp
2.3d 1 0 0 0 8192 147 147 active+clean 2012-10-31
18:53:56.933184 259'1 7949'7374 [2,1] [2,1] 259'1 2012-10-30
#!/bin/bash
################
# A simple wrapper for smalliobenchfs
# Author: Tyler Brekke <[email protected]>
################
usage()
{
echo "Usage: $0: [OPTIONS]"
#!/bin/bash
usage()
{
echo "Usage: $0: [OPTIONS]"
echo " -d : Path to OSD data directory"
echo " -j : Path to journal"
echo "Example:"
echo " $0 -d /src/ceph-osd.1/test/ -j /dev/sdi"
exit 1
[ 6.270229] Console: switching to colour frame buffer device 128x48
[ 6.275624] qlcnic 0000:05:00.1: restoring config space at offset 0x1 (was 0x100400, writing 0x100546)
[ 6.295860] EXT4-fs (md0): mounted filesystem with ordered data mode. Opts: (null)
[ 6.314870] fb0: VESA VGA frame buffer device
[ 6.387552] init: flush-early-job-log main process (1054) terminated with status 1
[ 6.768927] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input5
[ 7.318541] qlcnic 0000:05:00.1: eth3: NIC Link is up
[ 7.319117] bonding: bond0: enslaving eth3 as a backup interface with an up link.
[ 7.322614] bonding: bond0: Adding slave eth2.
[ 7.425712] qlcnic 0000:05:00.0: restoring config space at offset 0x1 (was 0x100400, writing 0x100546)
root@burnupi01:/home/ubuntu# diff crushmap.txt crushmap.new
27a28,43
> device 24 osd.24
> device 25 osd.25
> device 26 osd.26
> device 27 osd.27
> device 28 osd.28
> device 29 osd.29
> device 30 osd.30
> device 31 osd.31
root@NC-T920-SAN-10-00:~# ceph pg dump
dumped all in format plain
version 7754459
last_osdmap_epoch 15988
last_pg_scan 1
full_ratio 98
nearfull_ratio 0.85
pg_stat objects mip degr unf bytes log disklog state state_stamp v reported up acting last_scrub scrub_stamp
2.314 7379 0 0 0 30656557056 144303 144303 active+clean 2012-09-07 10:46:32.527265 15988'268228 15728'718364 [20,4] [20,4] 15561'126656 2012-09-06 18:12:10.875834
0.316 0 0 0 0 0 0 0 active+clean 2012-09-07 10:46:32.475737 0'0 15728'15318 [20,4] [20,4] 0'0 2012-09-06 21:32:05.204194
root@NC-T920-SAN-10-00:~# ceph osd dump
dumped osdmap epoch 15988
epoch 15988
fsid ae210ded-484f-4ff1-b64c-7994ac52640a
created 2012-05-02 23:05:53.009439
modifed 2012-10-21 16:12:24.303420
flags
pool 0 'data' rep size 2 crush_ruleset 0 object_hash rjenkins pg_num 1408 pgp_num 1408 last_change 1 owner 0 crash_replay_interval 45
pool 1 'metadata' rep size 2 crush_ruleset 1 object_hash rjenkins pg_num 1408 pgp_num 1408 last_change 1 owner 0