Skip to content

Commit

Permalink
--wip-- [skipci]
Browse files Browse the repository at this point in the history
  • Loading branch information
brettinternet committed Oct 29, 2024
1 parent 8b45fe6 commit a174e5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
key: AWS_SECRET_ACCESS_KEY
bootstrap:
recovery:
source: &previousCluster postgres16-v6
source: &previousCluster main-postgres16-v1
externalClusters:
- name: *previousCluster
barmanObjectStore:
Expand Down
11 changes: 9 additions & 2 deletions scripts/wipe-disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,17 @@

# Run this in the rook ceph tools pod container on each node:

DISK="/dev/sda"; \
# One liner for the rook ceph tools pod container:
FDISK_BEFORE=$(fdisk -l); \
DISK="/dev/sda"; \
sgdisk --zap-all $DISK; \
dd if=/dev/zero of="$DISK" bs=1M count=100 oflag=direct,dsync; \
blkdiscard $DISK; \
partprobe $DISK
partprobe $DISK; \
# You may also need to remove LVM and device mapper data:
ls /dev/mapper/ceph-* | xargs -I% -- dmsetup remove %; \
rm -rf /dev/ceph-*; \
rm -rf /dev/mapper/ceph--*; \
diff <(echo "$FDISK_BEFORE") <(fdisk -l)

# Then, delete the operator pod to re-run the osd-prepare job pods

0 comments on commit a174e5a

Please sign in to comment.