]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/OSD: tolerate any 'set-device-class' error on OSD startup 16812/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Fri, 4 Aug 2017 08:39:43 +0000 (16:39 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 4 Aug 2017 09:36:58 +0000 (17:36 +0800)
commit244db7405ec2c75bf17d718aa5bb71d753eb7f0b
tree7fdc099527ece6492338e484428b7030d15bcc1a
parent9964cf177bd800ca18123207fe0ba71d93179c6c
osd/OSD: tolerate any 'set-device-class' error on OSD startup

We might use 'ceph-disk prepare --crush-device-class' to specify a class
for an OSD and then manually change its class to quite another.

This will prevent OSD from booting on next startup:

mon_cmd_maybe_osd_create fail: 'osd.2 has already bound to class 'class2', can not reset class to 'class1'; use 'ceph osd crush rm-device-cl
ass <osd>' to remove old class first': (16) Device or resource busy
2017-08-04 15:52:41.997158 7f7c55aa4d00 -1 osd.2 231 init unable to update_crush_device_class: (16) Device or resource busy

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/OSD.cc