Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ceph osd fails due to /dev/sdX being changed across reboots. #76

Open
spatel-cog opened this issue Mar 5, 2019 · 0 comments
Open

ceph osd fails due to /dev/sdX being changed across reboots. #76

spatel-cog opened this issue Mar 5, 2019 · 0 comments

Comments

@spatel-cog
Copy link

Is this a request for help?:No


Is this a BUG REPORT or FEATURE REQUEST? (choose one):BUG REPORT

Version of Helm and Kubernetes:Helm: 2.11.0, Kubernetes 1.11.6

Which chart: ceph-helm

What happened:
Servers were configured with SAS controllers and onboard ATA controller i.e two sets of SSD/HDD controllers. Across reboots the drives /dev/ names changed e.g. drive on SAS controller port 1 became /dev/sdc and prior to reboot it was /dev/sda. This is not uncommon.
The values.yaml file was configured to avoid the situation using by-path rather than /dev/sdX values.

osd_devices:

  • name: nvsedcog-osd-1
    device: /dev/disk/by-path/pci-0000:00:11.4-ata-1
    journal: /dev/disk/by-path/pci-0000:00:1f.2-ata-2
  • name: nvsedcog-osd-2
    device: /dev/disk/by-path/pci-0000:00:11.4-ata-3
    journal: /dev/disk/by-path/pci-0000:00:1f.2-ata-2

What you expected to happen:
_osd_disk_activate.sh.tpl, _osd_disk_prepare.sh.tpl should have found the correct device name using readlink and used the corresponding /dev/sdX device.

How to reproduce it (as minimally and precisely as possible):

A SAS controller is not necessary - given 3 drives, /dev/sda, /dev/sdb, /dev/sdc, install ceph on /dev/sda and /dev/sdc.
Shutdown the server and remove /dev/sdb.
On restart, osd1 or the osd attached to /dev/sdc will fail.

Anything else we need to know:
I'm attaching the "fixes" I made to support by-path names in the values.yaml file:

_osd_disk_prepare.sh.tpl.txt
_osd_disk_activate.sh.tpl.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant