creating empty object store when osd activate

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

 



Hi all,

 

There is an error message when I run “ceph-deploy osd activate…..”

Before that, I have run “ceph-deploy osd prepare t-ceph-01:/mnt/dev/ t-ceph-02:/mnt/dev/” successfully

Does anyone know the reason? Anything I did wrongly?

Thank you.

 

ceph@t-ceph-01:/home/ubuntu$ ceph --version

ceph version 10.2.6 (656b5b63ed7c43bd014bcafd81b001959d5f089f)

 

ceph@t-ceph-01:/home/ubuntu$ df -Th

Filesystem     Type      Size  Used Avail Use% Mounted on

udev           devtmpfs  492M   12K  492M   1% /dev

tmpfs          tmpfs     100M  336K   99M   1% /run

/dev/xvda1     ext4      7.8G  1.8G  5.6G  25% /

none           tmpfs     4.0K     0  4.0K   0% /sys/fs/cgroup

none           tmpfs     5.0M     0  5.0M   0% /run/lock

none           tmpfs     497M     0  497M   0% /run/shm

none           tmpfs     100M     0  100M   0% /run/user

/dev/xvdf      ext4      2.0G  1.8G  4.0K 100% /mnt/dev

 

Here is the error message:

ceph@t-ceph-01:~$ ceph-deploy osd activate t-ceph-01:/mnt/dev/ t-ceph-02:/mnt/dev/

[ceph_deploy.conf][DEBUG ] found configuration file at: /var/lib/ceph/.cephdeploy.conf

[ceph_deploy.cli][INFO  ] Invoked (1.5.37): /usr/bin/ceph-deploy osd activate t-ceph-01:/mnt/dev/ t-ceph-02:/mnt/dev/

[ceph_deploy.cli][INFO  ] ceph-deploy options:

[ceph_deploy.cli][INFO  ]  username                      : None

[ceph_deploy.cli][INFO  ]  verbose                       : False

[ceph_deploy.cli][INFO  ]  overwrite_conf                : False

[ceph_deploy.cli][INFO  ]  subcommand                    : activate

[ceph_deploy.cli][INFO  ]  quiet                         : False

[ceph_deploy.cli][INFO  ]  cd_conf                       : <ceph_deploy.conf.cephdeploy.Conf instance at 0x7f51bf7b9638>

[ceph_deploy.cli][INFO  ]  cluster                       : ceph

[ceph_deploy.cli][INFO  ]  func                          : <function osd at 0x7f51bfc221b8>

[ceph_deploy.cli][INFO  ]  ceph_conf                     : None

[ceph_deploy.cli][INFO  ]  default_release               : False

[ceph_deploy.cli][INFO  ]  disk                          : [('t-ceph-01', '/mnt/dev/', None), ('t-ceph-02', '/mnt/dev/', None)]

[ceph_deploy.osd][DEBUG ] Activating cluster ceph disks t-ceph-01:/mnt/dev/: t-ceph-02:/mnt/dev/:

[t-ceph-01][DEBUG ] connection detected need for sudo

[t-ceph-01][DEBUG ] connected to host: t-ceph-01

[t-ceph-01][DEBUG ] detect platform information from remote host

[t-ceph-01][DEBUG ] detect machine type

[t-ceph-01][DEBUG ] find the location of an executable

[t-ceph-01][INFO  ] Running command: sudo /sbin/initctl version

[t-ceph-01][DEBUG ] find the location of an executable

[ceph_deploy.osd][INFO  ] Distro info: Ubuntu 14.04 trusty

[ceph_deploy.osd][DEBUG ] activating host t-ceph-01 disk /mnt/dev/

[ceph_deploy.osd][DEBUG ] will use init type: upstart

[t-ceph-01][DEBUG ] find the location of an executable

[t-ceph-01][INFO  ] Running command: sudo /usr/sbin/ceph-disk -v activate --mark-init upstart --mount /mnt/dev/

[t-ceph-01][WARNIN] main_activate: path = /mnt/dev/

[t-ceph-01][WARNIN] activate: Cluster uuid is cc34bc6d-d5c0-4b2e-a8e7-12a3331830a2

[t-ceph-01][WARNIN] command: Running command: /usr/bin/ceph-osd --cluster=ceph --show-config-value=fsid

[t-ceph-01][WARNIN] activate: Cluster name is ceph

[t-ceph-01][WARNIN] activate: OSD uuid is c06b3214-befc-4670-a99b-b80ef70c8c14

[t-ceph-01][WARNIN] activate: OSD id is 1

