]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-disk: Write 10M to all partitions before zapping
authorWido den Hollander <wido@42on.com>
Thu, 16 Feb 2017 21:53:51 +0000 (22:53 +0100)
committerLoic Dachary <ldachary@redhat.com>
Wed, 8 Mar 2017 11:20:49 +0000 (12:20 +0100)
commit877ddd970a1cc240bdcd3194b548e6fcebec814a
treeac1a673201db0a2391bcc902cea5650d56acce5a
parent82a0f3e0efaf43648b8fd5e0db102b6f8be003c4
ceph-disk: Write 10M to all partitions before zapping

By writing 10M of zeroes to each partition of the device we prevent that
old data causes troubles if exactly the same partition scheme is created
on the disk again and is read by the OSD.

This mainly involves the OSD's journal which will contain data from the
previous OSD and results in a assert of the OSD.

Fixes: http://tracker.ceph.com/issues/18962
Signed-off-by: Wido den Hollander <wido@42on.com>
src/ceph-disk/ceph_disk/main.py