]> git.proxmox.com Git - pve-manager.git/commit - PVE/Ceph/Tools.pm
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)
commitb436dca874cf9d9ee31c3a9f7da7023c2da64c0e
tree19f361407eb765cf5a1a701d1fd668efb16e3410
parent0110314c616036b1d9d1fe9e5c7a9a94778a2feb
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