Bug #2110

create datablock error with ceph

Added by alan zhang about 8 years ago. Updated almost 8 years ago.

Status:ClosedStart date:06/08/2013
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Drivers - Storage
Target version:Release 4.4
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.0

Description

If you want to create a datablock on ceph,you will get a error like: mkfs: command not found and MKFS FAILURE 30 Error registering.

Associated revisions

Revision 3b2e9285
Added by Jaime Melis almost 8 years ago

Bug #2110: create datablock error with ceph

Revision 32f8890e
Added by Jaime Melis over 7 years ago

Reapply fixes for Bug #2110 and Bug #2271

History

#1 Updated by alan zhang about 8 years ago

Think I fixed it.
Edit the /var/lib/one/remotes/datastore/ceph/mkfs file:
Line 86
From:

MKFS_CMD=`mkfs_command $TMP_DST $FSTYPE $SIZE`

TO

MKFS_CMD=`$MKFS $TMP_DST $FSTYPE $SIZE`

Fix it.

#2 Updated by Carlos Martín almost 8 years ago

  • Category set to Drivers - Storage

#3 Updated by Ruben S. Montero almost 8 years ago

  • Target version set to Release 4.4

#4 Updated by Andrei Nistor almost 8 years ago

IMO the better fix is to add

export PATH=/usr/sbin:/sbin:\$PATH

around line 90 in /var/lib/one/remotes/datastore/ceph/mkfs

That's how it's handled in the other TM drivers.

#5 Updated by Jaime Melis almost 8 years ago

  • Status changed from Pending to Closed
  • Resolution set to fixed

Indeed Andrei. That's what we've applied.

Thanks for the feedback to both of you.

Also available in: Atom PDF