Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to implement one-click migration script in osd journal

Shulou Source: shulou.com Published: 2022-06-01 03:04:39 10月01日 Update

This article mainly introduces osd journal how to achieve one-click migration script, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

#! / bin/bash osd_id=$1 journal_dev=$2 if [$#-lt 2] then echo "example: osd_journal_migration.sh 0 / dev/sdb1" exit 0 fi service ceph-osd stop id=$osd_id ceph-osd-- flush-journal-I $osd_id sleep 2 mv / var/lib/ceph/osd/ceph-$osd_id/journal / var/lib/ceph/osd/ceph-$osd_id/journal_old ln-s $journal_dev / var/lib/ceph/osd/ceph-$osd_id/journal ceph-osd-- mkjournal-I $osd_id sleep 3 service ceph-osd restart id=$osd_id echo "* new journal path info:****" ls-la / var/lib/ceph/osd/ceph-$osd_id/journal ceph osd tree echo "* if fail run cmd:****" echo "service ceph-osd restart id=$osd_id" Thank you for reading this article carefully I hope the article "how to achieve one-click transfer script of osd journal" shared by the editor is helpful to everyone. At the same time, I also hope that you can support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Articles scripts one-click value interest at the same time more friends knowledge editing industry information information channels channels reference learning help support Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Shulou Information Linux OPPO Reno NVidia