Project

General

Profile

Actions

Bug #3550

closed

mon: Ceph fails to work when IP address is changed on the host

Added by Anonymous over 11 years ago. Updated over 11 years ago.

Status:
Won't Fix
Priority:
Normal
Category:
Monitor
Target version:
-
% Done:

0%

Spent time:
Source:
Q/A
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I had an incident, where my DHCP server changed all the IP addresses of the nodes in my ceph cluster.

I looked up the new ip addresses that were assigned, and changed the /etc/ceph/ceph.conf file to reflect the new information. I then stopped and restarted Ceph on each node. (3 nodes).

I have found that the monmap has the IP addresses hard coded in them, and you have to remove and re-add each monitor to the monmap by hand.
every OSD also got thrown out of the cluster. I had to manually add them back into the cluster and reweight each one in the crush map.

We need a clean way for the node to change ip addresses. I would expect that if the conf file has changed, that the maps all read the conf file on a startup and update their data. Why is this not happening?

This happened on two different VM clusters in the Sunnyvale office (network outage).
These steps are hazardous for a user to have to do when moving a cluster to another data center or in the case of a network failure like we had here.


Files

ceph.conf (1.33 KB) ceph.conf configuration file from damaged cell Anonymous, 11/28/2012 02:33 PM
Actions

Also available in: Atom PDF