Clearing Ceph OSD partition

Fred Saunier

Well-Known Member
Aug 24, 2017
55
2
48
Brussels, BE
Hi everyone

I removed and destroyed all of my OSDs, in order to re-add them differently. Some OSDs got destroyed properly and are available to be added back into a new CEPH. Other disks are not available, due to a partition remaining on the drive :

Bash:
$ sudo lsblk /dev/sdb
NAME                                                                                 MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sdb                                                                                    8:16   0  7,3T  0 disk
└─ceph--8dbbdc67--44af--4410--8982--43bd4d103e3f-osd--block--3d571414--57b7--4b62--9210--3298f7e3ef69
                                                                                     253:6    0  7,3T  0 lvm

The partition is not showing in gdisk, so I was not able to remove it with this tool.
I also tried dd if=/dev/zero of=/dev/sdb bs=512 count=1 -- to no avail.

How can I clear the remaining data on the disk, so I can add the OSD back?

Thanks
 
Or even better:

gdisk /dev/sd*
* for drive letter /dev/sdf for example
'x' for extra commands
'z' for zap
 
Last edited:
  • Like
Reactions: mikos

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!