[root@node3 ceph-cluster]# ceph-deploy osd activate node2:/dev/sdb1
[ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf
[ceph_deploy.cli][INFO ] Invoked (1.5.21): /usr/bin/ceph-deploy osd activate node2:/dev/sdb1
[ceph_deploy.osd][DEBUG ] Activating cluster ceph disks node2:/dev/sdb1:
[node2][DEBUG ] connected to host: node2
[node2][DEBUG ] detect platform information from remote host
[node2][DEBUG ] detect machine type
[ceph_deploy.osd][INFO ] Distro info: CentOS Linux 7.0.1406 Core
[ceph_deploy.osd][DEBUG ] activating host node2 disk /dev/sdb1
[ceph_deploy.osd][DEBUG ] will use init type: sysvinit
[node2][INFO ] Running command: ceph-disk -v activate --mark-init sysvinit --mount /dev/sdb1
[node2][WARNIN] INFO:ceph-disk:Running command: /sbin/blkid -p -s TYPE -ovalue -- /dev/sdb1
[node2][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mount_options_xfs
[node2][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_fs_mount_options_xfs
[node2][WARNIN] DEBUG:ceph-disk:Mounting /dev/sdb1 on /var/lib/ceph/tmp/mnt.NC9pdv with options noatime,inode64
[node2][WARNIN] INFO:ceph-disk:Running command: /usr/bin/mount -t xfs -o noatime,inode64 -- /dev/sdb1 /var/lib/ceph/tmp/mnt.NC9pdv
[node2][WARNIN] DEBUG:ceph-disk:Cluster uuid is cadb2f14-e2ea-41fb-8050-a2f0fe447475
[node2][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-osd --cluster=ceph --show-config-value=fsid
[node2][WARNIN] DEBUG:ceph-disk:Cluster name is ceph
[node2][WARNIN] DEBUG:ceph-disk:OSD uuid is 8bbf6631-8722-4e97-bf18-06253143acf6
[node2][WARNIN] DEBUG:ceph-disk:Allocating OSD id...
[node2][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph --cluster ceph --name client.bootstrap-osd --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring osd create --concise 8bbf6631-8722-4e97-bf18-06253143acf6
[node2][WARNIN] ERROR:ceph-disk:Failed to activate
[node2][WARNIN] DEBUG:ceph-disk:Unmounting /var/lib/ceph/tmp/mnt.NC9pdv
[node2][WARNIN] Traceback (most recent call last):
[node2][WARNIN] File "/usr/sbin/ceph-disk", line 2784, in <module>
[node2][WARNIN] main()
[node2][WARNIN] File "/usr/sbin/ceph-disk", line 2762, in main
[node2][WARNIN] args.func(args)
[node2][WARNIN] File "/usr/sbin/ceph-disk", line 1996, in main_activate
[node2][WARNIN] init=args.mark_init,
[node2][WARNIN] File "/usr/sbin/ceph-disk", line 1819, in mount_activate
[node2][WARNIN] os.rmdir(path)
[node2][WARNIN] OSError: [Errno 16] Device or resource busy: '/var/lib/ceph/tmp/mnt.NC9pdv'
[node2][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/sdb1
发件人: Karan Singh <karan.singh@xxxxxx>
收件人: yang.bin18@xxxxxxxxxx,
抄送: ceph-users <ceph-users@xxxxxxxxxxxxxx>
日期: 2014/12/16 22:51
主题: Re: [ceph-users] can not add osd
Hi
You logs does not provides much information , if you are following any other documentation for Ceph , i would recommend you to follow official Ceph docs.
http://ceph.com/docs/master/start/quick-start-preflight/
****************************************************************
Karan Singh
Systems Specialist , Storage Platforms
CSC - IT Center for Science,
Keilaranta 14, P. O. Box 405, FIN-02101 Espoo, Finland
mobile: +358 503 812758
tel. +358 9 4572001
fax +358 9 4572302
http://www.csc.fi/
****************************************************************
On 16 Dec 2014, at 09:55, yang.bin18@xxxxxxxxxx wrote:
hi
When i execute "ceph-deploy osd prepare node3:/dev/sdb",always come out err like this :
[node3][WARNIN] INFO:ceph-disk:Running command: /bin/umount -- /var/lib/ceph/tmp/mnt.u2KXW3
[node3][WARNIN] umount: /var/lib/ceph/tmp/mnt.u2KXW3: target is busy.
Then i execute "/bin/umount -- /var/lib/ceph/tmp/mnt.u2KXW3",result is ok.
--------------------------------------------------------
ZTE Information Security Notice: The information contained in this mail (and any attachment transmitted herewith) is privileged and confidential and is intended for the exclusive use of the addressee(s). If you are not an intended recipient, any disclosure, reproduction, distribution or other dissemination or use of the information contained is strictly prohibited. If you have received this mail in error, please delete it and notify us immediately.
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
-------------------------------------------------------- ZTE Information Security Notice: The information contained in this mail (and any attachment transmitted herewith) is privileged and confidential and is intended for the exclusive use of the addressee(s). If you are not an intended recipient, any disclosure, reproduction, distribution or other dissemination or use of the information contained is strictly prohibited. If you have received this mail in error, please delete it and notify us immediately.
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com