Project

General

Profile

Actions

Feature #3344

closed

ceph-disk-prepare?: provide some sort of tool to clear out a disk, with prejudice

Added by Anonymous over 11 years ago. Updated about 11 years ago.

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

0%

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

Description

"sgdisk --zap-all --clear" just doesn't clear out all the possible funky states a disk may be in.

A simple "dd if=/dev/zero of=/dev/sdX" is enough, but writes the whole disk.

Trying to limit the dd with count of blocks only overwrites the first copy of the GPT data, just making the tools use the copy that is near the end of the disk.

Figure out how to wipe out a disk reliably.

Actions

Also available in: Atom PDF