1. Environmental description
With Kolla deployed Ceph, since the OSD 0 occupies the SATA 0 channel, the system disk needs to be swapped with the OSD 0 jumper, after the jumper switch, the OSD 0 does not start properly.
2, Reason analysis:
Before switching jumpers, the device file of the OSD 0 is/dev/sda2, the switch jumper becomes/dev/sdc2,osd at startup,--osd-journal/dev/sda2, specifies the log device, because the log partition device name becomes/DEV/SDC2 after the jumper changes, The OSD startup still uses/DEV/SDA2 as the log device, so it fails to start.
3, the solution:
Docker Rm-f Ceph_osd_0
Docker run-d--net=host-v/etc/kolla/ceph-osd/:/var/lib/kolla/config_files-v/etc/localtime:/etc/localtime:ro- v/dev/:/dev/-v/var/lib/ceph/osd/e8bcddfd-6e87-43d2-8bad-174600658ee9:/var/lib/ceph/osd/ceph-0-V Kolla_logs:/var /log/kolla/--privileged--name ceph_osd_0-e osd_id=0-e journal_partition=/dev/sdc2-e KOLLA_CONFIG_STRATEGY=C Opy_always--restart=unless-stopped Kolla/centos-source-ceph-osd:newton
This article is from the "Wuling Grassland" blog, please make sure to keep this source http://penguintux.blog.51cto.com/3021117/1884079
Replace the hard drive jumper, the Ceph OSD does not start properly