我要评分
获取效率
正确性
完整性
易理解

"Permission denied" Displayed When Creating OSDs on Ceph

Symptom

Environment settings

Category

Item

Version

Hardware

CPU

Kunpeng 920 processor

Network

Ethernet-10GE

Storage

3 x 480 GB SSD

Memory

1024 GB

OS

CentOS

7.6

Kernel

4.14.0

Software

ceph-deploy

2.0.0

Python

2.7

Problem description:

When the ceph-deploy osd create ceph1 --data /dev/bcache0 --block-db /dev/sdb1 --block-wal /dev/sdb2 command is executed to create an OSD, the message "[ceph_deploy][ERROR ] IOError: [Error 13] Permission denied: '/sys/devices/pci0000:b4/0000b4:02.0/host6/port-6:3/end_device-6:3/target6:0:3/6:0:3:0/block/sdd/bcache/ceph-deploy-ceph.log'" is displayed.

Key Process and Cause Analysis

Run the ceph -s command to check the current cluster status. It is found that the cluster is in the HEALTH_WARN state. Run the ceph -w command to check the cluster status. It is found that the clocks of nodes are not synchronized. The cause is that the ntpd service on the clock source node in the cluster is disabled.

Conclusion and Solution

Start the ntpd service on the clock source node and manually synchronize the time on other nodes.

  1. Run the following command on the clock source node to start ntpd:
    systemctl start ntpd
  2. Run the NTP synchronization command on other nodes.
    ntpdate host1

In the preceding command, host1 indicates the clock source node.