Project

General

Profile

Actions

Feature #7454

closed

ceph-disk: support osd removal / ceph-disk remove

Added by Loïc Dachary about 10 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
ceph-disk
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

There should be a ceph-disk remove to cleanup an OSD and the associated device / directory. This is not something a system administrator would want to do on a production system because Ceph supports removing the device associated the OSD without the need to notify the cluster and it probably explains why it has not been implemented.
However, in the context of integration testing or debuging puppet, chef, etc. being able to reliably reset a device without nuking the machine is helpful.
Without explicit support from ceph-disk, it is possible but fragile because the logic to determine if a device contains a particular OSD file system is coded in ceph-disk and not easily accessible.

Actions #1

Updated by Loïc Dachary over 9 years ago

Associated ceph-deploy command http://tracker.ceph.com/issues/3480

Actions #2

Updated by Travis Rhoden over 9 years ago

  • Status changed from New to In Progress
  • Assignee set to Travis Rhoden

Current plan is to add two new sub-commands: "deactivate" and "destroy".

Deactivate is intended to mirror activate, so that they can be run in succession with each other and maintain a working OSD.

Destroy will undefine the disk from the cluster, and optionally zap the disk.

Reference: http://thread.gmane.org/gmane.comp.file-systems.ceph.devel/22480

Actions #3

Updated by Wei-Chung Cheng over 9 years ago

I just want to mention one thing about the zap subcommand.

Sometimes I will hit some problem with zap subcommand and need to try again
(It means use zap sub command twice for cleanup.)

Should we make this problem clearer?
(I will record the error log next time I hit this problem.)

Actions #4

Updated by Loïc Dachary about 9 years ago

  • Status changed from In Progress to 12
  • Assignee deleted (Travis Rhoden)

Travis, removing this from your list in the hope someone will be motivated to take over ;-) No urgency at this point but still a nice to have feature.

Actions #5

Updated by Loïc Dachary about 9 years ago

  • Subject changed from ceph-disk: support osd removal to ceph-disk: support osd removal / ceph-disk remove
Actions #6

Updated by Loïc Dachary over 8 years ago

  • Status changed from 12 to In Progress
Actions #7

Updated by Loïc Dachary over 8 years ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF