Skip to content

Instantly share code, notes, and snippets.

@alram
alram / ceph_journal_migration.sh
Last active Jun 16, 2020
Ceph journal migration
View ceph_journal_migration.sh
#!/bin/bash
journal_device="/dev/sda"
osds=(0 1 2 3 4)
num_journal_part=${#osds[@]}
i=1
while [ $i -le $num_journal_part ]
do
disk_id=`uuidgen`
sgdisk --new=${i}:0:+5120M --change-name="${i}:ceph journal" --partition-guid=${i}:${disk_id} --typecode=${i}:45b0969e-9b03-4f30-b4c6-b4b80ceff106 --mbrtogpt ${journal_device}
You can’t perform that action at this time.