mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-09 21:30:39 +02:00
⚡️ rook disk wipe optimizations
This commit is contained in:
@@ -17,17 +17,19 @@ spec:
|
||||
nodeName: talos-node-2
|
||||
containers:
|
||||
- name: disk-wipe
|
||||
image: rook/ceph:v1.10.8
|
||||
image: rook/ceph:v1.13.2
|
||||
securityContext:
|
||||
privileged: true
|
||||
command:
|
||||
[
|
||||
"/bin/sh",
|
||||
"-c",
|
||||
"sgdisk --zap-all /dev/nvme0n1",
|
||||
"dd if=/dev/zero bs=1M count=10000 oflag=direct of=/dev/nvme0n1",
|
||||
"blkdiscard /dev/nvme0n1",
|
||||
"partprobe /dev/nvme0n1",
|
||||
"echo 'Starting disk operations on /dev/sda'; \
|
||||
echo 'Running sgdisk --zap-all /dev/sda'; time sgdisk --zap-all /dev/sda; \
|
||||
echo 'Running dd if=/dev/zero bs=1M count=10000 oflag=direct of=/dev/sda'; time dd if=/dev/zero bs=1M count=10000 oflag=direct of=/dev/sda; \
|
||||
echo 'Running blkdiscard /dev/sda'; time blkdiscard /dev/sda; \
|
||||
echo 'Running partprobe /dev/sda'; time partprobe /dev/sda; \
|
||||
echo 'Disk operations completed on /dev/sda'"
|
||||
]
|
||||
volumeMounts:
|
||||
- mountPath: /dev
|
||||
@@ -50,17 +52,19 @@ spec:
|
||||
nodeName: talos-node-3
|
||||
containers:
|
||||
- name: disk-wipe
|
||||
image: rook/ceph:v1.10.8
|
||||
image: rook/ceph:v1.13.2
|
||||
securityContext:
|
||||
privileged: true
|
||||
command:
|
||||
[
|
||||
"/bin/sh",
|
||||
"-c",
|
||||
"sgdisk --zap-all /dev/nvme0n1",
|
||||
"dd if=/dev/zero bs=1M count=10000 oflag=direct of=/dev/nvme0n1",
|
||||
"blkdiscard /dev/nvme0n1",
|
||||
"partprobe /dev/nvme0n1",
|
||||
"echo 'Starting disk operations on /dev/sda'; \
|
||||
echo 'Running sgdisk --zap-all /dev/sda'; time sgdisk --zap-all /dev/sda; \
|
||||
echo 'Running dd if=/dev/zero bs=1M count=10000 oflag=direct of=/dev/sda'; time dd if=/dev/zero bs=1M count=10000 oflag=direct of=/dev/sda; \
|
||||
echo 'Running blkdiscard /dev/sda'; time blkdiscard /dev/sda; \
|
||||
echo 'Running partprobe /dev/sda'; time partprobe /dev/sda; \
|
||||
echo 'Disk operations completed on /dev/sda'"
|
||||
]
|
||||
volumeMounts:
|
||||
- mountPath: /dev
|
||||
@@ -83,17 +87,19 @@ spec:
|
||||
nodeName: talos-node-4
|
||||
containers:
|
||||
- name: disk-wipe
|
||||
image: rook/ceph:v1.10.8
|
||||
image: rook/ceph:v1.13.2
|
||||
securityContext:
|
||||
privileged: true
|
||||
command:
|
||||
[
|
||||
"/bin/sh",
|
||||
"-c",
|
||||
"sgdisk --zap-all /dev/nvme0n1",
|
||||
"dd if=/dev/zero bs=1M count=10000 oflag=direct of=/dev/nvme0n1",
|
||||
"blkdiscard /dev/nvme0n1",
|
||||
"partprobe /dev/nvme0n1",
|
||||
"echo 'Starting disk operations on /dev/sda'; \
|
||||
echo 'Running sgdisk --zap-all /dev/sda'; time sgdisk --zap-all /dev/sda; \
|
||||
echo 'Running dd if=/dev/zero bs=1M count=10000 oflag=direct of=/dev/sda'; time dd if=/dev/zero bs=1M count=10000 oflag=direct of=/dev/sda; \
|
||||
echo 'Running blkdiscard /dev/sda'; time blkdiscard /dev/sda; \
|
||||
echo 'Running partprobe /dev/sda'; time partprobe /dev/sda; \
|
||||
echo 'Disk operations completed on /dev/sda'"
|
||||
]
|
||||
volumeMounts:
|
||||
- mountPath: /dev
|
||||
|
Reference in New Issue
Block a user