ceph2 | SUCCESS | rc=0 >>
ceph version 0.80.7 (6c0127fcb58008793d3c8b62d925bc91963672a3)

ceph3 | SUCCESS | rc=0 >>
ceph version 0.80.7 (6c0127fcb58008793d3c8b62d925bc91963672a3)

ceph4 | SUCCESS | rc=0 >>
ceph version 0.80.7 (6c0127fcb58008793d3c8b62d925bc91963672a3)

Yes, I thought that using sysvinit was strange too, but I didn’t know what to 
expect… Wonder where that went off the rails?


> On Jul 16, 2016, at 3:45 AM, Wido den Hollander <w...@42on.com> wrote:
> 
> 
>> Op 15 juli 2016 om 21:19 schreef Will Dennis <willard.den...@gmail.com>:
>> 
>> 
>> Hi all,
>> 
>> Background: Completely new to Ceph; trying it out on three VMs I have, 
>> following install instructions found at 
>> http://docs.ceph.com/docs/master/start/quick-ceph-deploy/ 
>> <http://docs.ceph.com/docs/master/start/quick-ceph-deploy/>
>> 
>> I am at the point in the docs where it says to run 'ceph-deploy osd 
>> activate’ on the other two nodes from the first node. I try to do so, but 
>> get the following error:
>> 
>> [root@ceph2 ~]# ceph-deploy osd activate ceph3:/dev/sdc ceph3:/dev/sdd 
>> ceph3:/dev/sde
>> [ceph_deploy.conf][DEBUG ] found configuration file at: 
>> /root/.cephdeploy.conf
>> [ceph_deploy.cli][INFO  ] Invoked (1.5.25): /bin/ceph-deploy osd activate 
>> ceph3:/dev/sdc ceph3:/dev/sdd ceph3:/dev/sde
>> [ceph_deploy.osd][DEBUG ] Activating cluster ceph disks ceph3:/dev/sdc: 
>> ceph3:/dev/sdd: ceph3:/dev/sde:
>> [ceph3][DEBUG ] connected to host: ceph3
>> [ceph3][DEBUG ] detect platform information from remote host
>> [ceph3][DEBUG ] detect machine type
>> [ceph_deploy.osd][INFO  ] Distro info: CentOS Linux 7.2.1511 Core
>> [ceph_deploy.osd][DEBUG ] activating host ceph3 disk /dev/sdc
>> [ceph_deploy.osd][DEBUG ] will use init type: sysvinit
>> [ceph3][INFO  ] Running command: ceph-disk -v activate --mark-init sysvinit 
>> --mount /dev/sdc
>> [ceph3][WARNIN] INFO:ceph-disk:Running command: /sbin/blkid -p -s TYPE 
>> -ovalue -- /dev/sdc
>> [ceph3][WARNIN] ceph-disk: Cannot discover filesystem type: device /dev/sdc: 
>> Line is truncated:
>> [ceph3][ERROR ] RuntimeError: command returned non-zero exit status: 1
>> [ceph_deploy][ERROR ] RuntimeError: Failed to execute command: ceph-disk -v 
>> activate --mark-init sysvinit --mount /dev/sdc
>> 
>> In some manual testing, I found that if I ran the listed command, indeed I 
>> got no output:
>> [root@ceph2 ~]# ssh root@ceph4 /sbin/blkid -p -s TYPE -ovalue -- /dev/sdc
>> [root@ceph2 ~]#
>> 
>> Then tried taking away the ‘-s TYPE’ and ‘-ovalue' params, I got output as 
>> follows:
>> [root@ceph2 ~]# ssh root@ceph4 /sbin/blkid -p -- /dev/sdc
>> /dev/sdc: PTTYPE="gpt"
>> [root@ceph2 ~]#
>> 
>> So if I modified the original command, but set the ‘-s' param to use 
>> “PTTYPE” instead of “TYPE”, I get a valid response:
>> [root@ceph2 ~]# ssh root@ceph4 /sbin/blkid -p -s PTTYPE -ovalue -- /dev/sdc
>> gpt
>> [root@ceph2 ~]#
>> 
>> Is this a bug in ‘osd activate’ (at least on CentOS 7.2), or is there some 
>> way to specify the blkid parameter to use?
>> 
> 
> Which version of Ceph are you testing with?
> 
> I see 'will use init type: sysvinit' which is odd, since Ceph version Jewel 
> uses systemd.
> 
> Wido
> 
>> Thanks,
>> Will_______________________________________________
>> ceph-users mailing list
>> ceph-users@lists.ceph.com
>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to