Re: A problem with ceph-disk and ceph-deploy

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

 



On Sat, Oct 26, 2013 at 1:57 AM, Sage Weil <sage@xxxxxxxxxxx> wrote:
> On Sat, 26 Oct 2013, xan.peng wrote:
>> Hi all,
>>
>> I ran into a little problem when trying ceph-deploy, and I'm wondering
>> it's a bug?
>>
>> steps:
>> 1) ./ceph-deploy -v osd prepare --fs-type ext4
>> mon02:sdb:/mnt/cephjournal/journal0
>> 2) ./ceph-deploy -v osd activate --fs-type ext4
>> mon02:/dev/sdb1:/mnt/cephjournal/journal0
>> "ERROR:ceph-disk:Failed to activate" shown.
>>
>> solution:
>> go to target node, run `ceph-disk -v activate --mark-init sysvinit
>> --mount /dev/sdb1`, find that in maybe_mkdir()@/usr/sbin/ceph-disk,
>> os.mkdir("/var/lib/ceph/osd/osd-1") is called.
>> Right here should we use os.makedirs() instead of os.mkdir()? As
>> makedirs will create all intermediate directories but mkdir will not.
>
> You mean /var/lib/ceph/osd didn't already exist?  That directory should be
> created by the package.  I think this has actually come up before but we
> deliberately left it this way because if the directory is missing the
> package is broken or not installed.  What distro are you using?  Is ceph
> installed?
>

Hmm, I get it, I'm running Ceph which is compiled manually (the
"configure && make && make install" things), and I should create
/var/lib/ceph/osd before ceph-deploying.
Sorry to disturb :(

-- 
Best,
xan
--
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