a8790f2303
This patch adds an action to replace a hard drive for an particular osd server. The user executing the action will give the OSD number and also the device name of the replacement drive. The rest is taken care of by the action. The action will attempt to go through all the osd removal steps for the failed drive. It will force unmount the drive and if that fails it will lazy unmount the drive. This force and then lazy pattern comes from experience with dead hard drives not behaving nicely with umount. Change-Id: I914cd484280ac3f9b9f1fad8b35ee53e92438a0a
13 lines
419 B
YAML
13 lines
419 B
YAML
replace-osd:
|
|
description: Replace a failed osd with a fresh disk
|
|
params:
|
|
osd-number:
|
|
type: integer
|
|
description: The osd number to operate on. Example 99. Hint you can get this information from `ceph osd tree`.
|
|
replacement-device:
|
|
type: string
|
|
description: The replacement device to use. Example /dev/sdb.
|
|
required: [osd-number, replacement-device]
|
|
additionalProperties: false
|
|
|