Project

General

Profile

Actions

Bug #201

closed

Floating point exception when journal path is a directory

Added by Wido den Hollander almost 14 years ago. Updated over 13 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
OSD
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

When trying to add a new OSD i forgot that the journal had to be a file or a blockdevice, but instead a created a directory.

osd journal = /srv/ceph/journal

When trying to initialize the OSD i got a floating point exception.

root@htpc:~# cosd -c /etc/ceph/ceph.conf -i 7 --mkfs --monmap /tmp/monmap
 ** WARNING: Ceph is still under heavy development, and is only suitable for **
 **          testing and review.  Do not trust it with important data.       **
Floating point exception

Took me some time to find the cause, it might be helpfull if there would be an extra check for this. When the journal is a directory, fail with a descent message.

open("/srv/ceph/journal", O_RDONLY)     = 9
fstat(9, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
pread(9, 0x878000, 4096, 0)             = -1 EISDIR (Is a directory)
write(4, "10.06.15_14:57:47.827622 7f90fea"..., 82) = 82
--- SIGFPE (Floating point exception) @ 0 (0) ---
+++ killed by SIGFPE +++
Floating point exception
Actions #1

Updated by Yehuda Sadeh almost 14 years ago

  • Status changed from New to Resolved

Fixed by 862bb864908ec22ec70b616ee2eddcf31e497742.

Now it'll exit cleanly and logs should be more descriptive about such a problem.

Actions

Also available in: Atom PDF