]> git.proxmox.com Git - pve-manager-legacy.git/commit
Fix #2051: preserve DB/WAL disk on destroy
authorAlwin Antreich <a.antreich@proxmox.com>
Thu, 7 Feb 2019 15:29:41 +0000 (16:29 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 8 Feb 2019 13:20:23 +0000 (14:20 +0100)
commit6726d4f875b82d20f90a9b9bda67014645616c7f
treec596c00ae6505884f38516e438156ef768648696
parent49233a2a3a50d1a0b6bcfc550d76adc8571b49d8
Fix #2051: preserve DB/WAL disk on destroy

When destroying an OSD over API or CLI, e.g. by executing:

'pveceph osd destroy <num> --cleanup'

all disks associated with the OSD got wiped with dd, which included
any shared and by others still in use ones, e.g., separate disks with
DB/WAL.

The patch changes 'wipe_disks' to wipe the partition instead of the
whole disk.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Ceph/OSD.pm
PVE/Ceph/Tools.pm