Ceph noob - getting error when I try to "ceph-deploy osd activate" on a node

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

 



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/

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?

Thanks,
Will
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux