Error getting osd journal information

lifeboy

Renowned Member
Proxmox 6.4

When I issue this command I get an error and no result:
Code:
# ceph-osd --get-journal-fsid --osd-journal=/dev/sde -i 23
2021-09-29 22:14:58.319 7f59ee497c80 -1 asok(0x55eb542d8000) AdminSocketConfigObs::init: failed: AdminSocket::bind_and_listen: failed to bind the UNIX domain socket to '/var/run/ceph/ceph-osd.23.asok': (17) File exists
00000000-0000-0000-0000-000000000000

So i tried:
Code:
# ceph-osd --get-journal-fsid -i 23
2021-09-29 22:17:04.895 7f040042dc80 -1 asok(0x560eabc30000) AdminSocketConfigObs::init: failed: AdminSocket::bind_and_listen: failed to bind the UNIX domain socket to '/var/run/ceph/ceph-osd.23.asok': (17) File exists
2021-09-29 22:17:04.895 7f040042dc80 -1 bluestore(/var/lib/ceph/osd/ceph-23/journal) _read_bdev_label failed to open /var/lib/ceph/osd/ceph-23/journal: (2) No such file or directory
failed to get device fsid for /var/lib/ceph/osd/ceph-23/journal: (22) Invalid argument

A directory listing shows that the journal does not exist:
Code:
# ls -la /var/lib/ceph/osd/ceph-23/
total 32
drwxrwxrwt 2 ceph ceph  200 Sep 18 00:35 .
drwxr-xr-x 8 ceph ceph 4096 Dec 10  2019 ..
lrwxrwxrwx 1 ceph ceph   50 Sep 18 00:35 block -> /dev/mapper/ybYhaK-v8oa-wIzH-5eCD-XnEK-tTIT-RnCvx7
-rw------- 1 ceph ceph   37 Sep 18 00:35 ceph_fsid
-rw------- 1 ceph ceph   37 Sep 18 00:35 fsid
-rw------- 1 ceph ceph   56 Sep 18 00:35 keyring
-rw------- 1 ceph ceph  106 Sep 18 00:35 lockbox.keyring
-rw------- 1 ceph ceph    6 Sep 18 00:35 ready
-rw------- 1 ceph ceph   10 Sep 18 00:35 type
-rw------- 1 ceph ceph    3 Sep 18 00:35 whoami

Is this to be expected? What is going on here?

thanks

Roland
 
Proxmox 6.4

When I issue this command I get an error and no result:
Code:
# ceph-osd --get-journal-fsid --osd-journal=/dev/sde -i 23
2021-09-29 22:14:58.319 7f59ee497c80 -1 asok(0x55eb542d8000) AdminSocketConfigObs::init: failed: AdminSocket::bind_and_listen: failed to bind the UNIX domain socket to '/var/run/ceph/ceph-osd.23.asok': (17) File exists
00000000-0000-0000-0000-000000000000

I will try the ceph community for this, it's probably more relevant there...
 

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!