Ceph unable to add another OSD

RaV001

Active Member
Apr 7, 2017
11
0
41
34
I am trying to add a new disk plus journal to my ceph.

In the Proxmox GUI I get this error:

command 'ceph-disk prepare --zap-disk --fs-type xfs --cluster ceph --cluster-uuid 99e013e5-955b-44c8-a541-0e45233114b1 --journal-dev /dev/sdb /dev/sdd' failed: exit code 1
 
Hi,

are the disks gpt formatted?
 
yes the disk is gpt formatted. I have changed the disk to a new one and the same issue occurs. It looks like that the commands in the background are also formatting the disk with gpt
 
ceph-disk prepare --zap-disk --fs-type xfs --cluster ceph --cluster-uuid 99e013e5-955b-44c8-a541-0e45233114b1 --journal-dev /dev/sdb /dev/sdd

And what error you get if you run this command manually?
 
This is the output:

root@host03:~# ceph-disk prepare --zap-disk --fs-type xfs --cluster ceph --cluster-uuid 99e013e5-955b-44c8-a541-0e45233114b1 --journal-dev /dev/sdb /dev/sdd
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Creating new GPT entries.
The operation has completed successfully.
prepare_device: OSD will not be hot-swappable if journal is not the same device as the osd data
Setting name!
partNum is 2
REALLY setting name!
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.
Setting name!
partNum is 0
REALLY setting name!
The operation has completed successfully.
meta-data=/dev/sdb1 isize=2048 agcount=4, agsize=183141597 blks
= sectsz=4096 attr=2, projid32bit=1
= crc=0 finobt=0
data = bsize=4096 blocks=732566385, imaxpct=5
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=0
log =Internes Protokoll bsize=4096 blocks=357698, version=2
= sectsz=4096 sunit=1 blks, lazy-count=1
realtime =keine extsz=4096 blocks=0, rtextents=0
mkfs.xfs: libxfs_device_zero schreiben fehlgeschlagen: Eingabe-/Ausgabefehler
ceph-disk: Error: Command '['/sbin/mkfs', '-t', 'xfs', '-f', '-i', 'size=2048', '--', '/dev/sdb1']' returned non-zero exit status 1
 
I would say you have a faulty disk.
mkfs.xfs: libxfs_device_zero schreiben fehlgeschlagen: Eingabe-/Ausgabefehler

I would check the disk or the controller.
 

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!