renzhengeek / issues

0 stars 0 forks source link

ceph: change ip of monitor #89

Open renzhengeek opened 8 years ago

renzhengeek commented 8 years ago

ceph2:~ # systemctl status ceph-mon@ceph2.service ceph-mon@ceph2.service - Ceph cluster monitor daemon Loaded: loaded (/usr/lib/systemd/system/ceph-mon@.service; enabled) Active: failed (Result: exit-code) since Wed 2016-06-29 19:42:34 CST; 1s ago Process: 3142 ExecStart=/usr/bin/ceph-mon -f --cluster ${CLUSTER} --id %i (code=exited, status=1/FAILURE) Main PID: 3142 (code=exited, status=1/FAILURE)

Jun 29 19:42:34 ceph2 ceph-mon[3142]: 2016-06-29 19:42:34.053970 7f2b17a8c7c0 -1 asok(0x3966000) AdminSocketConfigObs::init: failed: AdminSocket::bind_and_listen: failed to bind the UNIX domain socket to '/var/run/ceph/ceph-mon.ceph2.asok': (17) File exists Jun 29 19:42:34 ceph2 ceph-mon[3142]: IO error: lock /var/lib/ceph/mon/ceph-ceph2/store.db/LOCK: Resource temporarily unavailable Jun 29 19:42:34 ceph2 ceph-mon[3142]: 2016-06-29 19:42:34.061704 7f2b17a8c7c0 -1 error opening mon data directory at '/var/lib/ceph/mon/ceph-ceph2': (22) Invalid argument

renzhengeek commented 8 years ago

