Skip to contentSkip to conversation

mount.ceph: modprobe failed, exit status 127

DISCUSSION Christoph Raible 3 participants 5 messages Apr 15, 2011 – Apr 18, 2011

lore
Share & tools
lore
#0 lore raw

Hi @all

I compiled new kernel on CentOS 5.6 (kernel-ml-2.6.38-2) with CEPH support

CONFIG_CEPH_LIB=y
# CONFIG_CEPH_LIB_PRETTYDEBUG is not set
CONFIG_CEPH_FS=y

Now when I want to mount a Ceph filesystem with

    mount -t ceph 10.1.9.46:/ /mnt/ceph

I got following error:

"mount.ceph: modprobe failed, exit status 127"

Have anyone an idea what I do wrong?

"dmesg | grep ceph" sends following output:

http://pastebin.com/rCzWdhVV

Regards,

Christoph Raible

Signature · 8 lines
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Philippe Miltin
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 
#1 lore raw
Quoted 5 lines · Christoph Raible

I compiled new kernel on CentOS 5.6 (kernel-ml-2.6.38-2) with CEPH support

CONFIG_CEPH_LIB=y
# CONFIG_CEPH_LIB_PRETTYDEBUG is not set
CONFIG_CEPH_FS=y

This builds the drivers into the kernel. For loadable modules you should use CONFIG_CEPH_LIB=m and CONFIG_CEPH_FS=m .

Quoted 4 lines

Now when I want to mount a Ceph filesystem with

    mount -t ceph 10.1.9.46:/ /mnt/ceph

I got following error:
"mount.ceph: modprobe failed, exit status 127"

Since ceph and libceph are already in the kernel, it seems logical that loading them would fail; after all, there are no modules to be loaded. Then again, it doesn't make sense that mount tries to load them anyway and fails.

Z

#2 lore raw
Quoted 8 lines · Zenon Panoussis
Quoted 4 lines

Now when I want to mount a Ceph filesystem with

    mount -t ceph 10.1.9.46:/ /mnt/ceph

I got following error:
"mount.ceph: modprobe failed, exit status 127"

Since ceph and libceph are already in the kernel, it seems logical that loading them would fail; after all, there are no modules to be loaded. Then again, it doesn't make sense that mount tries to load them anyway and fails.

If modprobe didn't find the module, he'd be getting exit status 1.

If ceph was built-in to the kernel, modprobe would see that and claim success.

Exit status 127 means the command was not found; for some reason, the executable "modprobe" is not in PATH when mount.ceph is run.

Are you perhaps trying to mount as non-root? That's not going to work.

Signature · 1 line
:(){ :|:&};:
#3 lore raw
Quoted 8 lines · Tommi Virtanen <tommi.virtanen <at> dreamhost.com> writes:
Quoted 6 lines · Zenon Panoussis
Quoted 4 lines

Now when I want to mount a Ceph filesystem with

    mount -t ceph 10.1.9.46:/ /mnt/ceph

I got following error:
"mount.ceph: modprobe failed, exit status 127"

Since ceph and libceph are already in the kernel, it seems logical that

loading

Quoted 1 line
Quoted 1 line

them would fail; after all, there are no modules to be loaded. Then again,

it

Quoted 4 lines
Quoted 1 line

doesn't make sense that mount tries to load them anyway and fails.

If modprobe didn't find the module, he'd be getting exit status 1.

Quoted 8 lines

If ceph was built-in to the kernel, modprobe would see that and claim success.

Exit status 127 means the command was not found; for some reason, the executable "modprobe" is not in PATH when mount.ceph is run.

Are you perhaps trying to mount as non-root? That's not going to work.

Hi I tried both with root and with a "normal" user.

Both had the same fault. My PATH-Variable looks like this:

/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:
/bin:/usr/sbin:/usr/bin:/root/bin

Is there something missing? When I do "modprobe ceph" this works fine...

Is it possible that my ceph.conf has an error?

http://pastebin.com/bhk1EvWm

Best regards,

Christoph

#4 lore raw
Quoted 6 lines · Christoph Raible

Hi I tried both with root and with a "normal" user.

Both had the same fault. My PATH-Variable looks like this:

/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:
/bin:/usr/sbin:/usr/bin:/root/bin

I see your PATH has /sbin in it, which is where modprobe is normally installed. That should work..

Try this as root:

strace -f -o ceph-mount-strace mount -t ceph 10.1.9.46:/ /mnt/ceph

(or whatever your mount command was) and upload the ceph-mount-strace file somewhere, e.g. pastebin.com. It shouldn't contain anything secret, in this case.

Signature · 1 line
:(){ :|:&};: