[SOLVED] Ceph error while adding OSD

Astraea

Renowned Member
Aug 25, 2018
214
31
68
I have created a new 3 Node Ceph cluster. Each node has 4 HDDs for OSDs and on the first 2 nodes I was able to create the managers, monitors and also all of the disks were able to be added as OSDs. However on the 3rd node I get this error when I try and create an OSD on any of the disks:

create OSD on /dev/sdc (bluestore) wiping block device /dev/sdc 200+0 records in 200+0 records out 209715200 bytes (210 MB, 200 MiB) copied, 1.71543 s, 122 MB/s --> UnboundLocalError: cannot access local variable 'device_slaves' where it is not associated with a value TASK ERROR: command 'ceph-volume lvm create --cluster-fsid 9d027247-0375-4492-bbe6-fc65fc7097fb --crush-device-class hdd --data /dev/sdc' failed: exit code 1

I was able to create the monitor and manager on this node and Ceph is showing OK as well as the Proxmox cluster. I have tried a restart of this node and still cannot get it to make OSDs. I even did a full rebuild of all three nodes and got to the same problem when adding OSDs on this third node. It is also identical to the second node with all hardware matching so it should not be a hardware issue and on the previous setup i remove the OSDs from the second node. swapped the disks between the second and third node and was able to add the disks that were now in the second node without an issue.

I should also note that on this third node I am able to wipe the disks and also create a ZFS array on them so they are writable and working proberly otherwise from what I have been able to tell. I also tried this command: ceph-volume lvm zap /dev/sdc --destroy on each of the disks in the third node and got the same error of: UnboundLocalError: cannot access local variable 'device_slaves' where it is not associated with a value
 
Last edited:
Trying an different approach to solve this issue I tried taking the OSDs from node 2 and DOWNED and OUT them 4 and moved the disks to node 3. I then was able to bring them IN but could not bring them UP. Node 2 was able to bring the now blank disks from the node 3 UP and IN after being able to create an OSD for each of the four disks. Node 3 when starting gave a generic error and when clicking on the Details button on the WebUI it says that OSD does not exist on node 3.

I was able to get the OSDs to get IN and UP once I activated them on the new node. They seem to be working now.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!