unable to get conf option admin_socket for osd

sahostking

Renowned Member
Trying to run the following:

ceph daemon osd.6 perf

Can't get admin socket path: unable to get conf option admin_socket for osd: b"error parsing 'osd': expected string of the form TYPE.ID, valid types are: auth, mon, osd, mds, mgr, client\n"


Not sure what is wrong.

ceph.conf is as per below:

Code:
[global]
         auth_client_required = cephx
         auth_cluster_required = cephx
         auth_service_required = cephx
         cluster_network = 10.10.50.5/24
         fsid = 41cbed24-f092-4e1c-a308-efdad9af7099
         mon_allow_pool_delete = true
         mon_host = 10.10.50.5 10.10.50.9 10.10.50.13
         ms_bind_ipv4 = true
         ms_bind_ipv6 = false
         public_network = 10.10.50.5/24

[client]
         keyring = /etc/pve/priv/$cluster.$name.keyring

[mon.pve-1-ceph]
         public_addr = 10.10.50.5

[mon.pve-3-ceph]
         public_addr = 10.10.50.9

[mon.pve-5-ceph]
         public_addr = 10.10.50.13
 
did you run it on the host with the 'osd.6' ? it seems that error comes up when you try to run in on a different host
 
Trying to run the following:

ceph daemon osd.6 perf
Can't get admin socket path: unable to get conf option admin_socket for osd: b"error parsing 'osd': expected string of the form TYPE.ID, valid types are: auth, mon, osd, mds, mgr, client\n"


Not sure what is wrong.

ceph.conf is as per below:

Code:
[global]
         auth_client_required = cephx
         auth_cluster_required = cephx
         auth_service_required = cephx
         cluster_network = 10.10.50.5/24
         fsid = 41cbed24-f092-4e1c-a308-efdad9af7099
         mon_allow_pool_delete = true
         mon_host = 10.10.50.5 10.10.50.9 10.10.50.13
         ms_bind_ipv4 = true
         ms_bind_ipv6 = false
         public_network = 10.10.50.5/24

[client]
         keyring = /etc/pve/priv/$cluster.$name.keyring

[mon.pve-1-ceph]
         public_addr = 10.10.50.5

[mon.pve-3-ceph]
         public_addr = 10.10.50.9

[mon.pve-5-ceph]
         public_addr = 10.10.50.13
I also have this kind of problem. Does anyone help us to fix this error?
 
Hi,
I also have this kind of problem. Does anyone help us to fix this error?
the OSD daemon is running on a specific node, so you need to login on that node or issue the command for the daemon via SSH.
 
Try

osd_node01:/root:ceph daemon /var/run/ceph/7d6835d9-ee45-23bb-c1d8-xxxxxxxxxxxx/ceph-osd.6.asok config get perf
{
"perf": "true"
}
osd_node01:/root: