osd_journal error in mkbsdocfs.in

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,all
I test ceph v0.30 without osd_journal, but i cannot set up  the
cluster successful,
it shows :
2011-07-05 08:10:54.874622   mds e14: 1/1/1 up {0=0=up:replay}, 1 up:standby
2011-07-05 08:10:54.874655   osd e22: 3 osds: 0 up, 0 in
the output is :
=== osd.0 ===
dirname: missing operand
Try `dirname --help' for more information.
mkdir: missing operand
Try `mkdir --help' for more information.
failed: '/usr/sbin/mkcephfs -d /tmp/mkcephfs.NUxYzZlZQT --prepare-osdfs osd.0'

use bashdb to debug, i find something wrong with this in mkcephfs.in :
[ -n "$osd_journal" ] && test -d $osd_journal || mkdir -p `dirname $osd_journal`

i instead it by :
  if [ -n "$osd_journal" ] ; then
    	test -d $osd_journal || mkdir -p `dirname $osd_journal`
    fi
everything works fine

you know, not all people use osd_journal

thanks
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux