docs: clean ssds with blkdiscard
blkdiscard is the better tool for cleaning SSDs instead of dd. Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
This commit is contained in:
1 file changed
+3
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user