Replace the hard drive jumper, the Ceph OSD does not start properly

Source: Internet
Author: User

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:

    • Delete an existing Docker container

Docker Rm-f Ceph_osd_0
    • Restart the Docker container based on the ansible playbooks of the Ceph OSD

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.