The cephos-disk-remove script removes a block device (OSD) from a Ceph cluster. It safely removes the OSD and purges all data from the device.
-d <block_device>: Specify the block device to remove (e.g.,/dev/sdb)-h: Show this help message-v: Enable verbose output
# Remove /dev/sdb from the cluster
cephos-disk-remove -d /dev/sdb- Do not delete several disks in parallel
- Try not to delete disks while the cluster is actively working.
- Validates that a block device is specified
- Checks if the block device exists and is valid
- Verifies that the block device is in use by Ceph
- Prompts for confirmation before proceeding
- Marks the OSD as out in the cluster
- Stops the OSD service
- Removes the OSD from the cluster
- Zaps the device to remove all Ceph data
- Purges the device
- Gets the OSD ID associated with the block device
- Marks the OSD as out in the cluster
- Stops the OSD service
- Removes the OSD from the CRUSH map
- Deletes OSD authentication keys
- Removes the OSD from the cluster
- Zaps the device to remove all Ceph data
- Purges the device