Skip to contentSkip to conversation

reproducable osd crash

DISCUSSION Stefan Priebe - Profihost AG 5 participants 24 messages Jun 21, 2012 – Jun 27, 2012

lore
Share & tools
lore
#0 lore raw

Hello list,

i'm able to reproducably crash osd daemons.

How i can reproduce:

Kernel: 3.5.0-rc3
Ceph: 0.47.3
FS: btrfs
Journal: 2GB tmpfs per OSD
OSD: 3x servers with 4x Intel SSD OSDs each
10GBE Network
rbd_cache_max_age: 2.0
rbd_cache_size: 33554432

Disk is set to writeback.

Start a KVM VM via PXE with the disk attached in writeback mode.

Then run randwrite stress more than 2 time. Mostly OSD 22 in my case crashes.

# fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G --numjobs=50 --runtime=90 --group_reporting --name=file1; fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G --numjobs=50 --runtime=90 --group_reporting --name=file1; fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G --numjobs=50 --runtime=90 --group_reporting --name=file1; halt

Strangely exactly THIS OSD also has the most log entries:

64K     ceph-osd.20.log
64K     ceph-osd.21.log
1,3M    ceph-osd.22.log
64K     ceph-osd.23.log

But all OSDs are set to debug osd = 20.

dmesg shows:
ceph-osd[5381]: segfault at 3f592c000 ip 00007fa281d8eb23 sp 00007fa27702d260 error 4 in libtcmalloc.so.0.0.0[7fa281d6a000+3d000]

I uploaded the following files:
priebe_fio_randwrite_ceph-osd.21.log.bz2 => OSD which was OK and didn't crash priebe_fio_randwrite_ceph-osd.22.log.bz2 => Log from the crashed OSD üu
priebe_fio_randwrite_core.ssdstor001.27204.bz2 => Core dump priebe_fio_randwrite_ceph-osd.bz2 => osd binary

Stefan
--
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

#1 lore raw

When i start now the OSD again it seems to hang for forever. Load goes up to 200 and I/O Waits rise vom 0% to 20%.

Am 21.06.2012 14:55, schrieb Stefan Priebe - Profihost AG:

Quoted 49 lines

Hello list,

i'm able to reproducably crash osd daemons.

How i can reproduce:

Kernel: 3.5.0-rc3
Ceph: 0.47.3
FS: btrfs
Journal: 2GB tmpfs per OSD
OSD: 3x servers with 4x Intel SSD OSDs each
10GBE Network
rbd_cache_max_age: 2.0
rbd_cache_size: 33554432

Disk is set to writeback.

Start a KVM VM via PXE with the disk attached in writeback mode.

Then run randwrite stress more than 2 time. Mostly OSD 22 in my case crashes.

# fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; fio
--filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; fio
--filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; halt

Strangely exactly THIS OSD also has the most log entries:
64K ceph-osd.20.log
64K ceph-osd.21.log
1,3M ceph-osd.22.log
64K ceph-osd.23.log

But all OSDs are set to debug osd = 20.

dmesg shows:
ceph-osd[5381]: segfault at 3f592c000 ip 00007fa281d8eb23 sp 00007fa27702d260 error 4 in libtcmalloc.so.0.0.0[7fa281d6a000+3d000]

I uploaded the following files:
priebe_fio_randwrite_ceph-osd.21.log.bz2 => OSD which was OK and didn't crash
priebe_fio_randwrite_ceph-osd.22.log.bz2 => Log from the crashed OSD üu
priebe_fio_randwrite_core.ssdstor001.27204.bz2 => Core dump priebe_fio_randwrite_ceph-osd.bz2 => osd binary

Quoted 1 line

Stefan

--
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

#2 lore raw

Another strange thing. Why does THIS OSD have 24GB and the others just 650MB?

/dev/sdb1             224G  654M  214G   1% /srv/osd.20
/dev/sdc1             224G  638M  214G   1% /srv/osd.21
/dev/sdd1             224G   24G  190G  12% /srv/osd.22
/dev/sde1             224G  607M  214G   1% /srv/osd.23
Quoted 53 lines

When i start now the OSD again it seems to hang for forever. Load goes up to 200 and I/O Waits rise vom 0% to 20%.

Am 21.06.2012 14:55, schrieb Stefan Priebe - Profihost AG:

Quoted 49 lines

Hello list,

i'm able to reproducably crash osd daemons.

How i can reproduce:

Kernel: 3.5.0-rc3
Ceph: 0.47.3
FS: btrfs
Journal: 2GB tmpfs per OSD
OSD: 3x servers with 4x Intel SSD OSDs each
10GBE Network
rbd_cache_max_age: 2.0
rbd_cache_size: 33554432

Disk is set to writeback.

Start a KVM VM via PXE with the disk attached in writeback mode.

Then run randwrite stress more than 2 time. Mostly OSD 22 in my case crashes.

# fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; fio
--filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; fio
--filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; halt

Strangely exactly THIS OSD also has the most log entries:
64K ceph-osd.20.log
64K ceph-osd.21.log
1,3M ceph-osd.22.log
64K ceph-osd.23.log

