If you have a cluster deployed on servers and want to add more hard drives to these servers or replace some of the existing drives and then reinstall the cluster, you must purge the drives previously allocated for the OSD (Object Storage Daemon) on the storage servers before installing components. Otherwise, the application is not guaranteed to work correctly.
To purge the disks allocated for OSD on a live storage server:
sudo
systemctl stop kata-osd-starter.service
.sudo
docker ps --filter name=osd -q | xargs docker stop
.sudo
ceph-volume --cluster ceph lvm list | grep devices
.sudo
ceph-volume lvm zap --destroy /dev/<disk name>
.You must run this command for each drive that you got at step 4. For example: sudo
ceph-volume lvm zap --destroy /dev/sda
.
The OSD daemon is removed from the disks.
If the server is not live, you must delete the information about volume groups from each disk allocated for the OSD.
To delete the information about volume groups from each disk allocated for the OSD on a non-live server:
sudo
pvs
command.This command outputs a table where PV
are physical volumes, VG
indicates logical group membership, Fmt
indicates the volume format, and Size
indicates the physical volume size.
sudo
vgremove <volume group ID>
.Information about volume groups on disks allocated for OSD is deleted.
Page top