Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What about the error report of ceph cluster installation

2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is to share with you about how to report errors in ceph cluster installation. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

1. Error creating key Times

[root@node1 ~] # ceph-deploy gatherkeys node1

[node1] [DEBUG] get remote short hostname

[node1] [DEBUG] fetch remote file

[node1] [INFO] Running command: / usr/bin/ceph-connect-timeout=25-cluster=ceph-admin-daemon=/var/run/ceph/ceph-mon.node1.asok mon_status

[node1] [ERROR] Not yet quorum for 'node1'

[ceph_deploy.gatherkeys] [ERROR] Failed to connect to host:node1

[ceph_deploy.gatherkeys] [INFO] Destroy temp directory / tmp/tmpMfWp77

[ceph_deploy] [ERROR] RuntimeError: Failed to connect any mon

Solution:

[root@node1 ~] # systemctl stop firewalld

[root@node1 ~] # systemctl disable firewalld

Removed symlink / etc/systemd/system/multi-user.target.wants/firewalld.service.

Removed symlink / etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

[root@node1] # ceph-deploy-- overwrite-conf mon create-initial

two。 Authentication permission issues using ceph

[root@node1] # / bin/ceph-- cluster=ceph osd stat-- format=json

2019-04-25 09 unable to find a keyring on 1631.404 7f5a501ac700-1 auth: unable to find a keyring on / etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,: (2) No such file or directory

2019-04-25 09 7f5a501ac700 1631 404 7f5a501ac700-1 monclient: ERROR: missing keyring, cannot use cephx for authentication

[errno 2] error connecting to the cluster

Solution:

[root@node1 ~] # find /-name ceph.client.admin.keyring

/ root/ceph.client.admin.keyring

[root@node1] # cp-a / root/ceph.client.admin.keyring / etc/ceph/

[root@node1 ~] # chmod + r ceph.client.admin.keyring

[root@node1] # / bin/ceph-- cluster=ceph osd stat-- format=json

{"epoch": 7, "num_osds": 1, "num_up_osds": 1, "num_in_osds": 1, "full": false, "nearfull": false, "num_remapped_pgs": 0}

[root@node1 ~] # ceph health

HEALTH_WARN no active mgr

[root@node1 ~] #

3. Use ceph health to show that mgr is not activated

[root@node1 ~] # ceph health

HEALTH_WARN no active mgr

[root@node1 ~] #

Solution:

[root@node1 ~] # ceph-deploy mgr create node1 node2 node3-- create a mgr process

[root@node1 ~] # ceph health

HEALTH_OK

[root@node1 ~] # ceph mgr metadata

4. Restart the system after installing ceph (unable to enter the terminal)

Restarting network (Via systemctl): Error getting authority: Error initializing authority: Could not connect: No such file or directory

Welcome to emergency moored after logging in,type "journalcel-xb" to view

System logs, "systemctl reboot" to reboot, "systemctl default" or ^ D to

Try again to boot into default mode.

Give root password for maintenance

(Control-D)

Login incorrect

Solution:

Note the osd disk partition. You cannot mount the osd partition, otherwise you will not be able to enter the system. You can also add the nofail parameter after the defaults of the partition and separate it with a comma.

[root@node2 ~] # cat / etc/fstab

# / etc/fstab

# Created by anaconda on Wed Apr 24 20:17:43 2019

# Accessible filesystems, by reference, are maintained under'/ dev/disk'

# See man pages fstab (5), findfs (8), mount (8) and/or blkid (8) for more info

UUID=2096e465-9251-4dd7-93c7-a163adba6209 / xfs defaults 0 0

UUID=76236dfd-510d-4d33-9071-3f2ecfeee3f7 / boot xfs defaults 0 0

# UUID=zDLnfa-iAwr-yp1k-C19m-8oOC-iLmS-agJarY / data ext4 defaults 0 0-Note osd disk partitions and cannot be mounted

UUID=e1f86a97-a02f-47aa-bd1e-6aaae4db60f7 swap swap defaults 0 0

[root@node2 ~] #

Thank you for reading! This is the end of this article on "how to report errors in ceph cluster installation". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report