But all OSDs are set to debug osd = 20.

dmesg shows:
ceph-osd[5381]: segfault at 3f592c000 ip 00007fa281d8eb23 sp 00007fa27702d260 error 4 in libtcmalloc.so.0.0.0[7fa281d6a000+3d000]

I uploaded the following files:
priebe_fio_randwrite_ceph-osd.21.log.bz2 => OSD which was OK and didn't crash
priebe_fio_randwrite_ceph-osd.22.log.bz2 => Log from the crashed OSD üu
priebe_fio_randwrite_core.ssdstor001.27204.bz2 => Core dump priebe_fio_randwrite_ceph-osd.bz2 => osd binary

Quoted 5 lines
Quoted 1 line

Stefan

--
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

--
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

#3 lore raw

Mhm is this normal (ceph health is NOW OK again)

/dev/sdb1             224G  655M  214G   1% /srv/osd.20
/dev/sdc1             224G  640M  214G   1% /srv/osd.21
/dev/sdd1             224G   34G  181G  16% /srv/osd.22
/dev/sde1             224G  608M  214G   1% /srv/osd.23

Why does one OSD has so much more used space than the others?

On my other OSD nodes all have around 600MB-700MB. Even when i reformat /dev/sdd1 after the backfill it has again 34GB?

Stefan

Am 21.06.2012 15:13, schrieb Stefan Priebe - Profihost AG:

Quoted 66 lines

Another strange thing. Why does THIS OSD have 24GB and the others just 650MB?

/dev/sdb1 224G 654M 214G 1% /srv/osd.20
/dev/sdc1 224G 638M 214G 1% /srv/osd.21
/dev/sdd1 224G 24G 190G 12% /srv/osd.22
/dev/sde1 224G 607M 214G 1% /srv/osd.23

Quoted 58 lines

When i start now the OSD again it seems to hang for forever. Load goes up to 200 and I/O Waits rise vom 0% to 20%.

Am 21.06.2012 14:55, schrieb Stefan Priebe - Profihost AG:

Quoted 49 lines

Hello list,

i'm able to reproducably crash osd daemons.

How i can reproduce:

Kernel: 3.5.0-rc3
Ceph: 0.47.3
FS: btrfs
Journal: 2GB tmpfs per OSD
OSD: 3x servers with 4x Intel SSD OSDs each
10GBE Network
rbd_cache_max_age: 2.0
rbd_cache_size: 33554432

Disk is set to writeback.

Start a KVM VM via PXE with the disk attached in writeback mode.

Then run randwrite stress more than 2 time. Mostly OSD 22 in my case crashes.

# fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; fio
--filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; fio
--filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; halt

Strangely exactly THIS OSD also has the most log entries:
64K ceph-osd.20.log
64K ceph-osd.21.log
1,3M ceph-osd.22.log
64K ceph-osd.23.log

But all OSDs are set to debug osd = 20.

dmesg shows:
ceph-osd[5381]: segfault at 3f592c000 ip 00007fa281d8eb23 sp 00007fa27702d260 error 4 in libtcmalloc.so.0.0.0[7fa281d6a000+3d000]

I uploaded the following files:
priebe_fio_randwrite_ceph-osd.21.log.bz2 => OSD which was OK and didn't crash
priebe_fio_randwrite_ceph-osd.22.log.bz2 => Log from the crashed OSD üu
priebe_fio_randwrite_core.ssdstor001.27204.bz2 => Core dump priebe_fio_randwrite_ceph-osd.bz2 => osd binary

Quoted 1 line

Stefan

--
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

--
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

#4 lore raw

OK i discovered this time that all osds had the same disk usage before crash. After starting the osd again i got this one:

/dev/sdb1             224G   23G  191G  11% /srv/osd.30
/dev/sdc1             224G  1,5G  213G   1% /srv/osd.31
/dev/sdd1             224G  1,5G  213G   1% /srv/osd.32
/dev/sde1             224G  1,6G  213G   1% /srv/osd.33

So instead of 1,5GB osd 30 now uses 23G.

Stefan

Am 21.06.2012 15:23, schrieb Stefan Priebe - Profihost AG:

Quoted 7 lines

Mhm is this normal (ceph health is NOW OK again)

/dev/sdb1             224G  655M  214G   1% /srv/osd.20
/dev/sdc1             224G  640M  214G   1% /srv/osd.21
/dev/sdd1             224G   34G  181G  16% /srv/osd.22
/dev/sde1             224G  608M  214G   1% /srv/osd.23
Quoted 75 lines

Why does one OSD has so much more used space than the others?

On my other OSD nodes all have around 600MB-700MB. Even when i reformat /dev/sdd1 after the backfill it has again 34GB?

Stefan

Am 21.06.2012 15:13, schrieb Stefan Priebe - Profihost AG:

Quoted 67 lines

Another strange thing. Why does THIS OSD have 24GB and the others just 650MB?

/dev/sdb1 224G 654M 214G 1% /srv/osd.20
/dev/sdc1 224G 638M 214G 1% /srv/osd.21
/dev/sdd1 224G 24G 190G 12% /srv/osd.22
/dev/sde1 224G 607M 214G 1% /srv/osd.23

Quoted 59 lines

When i start now the OSD again it seems to hang for forever. Load goes up to 200 and I/O Waits rise vom 0% to 20%.

Am 21.06.2012 14:55, schrieb Stefan Priebe - Profihost AG:

Quoted 50 lines

Hello list,

i'm able to reproducably crash osd daemons.

How i can reproduce:

Kernel: 3.5.0-rc3
Ceph: 0.47.3
FS: btrfs
Journal: 2GB tmpfs per OSD
OSD: 3x servers with 4x Intel SSD OSDs each
10GBE Network
rbd_cache_max_age: 2.0
rbd_cache_size: 33554432

Disk is set to writeback.

Start a KVM VM via PXE with the disk attached in writeback mode.

Then run randwrite stress more than 2 time. Mostly OSD 22 in my case crashes.

# fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k
--size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; fio
--filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; fio
--filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; halt

Strangely exactly THIS OSD also has the most log entries:
64K ceph-osd.20.log
64K ceph-osd.21.log
1,3M ceph-osd.22.log
64K ceph-osd.23.log

But all OSDs are set to debug osd = 20.

dmesg shows:
ceph-osd[5381]: segfault at 3f592c000 ip 00007fa281d8eb23 sp 00007fa27702d260 error 4 in libtcmalloc.so.0.0.0[7fa281d6a000+3d000]

I uploaded the following files:
priebe_fio_randwrite_ceph-osd.21.log.bz2 => OSD which was OK and didn't crash
priebe_fio_randwrite_ceph-osd.22.log.bz2 => Log from the crashed OSD üu
priebe_fio_randwrite_core.ssdstor001.27204.bz2 => Core dump priebe_fio_randwrite_ceph-osd.bz2 => osd binary

Quoted 1 line

Stefan

--
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

--
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

#6 lore raw
In reply to Stefan Priebe - Profihost AG

Does anybody have an idea? This is right now a showstopper to me.

Am 21.06.2012 um 14:55 schrieb Stefan Priebe - Profihost AG <[email protected]>:

Quoted 34 lines

Hello list,

i'm able to reproducably crash osd daemons.

How i can reproduce:

Kernel: 3.5.0-rc3
Ceph: 0.47.3
FS: btrfs
Journal: 2GB tmpfs per OSD
OSD: 3x servers with 4x Intel SSD OSDs each
10GBE Network
rbd_cache_max_age: 2.0
rbd_cache_size: 33554432

Disk is set to writeback.

Start a KVM VM via PXE with the disk attached in writeback mode.

Then run randwrite stress more than 2 time. Mostly OSD 22 in my case crashes.

# fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G --numjobs=50 --runtime=90 --group_reporting --name=file1; fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G --numjobs=50 --runtime=90 --group_reporting --name=file1; fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G --numjobs=50 --runtime=90 --group_reporting --name=file1; halt

Strangely exactly THIS OSD also has the most log entries:

64K     ceph-osd.20.log
64K     ceph-osd.21.log
1,3M    ceph-osd.22.log
64K     ceph-osd.23.log

But all OSDs are set to debug osd = 20.

dmesg shows:
ceph-osd[5381]: segfault at 3f592c000 ip 00007fa281d8eb23 sp 00007fa27702d260 error 4 in libtcmalloc.so.0.0.0[7fa281d6a000+3d000]

Quoted 8 lines

I uploaded the following files:
priebe_fio_randwrite_ceph-osd.21.log.bz2 => OSD which was OK and didn't crash priebe_fio_randwrite_ceph-osd.22.log.bz2 => Log from the crashed OSD üu
priebe_fio_randwrite_core.ssdstor001.27204.bz2 => Core dump priebe_fio_randwrite_ceph-osd.bz2 => osd binary

Stefan

--
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

#5 lore raw
In reply to Stefan Priebe

I'm still able to crash the ceph cluster while doing a lot of random I/O and then shut down the KVM.

Stefan

Am 21.06.2012 21:57, schrieb Stefan Priebe:

Quoted 7 lines

OK i discovered this time that all osds had the same disk usage before crash. After starting the osd again i got this one:
/dev/sdb1 224G 23G 191G 11% /srv/osd.30
/dev/sdc1 224G 1,5G 213G 1% /srv/osd.31
/dev/sdd1 224G 1,5G 213G 1% /srv/osd.32
/dev/sde1 224G 1,6G 213G 1% /srv/osd.33

Quoted 90 lines

So instead of 1,5GB osd 30 now uses 23G.

Stefan

Am 21.06.2012 15:23, schrieb Stefan Priebe - Profihost AG:

Quoted 84 lines

Mhm is this normal (ceph health is NOW OK again)

/dev/sdb1 224G 655M 214G 1% /srv/osd.20
/dev/sdc1 224G 640M 214G 1% /srv/osd.21
/dev/sdd1 224G 34G 181G 16% /srv/osd.22
/dev/sde1 224G 608M 214G 1% /srv/osd.23

Why does one OSD has so much more used space than the others?

On my other OSD nodes all have around 600MB-700MB. Even when i reformat /dev/sdd1 after the backfill it has again 34GB?

Stefan

Am 21.06.2012 15:13, schrieb Stefan Priebe - Profihost AG:

Quoted 69 lines

Another strange thing. Why does THIS OSD have 24GB and the others just 650MB?

/dev/sdb1 224G 654M 214G 1% /srv/osd.20
/dev/sdc1 224G 638M 214G 1% /srv/osd.21
/dev/sdd1 224G 24G 190G 12% /srv/osd.22
/dev/sde1 224G 607M 214G 1% /srv/osd.23

Quoted 61 lines

When i start now the OSD again it seems to hang for forever. Load goes up to 200 and I/O Waits rise vom 0% to 20%.

Am 21.06.2012 14:55, schrieb Stefan Priebe - Profihost AG:

Quoted 51 lines

Hello list,

i'm able to reproducably crash osd daemons.

How i can reproduce:

Kernel: 3.5.0-rc3
Ceph: 0.47.3
FS: btrfs
Journal: 2GB tmpfs per OSD
OSD: 3x servers with 4x Intel SSD OSDs each
10GBE Network
rbd_cache_max_age: 2.0
rbd_cache_size: 33554432

Disk is set to writeback.

Start a KVM VM via PXE with the disk attached in writeback mode.

Then run randwrite stress more than 2 time. Mostly OSD 22 in my case crashes.

# fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k
--size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; fio
--filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; fio
--filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; halt

Strangely exactly THIS OSD also has the most log entries:
64K ceph-osd.20.log
64K ceph-osd.21.log
1,3M ceph-osd.22.log
64K ceph-osd.23.log

But all OSDs are set to debug osd = 20.

dmesg shows:
ceph-osd[5381]: segfault at 3f592c000 ip 00007fa281d8eb23 sp 00007fa27702d260 error 4 in libtcmalloc.so.0.0.0[7fa281d6a000+3d000]

I uploaded the following files:
priebe_fio_randwrite_ceph-osd.21.log.bz2 => OSD which was OK and didn't
crash
priebe_fio_randwrite_ceph-osd.22.log.bz2 => Log from the crashed OSD üu
priebe_fio_randwrite_core.ssdstor001.27204.bz2 => Core dump priebe_fio_randwrite_ceph-osd.bz2 => osd binary

Quoted 1 line

Stefan

--
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

--
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

#7 lore raw
In reply to Stefan Priebe

Stefan, I'm looking at your logs and coredump now.

Quoted 45 lines · Stefan Priebe

Does anybody have an idea? This is right now a showstopper to me.

Am 21.06.2012 um 14:55 schrieb Stefan Priebe - Profihost AG<[email protected]>:

Quoted 41 lines

Hello list,

i'm able to reproducably crash osd daemons.

How i can reproduce:

Kernel: 3.5.0-rc3
Ceph: 0.47.3
FS: btrfs
Journal: 2GB tmpfs per OSD
OSD: 3x servers with 4x Intel SSD OSDs each
10GBE Network
rbd_cache_max_age: 2.0
rbd_cache_size: 33554432

Disk is set to writeback.

Start a KVM VM via PXE with the disk attached in writeback mode.

Then run randwrite stress more than 2 time. Mostly OSD 22 in my case crashes.

# fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G --numjobs=50 --runtime=90 --group_reporting --name=file1; fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G --numjobs=50 --runtime=90 --group_reporting --name=file1; fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G --numjobs=50 --runtime=90 --group_reporting --name=file1; halt

Strangely exactly THIS OSD also has the most log entries:

64K     ceph-osd.20.log
64K     ceph-osd.21.log
1,3M    ceph-osd.22.log
64K     ceph-osd.23.log

But all OSDs are set to debug osd = 20.

dmesg shows:
ceph-osd[5381]: segfault at 3f592c000 ip 00007fa281d8eb23 sp 00007fa27702d260 error 4 in libtcmalloc.so.0.0.0[7fa281d6a000+3d000]

I uploaded the following files:
priebe_fio_randwrite_ceph-osd.21.log.bz2 => OSD which was OK and didn't crash priebe_fio_randwrite_ceph-osd.22.log.bz2 => Log from the crashed OSD üu
priebe_fio_randwrite_core.ssdstor001.27204.bz2 => Core dump priebe_fio_randwrite_ceph-osd.bz2 => osd binary

Quoted 5 lines
Quoted 1 line

Stefan

--
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

--
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

#8 lore raw

I am still looking into the logs.
-Sam

Quoted 66 lines · Dan Mick

Stefan, I'm looking at your logs and coredump now.

Quoted 55 lines · Stefan Priebe

Does anybody have an idea? This is right now a showstopper to me.

Am 21.06.2012 um 14:55 schrieb Stefan Priebe - Profihost AG<[email protected]>:

Quoted 49 lines

Hello list,

i'm able to reproducably crash osd daemons.

How i can reproduce:

Kernel: 3.5.0-rc3
Ceph: 0.47.3
FS: btrfs
Journal: 2GB tmpfs per OSD
OSD: 3x servers with 4x Intel SSD OSDs each
10GBE Network
rbd_cache_max_age: 2.0
rbd_cache_size: 33554432

Disk is set to writeback.

Start a KVM VM via PXE with the disk attached in writeback mode.

Then run randwrite stress more than 2 time. Mostly OSD 22 in my case crashes.

# fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; fio
--filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; fio
--filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; halt

Strangely exactly THIS OSD also has the most log entries:
64K     ceph-osd.20.log
64K     ceph-osd.21.log
1,3M    ceph-osd.22.log
64K     ceph-osd.23.log

But all OSDs are set to debug osd = 20.

dmesg shows:
ceph-osd[5381]: segfault at 3f592c000 ip 00007fa281d8eb23 sp 00007fa27702d260 error 4 in libtcmalloc.so.0.0.0[7fa281d6a000+3d000]

I uploaded the following files:
priebe_fio_randwrite_ceph-osd.21.log.bz2 =>  OSD which was OK and didn't crash
priebe_fio_randwrite_ceph-osd.22.log.bz2 =>  Log from the crashed OSD üu
priebe_fio_randwrite_core.ssdstor001.27204.bz2 =>  Core dump priebe_fio_randwrite_ceph-osd.bz2 =>  osd binary

Quoted 6 lines
Quoted 1 line

Stefan

--
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

Quoted 4 lines

--
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

--
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

#22 lore raw
In reply to Stefan Priebe

The ceph-osd binary you sent claims to be version 0.47.2-521-g88c762, which is not quite 0.47.3. You can get the version with <binary> -v, or (in my case) examining strings in the binary. I'm retrieving that version to analyze the core dump.

Quoted 45 lines · Stefan Priebe

Does anybody have an idea? This is right now a showstopper to me.

Am 21.06.2012 um 14:55 schrieb Stefan Priebe - Profihost AG<[email protected]>:

Quoted 41 lines

Hello list,

i'm able to reproducably crash osd daemons.

How i can reproduce:

Kernel: 3.5.0-rc3
Ceph: 0.47.3
FS: btrfs
Journal: 2GB tmpfs per OSD
OSD: 3x servers with 4x Intel SSD OSDs each
10GBE Network
rbd_cache_max_age: 2.0
rbd_cache_size: 33554432

Disk is set to writeback.

Start a KVM VM via PXE with the disk attached in writeback mode.

Then run randwrite stress more than 2 time. Mostly OSD 22 in my case crashes.

# fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G --numjobs=50 --runtime=90 --group_reporting --name=file1; fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G --numjobs=50 --runtime=90 --group_reporting --name=file1; fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G --numjobs=50 --runtime=90 --group_reporting --name=file1; halt

Strangely exactly THIS OSD also has the most log entries:

64K     ceph-osd.20.log
64K     ceph-osd.21.log
1,3M    ceph-osd.22.log
64K     ceph-osd.23.log

But all OSDs are set to debug osd = 20.

dmesg shows:
ceph-osd[5381]: segfault at 3f592c000 ip 00007fa281d8eb23 sp 00007fa27702d260 error 4 in libtcmalloc.so.0.0.0[7fa281d6a000+3d000]

I uploaded the following files:
priebe_fio_randwrite_ceph-osd.21.log.bz2 => OSD which was OK and didn't crash priebe_fio_randwrite_ceph-osd.22.log.bz2 => Log from the crashed OSD üu
priebe_fio_randwrite_core.ssdstor001.27204.bz2 => Core dump priebe_fio_randwrite_ceph-osd.bz2 => osd binary

Quoted 5 lines
Quoted 1 line

Stefan

--
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

--
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

#23 lore raw

Thanks yes it is from the next branch.

Am 23.06.2012 um 02:26 schrieb Dan Mick <[email protected]>:

Quoted 50 lines

The ceph-osd binary you sent claims to be version 0.47.2-521-g88c762, which is not quite 0.47.3. You can get the version with <binary> -v, or (in my case) examining strings in the binary. I'm retrieving that version to analyze the core dump.

Quoted 46 lines · Stefan Priebe

Does anybody have an idea? This is right now a showstopper to me.

Am 21.06.2012 um 14:55 schrieb Stefan Priebe - Profihost AG<[email protected]>:

Quoted 42 lines

Hello list,

i'm able to reproducably crash osd daemons.

How i can reproduce:

Kernel: 3.5.0-rc3
Ceph: 0.47.3
FS: btrfs
Journal: 2GB tmpfs per OSD
OSD: 3x servers with 4x Intel SSD OSDs each
10GBE Network
rbd_cache_max_age: 2.0
rbd_cache_size: 33554432

Disk is set to writeback.

Start a KVM VM via PXE with the disk attached in writeback mode.

Then run randwrite stress more than 2 time. Mostly OSD 22 in my case crashes.

# fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G --numjobs=50 --runtime=90 --group_reporting --name=file1; fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G --numjobs=50 --runtime=90 --group_reporting --name=file1; fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G --numjobs=50 --runtime=90 --group_reporting --name=file1; halt

Strangely exactly THIS OSD also has the most log entries:

64K     ceph-osd.20.log
64K     ceph-osd.21.log
1,3M    ceph-osd.22.log
64K     ceph-osd.23.log

But all OSDs are set to debug osd = 20.

dmesg shows:
ceph-osd[5381]: segfault at 3f592c000 ip 00007fa281d8eb23 sp 00007fa27702d260 error 4 in libtcmalloc.so.0.0.0[7fa281d6a000+3d000]

I uploaded the following files:
priebe_fio_randwrite_ceph-osd.21.log.bz2 => OSD which was OK and didn't crash priebe_fio_randwrite_ceph-osd.22.log.bz2 => Log from the crashed OSD üu
priebe_fio_randwrite_core.ssdstor001.27204.bz2 => Core dump priebe_fio_randwrite_ceph-osd.bz2 => osd binary

Stefan

Quoted 8 lines
Quoted 4 lines

--
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

--
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

--
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

#9 lore raw
In reply to Sam Just

Thanks did you find anything?

Am 23.06.2012 um 01:59 schrieb Sam Just <[email protected]>:

Quoted 74 lines

I am still looking into the logs.
-Sam

Quoted 70 lines · Dan Mick

Stefan, I'm looking at your logs and coredump now.

Quoted 55 lines · Stefan Priebe

Does anybody have an idea? This is right now a showstopper to me.

Am 21.06.2012 um 14:55 schrieb Stefan Priebe - Profihost AG<[email protected]>:

Quoted 49 lines

Hello list,

i'm able to reproducably crash osd daemons.

How i can reproduce:

Kernel: 3.5.0-rc3
Ceph: 0.47.3
FS: btrfs
Journal: 2GB tmpfs per OSD
OSD: 3x servers with 4x Intel SSD OSDs each
10GBE Network
rbd_cache_max_age: 2.0
rbd_cache_size: 33554432

Disk is set to writeback.

Start a KVM VM via PXE with the disk attached in writeback mode.

Then run randwrite stress more than 2 time. Mostly OSD 22 in my case crashes.

# fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; fio
--filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; fio
--filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; halt

Strangely exactly THIS OSD also has the most log entries:

64K     ceph-osd.20.log
64K     ceph-osd.21.log
1,3M    ceph-osd.22.log
64K     ceph-osd.23.log

But all OSDs are set to debug osd = 20.

dmesg shows:
ceph-osd[5381]: segfault at 3f592c000 ip 00007fa281d8eb23 sp 00007fa27702d260 error 4 in libtcmalloc.so.0.0.0[7fa281d6a000+3d000]

I uploaded the following files:
priebe_fio_randwrite_ceph-osd.21.log.bz2 => OSD which was OK and didn't crash
priebe_fio_randwrite_ceph-osd.22.log.bz2 => Log from the crashed OSD üu
priebe_fio_randwrite_core.ssdstor001.27204.bz2 => Core dump priebe_fio_randwrite_ceph-osd.bz2 => osd binary

Quoted 6 lines
Quoted 1 line

Stefan

--
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

--
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

--
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

#10 lore raw

I've yet to make the core match the binary.

Quoted 78 lines · Stefan Priebe

Thanks did you find anything?

Am 23.06.2012 um 01:59 schrieb Sam Just <[email protected]>:

Quoted 74 lines

I am still looking into the logs.
-Sam

Quoted 70 lines · Dan Mick

Stefan, I'm looking at your logs and coredump now.

Quoted 55 lines · Stefan Priebe

Does anybody have an idea? This is right now a showstopper to me.

Am 21.06.2012 um 14:55 schrieb Stefan Priebe - Profihost AG<[email protected]>:

Quoted 49 lines

Hello list,

i'm able to reproducably crash osd daemons.

How i can reproduce:

Kernel: 3.5.0-rc3
Ceph: 0.47.3
FS: btrfs
Journal: 2GB tmpfs per OSD
OSD: 3x servers with 4x Intel SSD OSDs each
10GBE Network
rbd_cache_max_age: 2.0
rbd_cache_size: 33554432

Disk is set to writeback.

Start a KVM VM via PXE with the disk attached in writeback mode.

Then run randwrite stress more than 2 time. Mostly OSD 22 in my case crashes.

# fio --filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; fio
--filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; fio
--filename=/dev/vda1 --direct=1 --rw=randwrite --bs=4k --size=200G
--numjobs=50 --runtime=90 --group_reporting --name=file1; halt

Strangely exactly THIS OSD also has the most log entries:

64K     ceph-osd.20.log
64K     ceph-osd.21.log
1,3M    ceph-osd.22.log
64K     ceph-osd.23.log

But all OSDs are set to debug osd = 20.

dmesg shows:
ceph-osd[5381]: segfault at 3f592c000 ip 00007fa281d8eb23 sp 00007fa27702d260 error 4 in libtcmalloc.so.0.0.0[7fa281d6a000+3d000]

