A problem with ceph-disk and ceph-deploy

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

 



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.
-- 
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