144 2016-06-29 19:14:17 ls /var/lib/ceph/mon/ceph-ceph2/ 145 2016-06-29 19:15:00 systemctl stop ceph-mon@ceph2.service 146 2016-06-29 19:15:28 monmaptool --print tmp/monmap 147 2016-06-29 19:16:08 rm -rf /var/lib/ceph/mon/ceph-ceph2/ 148 2016-06-29 19:16:20 ceph-mon -i ceph2 --mkfs --monmap tmp/monmap --keyring tmp/keyring 149 2016-06-29 19:16:38 ceph-mon -i ceph2 --public-addr 147.2.208.44:6789 150 2016-06-29 19:17:26 ceph mon remove ceph2 151 2016-06-29 19:17:34 ceph-mon -i ceph2 --public-addr 147.2.208.44:6789 152 2016-06-29 19:17:43 systemctl start ceph-mon@ceph2.service 153 2016-06-29 19:17:50 systemctl status ceph-mon@ceph2.service 154 2016-06-29 19:18:00 systemctl restart ceph-mon@ceph2.service 155 2016-06-29 19:18:02 systemctl status ceph-mon@ceph2.service 156 2016-06-29 19:34:19 ls /var/run/ceph/ceph-mon.ceph2.asok 157 2016-06-29 19:34:30 lsof /var/run/ceph/ceph-mon.ceph2.asok 158 2016-06-29 19:35:02 systemctl stop ceph-mon@ceph2.service 159 2016-06-29 19:35:05 lsof /var/run/ceph/ceph-mon.ceph2.asok 160* 2016-06-29 19:35:33 systemctl stop c 161 2016-06-29 19:35:48 ceph mon remove ceph2 162 2016-06-29 19:35:54 lsof /var/run/ceph/ceph-mon.ceph2.asok 163 2016-06-29 19:36:11 ll /var/run/ceph/ceph-mon.ceph2.asok 164 2016-06-29 19:36:48 ceph-mon -i ceph2 --mkfs --monmap tmp/monmap --keyring tmp/keyring 165 2016-06-29 19:36:56 ll /var/run/ceph/ceph-mon.ceph2.asok 166 2016-06-29 19:37:11 rm -rf /var/lib/ceph/mon/ceph-ceph2/ 167 2016-06-29 19:37:24 ceph-mon -i ceph2 --mkfs --monmap tmp/monmap --keyring tmp/keyring 168 2016-06-29 19:37:40 systemctl status ceph-mon@ceph2.service 169 2016-06-29 19:37:52 ceph-mon -i ceph2 --public-addr 147.2.208.44:6789 170 2016-06-29 19:38:11 lsof /var/run/ceph/ceph-mon.ceph2.asok 171 2016-06-29 19:38:27 systemctl status ceph-mon@ceph2.service 172 2016-06-29 19:39:04 ls /var/lib/ceph/mon/ceph-ceph2 173 2016-06-29 19:39:43 systemctl stop ceph-mon@ceph2.service 174 2016-06-29 19:39:48 ls /var/lib/ceph/mon/ceph-ceph2/store.db/LO 175 2016-06-29 19:39:55 lsof /var/run/ceph/ceph-mon.ceph2.asok 176 2016-06-29 19:40:06 ceph mon remove ceph2 177 2016-06-29 19:40:31 rm -rf /var/lib/ceph/mon/ceph-ceph2/* 178 2016-06-29 19:40:55 ceph-mon -i ceph2 --mkfs --monmap tmp/monmap --keyring tmp/keyring 179 2016-06-29 19:41:11 systemctl status ceph-mon@ceph2.service 180 2016-06-29 19:41:20 lsof /var/run/ceph/ceph-mon.ceph2.asok 181 2016-06-29 19:41:34 systemctl start ceph-mon@ceph2.service 182 2016-06-29 19:41:39 systemctl status ceph-mon@ceph2.service 183 2016-06-29 19:41:58 lsof /var/run/ceph/ceph-mon.ceph2.asok 184 2016-06-29 19:42:21 ceph-mon -i ceph2 --public-addr 147.2.208.44:6789 185 2016-06-29 19:42:27 systemctl status ceph-mon@ceph2.service 186 2016-06-29 19:42:34 systemctl start ceph-mon@ceph2.service 187 2016-06-29 19:42:35 systemctl status ceph-mon@ceph2.service

renzhengeek commented 8 years ago

ceph3:~ # systemctl status ceph-mon@ceph3.service ceph-mon@ceph3.service - Ceph cluster monitor daemon Loaded: loaded (/usr/lib/systemd/system/ceph-mon@.service; enabled) Active: failed (Result: exit-code) since Wed 2016-06-29 15:09:23 CST; 8h ago Main PID: 1740 (code=exited, status=1/FAILURE)

Jun 29 15:09:13 ceph3 ceph-mon[1740]: 2016-06-29 15:09:13.928621 7f9c926c37c0 -1 accepter.accepter.bind unable to bind to 147.2.208.116:67...d address Jun 29 15:09:13 ceph3 ceph-mon[1740]: 2016-06-29 15:09:13.928640 7f9c926c37c0 -1 accepter.accepter.bind was unable to bind. Trying again in 5 seconds Jun 29 15:09:18 ceph3 ceph-mon[1740]: 2016-06-29 15:09:18.928763 7f9c926c37c0 -1 accepter.accepter.bind unable to bind to 147.2.208.116:67...d address Jun 29 15:09:18 ceph3 ceph-mon[1740]: 2016-06-29 15:09:18.928819 7f9c926c37c0 -1 accepter.accepter.bind was unable to bind. Trying again in 5 seconds Jun 29 15:09:23 ceph3 ceph-mon[1740]: 2016-06-29 15:09:23.928937 7f9c926c37c0 -1 accepter.accepter.bind unable to bind to 147.2.208.116:67...d address Jun 29 15:09:23 ceph3 ceph-mon[1740]: 2016-06-29 15:09:23.928982 7f9c926c37c0 -1 accepter.accepter.bind was unable to bind after 3 attempt...d address Jun 29 15:09:23 ceph3 ceph-mon[1740]: 2016-06-29 15:09:23.928998 7f9c926c37c0 -1 unable to bind monitor to 147.2.208.116:6789/0