I uploaded the following files:
priebe_fio_randwrite_ceph-osd.21.log.bz2 => OSD which was OK and didn't crash
priebe_fio_randwrite_ceph-osd.22.log.bz2 => Log from the crashed OSD üu
priebe_fio_randwrite_core.ssdstor001.27204.bz2 => Core dump priebe_fio_randwrite_ceph-osd.bz2 => osd binary

Quoted 6 lines
Quoted 1 line

Stefan

--
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

--
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

--
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

#11 lore raw
Quoted 2 lines

I've yet to make the core match the binary.

I'm sorry. Is there a way to provide more / better information.

Stefan

#12 lore raw
Quoted 6 lines · Stefan Priebe
Quoted 2 lines

I've yet to make the core match the binary.

I'm sorry. Is there a way to provide more / better information.

Stefan

Well, I was still looking at the possibility that it was my problem, but here are versions:

- the osd binary you sent is version 0.47.2-521-g88c7629, corresponding to sha1 5ce8d71fb6d2e3065c8b274e196c26288c7a93d0

- the corefile is from version 0.47.3 (sha1 c467d9d1b2eac9d3d4706b8e044979aa63b009f8)

Using any combination of your binary or my build of the binary from either version does not result in a matching stack backtrace from gdb.

If you can get a corefile and binary that match and send them again, perhaps we can get further; I'm not sure why what you sent didn't seem to match. Are you running the same version of Ceph on each host?

#13 lore raw

Am 25.06.2012 23:01, schrieb Dan Mick:

Quoted 8 lines · Stefan Priebe
Quoted 6 lines
Quoted 2 lines

I've yet to make the core match the binary.

I'm sorry. Is there a way to provide more / better information.

Stefan

Quoted 8 lines

Well, I was still looking at the possibility that it was my problem, but here are versions:

- the osd binary you sent is version 0.47.2-521-g88c7629, corresponding to sha1 5ce8d71fb6d2e3065c8b274e196c26288c7a93d0

- the corefile is from version 0.47.3 (sha1
c467d9d1b2eac9d3d4706b8e044979aa63b009f8)

ouch i'm really sorry. No idea right know how this happened.

Here are two new files:
priebe_core.ssdstor001.gz
priebe_ceph-osd.gz

most probably the same crash.

Thanks, sorry and
Greets
Stefan

#14 lore raw
Quoted 24 lines · Stefan Priebe

Am 25.06.2012 23:01, schrieb Dan Mick:

Quoted 8 lines · Stefan Priebe
Quoted 6 lines
Quoted 2 lines

I've yet to make the core match the binary.

I'm sorry. Is there a way to provide more / better information.

Stefan

Quoted 8 lines

Well, I was still looking at the possibility that it was my problem, but here are versions:

- the osd binary you sent is version 0.47.2-521-g88c7629, corresponding to sha1 5ce8d71fb6d2e3065c8b274e196c26288c7a93d0

- the corefile is from version 0.47.3 (sha1
c467d9d1b2eac9d3d4706b8e044979aa63b009f8)

ouch i'm really sorry. No idea right know how this happened.

Here are two new files:
priebe_core.ssdstor001.gz
priebe_ceph-osd.gz

Quoted 5 lines

most probably the same crash.

Thanks, sorry and
Greets
Stefan

These show

core: ceph version 0.47.3 (commit:c467d9d1b2eac9d3d4706b8e044979aa63b009f8)
binary: 0.47.3-528-g9fcc3de

which don't match either. How are you collecting the binary and the coredump file?

#15 lore raw

Strange! I just copied the core dump file and the ceph-osd binary from /us

Am 26.06.2012 um 02:11 schrieb Dan Mick <[email protected]>:

Quoted 39 lines · Stefan Priebe
Quoted 24 lines

Am 25.06.2012 23:01, schrieb Dan Mick:

Quoted 8 lines · Stefan Priebe
Quoted 6 lines
Quoted 2 lines

I've yet to make the core match the binary.

I'm sorry. Is there a way to provide more / better information.

Stefan

Quoted 8 lines

Well, I was still looking at the possibility that it was my problem, but here are versions:

- the osd binary you sent is version 0.47.2-521-g88c7629, corresponding to sha1 5ce8d71fb6d2e3065c8b274e196c26288c7a93d0

- the corefile is from version 0.47.3 (sha1
c467d9d1b2eac9d3d4706b8e044979aa63b009f8)

ouch i'm really sorry. No idea right know how this happened.

Here are two new files:
priebe_core.ssdstor001.gz
priebe_ceph-osd.gz

Quoted 5 lines

most probably the same crash.

Thanks, sorry and
Greets
Stefan

These show

core: ceph version 0.47.3 (commit:c467d9d1b2eac9d3d4706b8e044979aa63b009f8)
binary: 0.47.3-528-g9fcc3de

which don't match either. How are you collecting the binary and the coredump file?

#16 lore raw

Strange just copied /core.hostname and /usr/bin/ceph-osd no idea how this can happen. For building I use the provided Debian scripts.

Am 26.06.2012 um 07:15 schrieb Stefan Priebe <[email protected]>:

Quoted 47 lines

Strange! I just copied the core dump file and the ceph-osd binary from /us

Am 26.06.2012 um 02:11 schrieb Dan Mick <[email protected]>:

Quoted 33 lines · Stefan Priebe
Quoted 24 lines

Am 25.06.2012 23:01, schrieb Dan Mick:

Quoted 8 lines · Stefan Priebe
Quoted 6 lines
Quoted 2 lines

I've yet to make the core match the binary.

I'm sorry. Is there a way to provide more / better information.

Stefan

Quoted 8 lines

Well, I was still looking at the possibility that it was my problem, but here are versions:

- the osd binary you sent is version 0.47.2-521-g88c7629, corresponding to sha1 5ce8d71fb6d2e3065c8b274e196c26288c7a93d0

- the corefile is from version 0.47.3 (sha1
c467d9d1b2eac9d3d4706b8e044979aa63b009f8)

ouch i'm really sorry. No idea right know how this happened.

Here are two new files:
priebe_core.ssdstor001.gz
priebe_ceph-osd.gz

Quoted 5 lines

most probably the same crash.

Thanks, sorry and
Greets
Stefan

Quoted 6 lines

These show

core: ceph version 0.47.3 (commit:c467d9d1b2eac9d3d4706b8e044979aa63b009f8)
binary: 0.47.3-528-g9fcc3de

which don't match either. How are you collecting the binary and the coredump file?

--
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

#17 lore raw
Quoted 2 lines · Stefan Priebe

Strange just copied /core.hostname and /usr/bin/ceph-osd no idea how this can happen. For building I use the provided Debian scripts.

Perhaps you upgraded the debs but did not restart the daemons? That would make the on-disk executable with that name not match the in-memory one.

#18 lore raw

Am 26.06.2012 18:05, schrieb Tommi Virtanen:

Quoted 7 lines · Stefan Priebe
Quoted 2 lines

Strange just copied /core.hostname and /usr/bin/ceph-osd no idea how this can happen. For building I use the provided Debian scripts.

Perhaps you upgraded the debs but did not restart the daemons? That would make the on-disk executable with that name not match the in-memory one.

No, i reboot after each upgrade ;-)

Right now i'm witing for a FS fix xfs or btrfs and i will then reproduce the issue.

Stefan

#19 lore raw

Stefan,

Sorry for the delay, I think I've found the problem. Could you give wip_ms_handle_reset_race a try?
-Sam

Quoted 20 lines · Stefan Priebe

Am 26.06.2012 18:05, schrieb Tommi Virtanen:

Quoted 10 lines
Quoted 3 lines · Stefan Priebe

Strange just copied /core.hostname and /usr/bin/ceph-osd no idea how this can happen. For building I use the provided Debian scripts.

Perhaps you upgraded the debs but did not restart the daemons? That would make the on-disk executable with that name not match the in-memory one.

No, i reboot after each upgrade ;-)

Right now i'm witing for a FS fix xfs or btrfs and i will then reproduce the issue.

Stefan

#20 lore raw

THANKS a lot. This fixes it. I've merged your branch into next and i wsn't able to trigger the osd crash again. So please include this into 0.48.

Greets
Stefan

Am 26.06.2012 20:01, schrieb Sam Just:

Quoted 32 lines

Stefan,

Sorry for the delay, I think I've found the problem. Could you give wip_ms_handle_reset_race a try?
-Sam

Quoted 14 lines · Stefan Priebe

Am 26.06.2012 18:05, schrieb Tommi Virtanen:

Quoted 10 lines
Quoted 3 lines · Stefan Priebe

Strange just copied /core.hostname and /usr/bin/ceph-osd no idea how this can happen. For building I use the provided Debian scripts.

Perhaps you upgraded the debs but did not restart the daemons? That would make the on-disk executable with that name not match the in-memory one.

Quoted 6 lines

No, i reboot after each upgrade ;-)

Right now i'm witing for a FS fix xfs or btrfs and i will then reproduce the issue.

Stefan

--
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

#21 lore raw
Quoted 2 lines · Stefan Priebe - Profihost AG

THANKS a lot. This fixes it. I've merged your branch into next and i wsn't able to trigger the osd crash again. So please include this into 0.48.

Excellent. Thanks for testing! This now in next.

sage

Quoted 47 lines

Greets
Stefan

Am 26.06.2012 20:01, schrieb Sam Just:

Quoted 29 lines

Stefan,

Sorry for the delay, I think I've found the problem. Could you give wip_ms_handle_reset_race a try?
-Sam

Quoted 21 lines · Stefan Priebe

Am 26.06.2012 18:05, schrieb Tommi Virtanen:

Quoted 11 lines
Quoted 4 lines · Stefan Priebe

Strange just copied /core.hostname and /usr/bin/ceph-osd no idea how this
can happen. For building I use the provided Debian scripts.

Perhaps you upgraded the debs but did not restart the daemons? That would make the on-disk executable with that name not match the in-memory one.

No, i reboot after each upgrade ;-)

Right now i'm witing for a FS fix xfs or btrfs and i will then reproduce the
issue.

Quoted 6 lines
Quoted 1 line

Stefan

--
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

--
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