Hi,
After being forced to reinstall the O/S on all my Ceph nodes, I'm trying to
reactivate the OSDs, whose data lie on separate drives. The OSDs are
recognised:
mixtile@blade3n3:~$ sudo sudo ceph-volume lvm list
[sudo] password for mixtile:
====== osd.1 =======
[block]
/dev/ceph-5b8338a0-9246-48f5-9cfd-e1bbfa1cc199/osd-block-ccba3dd
2-0503-440f-b7c2-47e8d8e85253
block device
/dev/ceph-5b8338a0-9246-48f5-9cfd-e1bbfa1cc199/o
sd-block-ccba3dd2-0503-440f-b7c2-47e8d8e85253
block uuid 21ftde-FdBB-s4DM-Qeq7-TU4R-vjY7-6VXLoW
cephx lockbox secret
cluster fsid 8aad3073-39a1-11f1-bf6e-f2704a1efa9b
cluster name ceph
crush device class
encrypted 0
osd fsid ccba3dd2-0503-440f-b7c2-47e8d8e85253
osd id 1
osdspec affinity all-available-devices
type block
vdo 0
with tpm 0
devices /dev/nvme0n1
*But: *When trying to link the OSD to the all-new Ceph installation (I've
made several Google searches with contradictory results. This is the last
one.), I get an error:
mixtile@blade3n3:~$ sudo cephadm shell
Inferring fsid 98e04296-5b5a-11f1-84cf-ceccf52b4a0f
Inferring config
/var/lib/ceph/98e04296-5b5a-11f1-84cf-ceccf52b4a0f/mon.blade3n3
/config
Not using image
'sha256:af0c5903e901e329adabe219dfc8d0c3efc1f05102a753902f33ee16
c26b6cee' as it's not in list of non-dangling images with ceph=True label
Unable to find image 'quay.io/ceph/ceph:v19' locally
v19: Pulling from ceph/ceph
Digest:
sha256:af0c5903e901e329adabe219dfc8d0c3efc1f05102a753902f33ee16c26b6cee
Status: Downloaded newer image for quay.io/ceph/ceph:v19
root@blade3n3:/usr/bin# cd
root@blade3n3:~# ceph-volume lvm activate --all
Running command: /usr/bin/ceph-authtool --gen-print-key
Running command: /usr/bin/ceph-authtool --gen-print-key
--> Activating OSD ID 1 FSID ccba3dd2-0503-440f-b7c2-47e8d8e85253
Running command: /usr/bin/mount -t tmpfs tmpfs /var/lib/ceph/osd/ceph-1
Running command: /usr/bin/chown -R ceph:ceph /var/lib/ceph/osd/ceph-1
Running command: /usr/bin/ceph-bluestore-tool --cluster=ceph prime-osd-dir
--dev
/dev/ceph-5b8338a0-9246-48f5-9cfd-e1bbfa1cc199/osd-block-ccba3dd2-0503-440f-b7c2-47e8d8e85253
--path /var/lib/ceph/osd/ceph-1 --no-mon-config
stderr: 2026-05-29T17:28:36.854+0000 ffffbd2de040 -1 bdev(0xaaab21623800
/dev/c
eph-5b8338a0-9246-48f5-9cfd-e1bbfa1cc199/osd-block-ccba3dd2-0503-440f-b7c2-47e8d
8e85253) open stat got: (1) Operation not permitted
stderr: failed to read label for
/dev/ceph-5b8338a0-9246-48f5-9cfd-1bbfa1cc199
/osd-block-ccba3dd2-0503-440f-b7c2-47e8d8e85253: (1) Operation not
permitted
--> RuntimeError: command returned non-zero exit status: 1
This puzzles me because I'm already root, but the Bluestore tool won't let
me reactivate the OSD? The old OSD is now full of valuable production data.
And: Isn't it possible to use ceph orch to perform this operation?
Regards
Jacek Rużyczka
_______________________________________________
ceph-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]