Skip to content

Instantly share code, notes, and snippets.

jaywax

Block or report user

Report or block jaywax

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@alram
alram / ceph_journal_migration.sh
Last active Jan 17, 2019
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.