summaryrefslogtreecommitdiffstats
path: root/cleanup_storage.sh
blob: 67aa63b59e8de5dd0b5d495aa33a34cfdf7fee05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash

modprobe raid456; modprobe raid1; modprobe raid0

mdadm -S /dev/md/myRAID

parted /dev/vdb rm 1
parted /dev/vdb mklabel msdos -s

parted /dev/vdc rm 1
parted /dev/vdc mklabel msdos -s

parted /dev/vdd rm 1
parted /dev/vdd mklabel msdos -s

dd if=/dev/zero of=/dev/vdb
dd if=/dev/zero of=/dev/vdc
dd if=/dev/zero of=/dev/vdd

systemctl restart tog-pegasus.service