[t-ceph-01][WARNIN] activate: Initializing OSD...

[t-ceph-01][WARNIN] command_check_call: Running command: /usr/bin/ceph --cluster ceph --name client.bootstrap-osd --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring mon getmap -o /mnt/dev/activate.monmap

[t-ceph-01][WARNIN] got monmap epoch 1

[t-ceph-01][WARNIN] command: Running command: /usr/bin/timeout 300 ceph-osd --cluster ceph --mkfs --mkkey -i 1 --monmap /mnt/dev/activate.monmap --osd-data /mnt/dev/ --osd-journal /mnt/dev/journal --osd-uuid c06b3214-befc-4670-a99b-b80ef70c8c14 --keyring /mnt/dev/keyring --setuser ceph --setgroup ceph

[t-ceph-01][WARNIN] Traceback (most recent call last):

[t-ceph-01][WARNIN]   File "/usr/sbin/ceph-disk", line 9, in <module>

[t-ceph-01][WARNIN]     load_entry_point('ceph-disk==1.0.0', 'console_scripts', 'ceph-disk')()

[t-ceph-01][WARNIN]   File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 5047, in run

[t-ceph-01][WARNIN]     main(sys.argv[1:])

[t-ceph-01][WARNIN]   File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 4998, in main

[t-ceph-01][WARNIN]     args.func(args)

[t-ceph-01][WARNIN]   File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 3365, in main_activate

[t-ceph-01][WARNIN]     init=args.mark_init,

[t-ceph-01][WARNIN]   File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 3185, in activate_dir

[t-ceph-01][WARNIN]     (osd_id, cluster) = activate(path, activate_key_template, init)

[t-ceph-01][WARNIN]   File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 3290, in activate

[t-ceph-01][WARNIN]     keyring=keyring,

[t-ceph-01][WARNIN]   File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 2773, in mkfs

[t-ceph-01][WARNIN]     '--setgroup', get_ceph_group(),

[t-ceph-01][WARNIN]   File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 2720, in ceph_osd_mkfs

[t-ceph-01][WARNIN]     raise Error('%s failed : %s' % (str(arguments), error))

[t-ceph-01][WARNIN] ceph_disk.main.Error: Error: ['ceph-osd', '--cluster', 'ceph', '--mkfs', '--mkkey', '-i', u'1', '--monmap', '/mnt/dev/activate.monmap', '--osd-data', '/mnt/dev/', '--osd-journal', '/mnt/dev/journal', '--osd-uuid', u'c06b3214-befc-4670-a99b-b80ef70c8c14', '--keyring', '/mnt/dev/keyring', '--setuser', 'ceph', '--setgroup', 'ceph'] failed : 2017-03-21 02:02:34.489409 7f0e40138800 -1 filestore(/mnt/dev/) WARNING: max attr value size (1024) is smaller than osd_max_object_name_len (2048).  Your backend filesystem appears to not support attrs large enough to handle the configured max rados name size.  You may get unexpected ENAMETOOLONG errors on rados operations or buggy behavior

[t-ceph-01][WARNIN] 2017-03-21 02:02:34.489793 7f0e40138800 -1 filestore(/mnt/dev/) mkfs failed to create leveldb

[t-ceph-01][WARNIN] 2017-03-21 02:02:34.489828 7f0e40138800 -1 OSD::mkfs: ObjectStore::mkfs failed with error -1

[t-ceph-01][WARNIN] 2017-03-21 02:02:34.489878 7f0e40138800 -1  ** ERROR: error creating empty object store in /mnt/dev/: (1) Operation not permitted

[t-ceph-01][WARNIN]

[t-ceph-01][ERROR ] RuntimeError: command returned non-zero exit status: 1

[ceph_deploy][ERROR ] RuntimeError: Failed to execute command: /usr/sbin/ceph-disk -v activate --mark-init upstart --mount /mnt/dev/


This e-mail transmission and its attachment are intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempted from disclosure under applicable law. If the reader is not the intended recipient, you are hereby notified that any disclosure, dissemination, distribution or copying of this communication, in part or entirety, is strictly prohibited. If you are not the intended recipient for this confidential e-mail, delete it immediately without keeping or distributing any copy and notify the sender immediately. The hard copies should also be destroyed. Thank you for your cooperation. It is advisable that any unauthorized use of confidential information of this Company is strictly prohibited; and any information in this email that does not relate to the official business of this Company shall be deemed as neither given nor endorsed by this Company.

_______________________________________________
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]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux