From 899e8e547ef9bb8e5eae2b904ce7860a68cbdf14 Mon Sep 17 00:00:00 2001 From: Travis Nielsen Date: Thu, 11 Jun 2020 15:35:28 -0600 Subject: [PATCH] docs: clean ssds with blkdiscard blkdiscard is the better tool for cleaning SSDs instead of dd. Signed-off-by: Travis Nielsen --- Documentation/ceph-teardown.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/ceph-teardown.md b/Documentation/ceph-teardown.md index 7f03db438..9d9c7030c 100644 --- a/Documentation/ceph-teardown.md +++ b/Documentation/ceph-teardown.md @@ -76,7 +76,10 @@ DISK="/dev/sdb" # Zap the disk to a fresh, usable state (zap-all is important, b/c MBR has to be clean) # You will have to run this step for all disks. sgdisk --zap-all $DISK +# Clean hdds with dd dd if=/dev/zero of="$DISK" bs=1M count=100 oflag=direct,dsync +# Clean disks such as ssd with blkdiscard instead of dd +blkdiscard $DISK # These steps only have to be run once on each node # If rook sets up osds using ceph-volume, teardown leaves some devices mapped that lock the disks.