If you’re trying to set up a Ceph Metadata Server (MDS) manually on CentOS 7, especially on Ceph Nautilus version 14.2.19, you might encounter issues with starting the MDS daemon. Here’s a breakdown of the potential problems and a solution based on a common setup mistake.
Steps Taken and Setup
Creating the MDS Directory: You first created a folder inside
/var/lib/ceph/mds
with the naming format<clusterid>-mds.<hostid>
.Generating and Adding the Keyring: Using
ceph-authtool
, you created a keyring for the MDS and then added the necessary permissions using:Changing Permissions: You modified user permissions for contents of
/var/lib/ceph/mds/
toceph:ceph
.Verifying Keyring: You verified that the keyring matches in
ceph auth list
for the MDS.
After following these steps, the ceph-mds
service should ideally start without issue, but if it doesn’t, and you see the following error in journalctl
:
And on systemctl status ceph-mds@mds.<hostid>.service
you get a failure message:
Common Cause of the Issue: Directory Naming
This issue is frequently due to an incorrect directory naming convention inside /var/lib/ceph/mds
. Ceph requires a specific format, and even a minor deviation can cause the MDS daemon to fail when it cannot locate the configuration or keyring files as expected.
Solution
To resolve this issue:
Double-Check Directory Naming: Ensure that the folder name matches exactly the expected format
<clusterid>-mds.<hostid>
.- For instance, if your cluster ID is
ceph
and host ID ismds1
, the directory should be/var/lib/ceph/mds/ceph-mds.mds1
.
- For instance, if your cluster ID is
Restart the MDS Service: After renaming the directory to the correct format, restart the
ceph-mds
service:Verify Service Status: Check the status to confirm it’s running successfully:
Final Thoughts
Setting up Ceph manually can be intricate due to the strict directory and naming conventions Ceph expects. Following these conventions carefully, especially for directory names, can save time troubleshooting configuration errors like this one.
0 comments:
Post a Comment