Bug #2110
create datablock error with ceph
Status: | Closed | Start date: | 06/08/2013 | |
---|---|---|---|---|
Priority: | Normal | Due 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.
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.