Project

General

Profile

Actions

Bug #63870

open

CephAdm unable to add OSD without using raw method

Added by James Coleman 4 months ago. Updated 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I have tried adding volumes on one of my machines and I get the following error:

root@tama ~
# ceph-volume lvm zap --destroy /dev/sdb                                      
--> Zapping: /dev/sdb
Running command: /usr/bin/dd if=/dev/zero of=/dev/sdb bs=1M count=10 conv=fsync
 stderr: 10+0 records in
10+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 0.0837573 s, 125 MB/s
--> Zapping successful for: <Raw Device: /dev/sdb>

root@tama ~
# ceph orch daemon add osd tama:/dev/sdb                                 
Created no osd(s) on host tama; already created?

See output from ceph-volume-add-osd.log

Running ceph-bluestore-tool manually:

root@tama ~ 6s
# ceph-bluestore-tool --log-level 30 --log-file bluestore.log show-label --dev /dev/sdb
unable to read label for /dev/sdb: (2) No such file or directory

root@tama ~
# cat bluestore.log                                                                    
2023-12-19T12:54:14.998-0600 7fbd50eae740 10 bluestore(/dev/sdb) _read_bdev_label
2023-12-19T12:54:14.999-0600 7fbd50eae740  2 bluestore(/dev/sdb) _read_bdev_label unable to decode label at offset 102: void bluestore_bdev_label_t::decode(ceph::buffer::v15_2_0::list::const_iterator&) decode past end of struct encoding: Malformed input [buffer:3]

Using method raw works:

root@tama ~
# ceph orch daemon add osd --method raw tama:/dev/sdb                                  
Created osd(s) 3 on host 'tama'

See output from ceph-volume-osd-raw-add.log

Version:

# ceph --version                                                
ceph version 17.2.7 (b12291d110049b2f35e32e0de30d70e9a4c060d2) quincy (stable)

# cat /etc/redhat-release             
Fedora release 38 (Thirty Eight)


Files

ceph-volume-add-osd.log (29.7 KB) ceph-volume-add-osd.log first log James Coleman, 12/20/2023 04:10 PM
ceph-volume-osd-raw-add.log (67 KB) ceph-volume-osd-raw-add.log second log James Coleman, 12/20/2023 04:10 PM
Actions #1

Updated by Ilya Dryomov 4 months ago

  • Target version deleted (v17.2.7)
Actions

Also available in: Atom PDF