IBM Cloud で R1soft Server Backup Manager 自身を OS Reload から復旧する
構成
このような構成で実施します。
Backup Manager をプロビジョニング初期状態に戻す OS Reload の機能を使って、元の構成に戻せるかを確認します。
この記事の手順は、下記リンクを参考にしました。
R1soft のバージョンは、6.6.1 build 36 です。
復旧準備
復旧に必要なファイルを 2nd disk にコピーしておく
今回は単純なコピーとしていますが、運用に組み込む場合は、以下のファイルをどこかに同期して保管しておく必要が出てきます。
追加ディスクやネットワークディスクに保管する場合、「rsync」を使って同期が可能です。
オブジェクトストレージに保管する場合、「rclone sync」を使って同期が可能です。
2nd Disk のマウント方法は下記リンクをご参照ください。
/backup にマウントしてある 2nd Disk に以下のフォルダをコピーしておきます。
- /usr/sbin/r1soft/log
- /usr/sbin/r1soft/conf
- /usr/sbin/r1soft/data
mkdir /backup/log_conf_data
cd /backup/log_conf_data
cp -r /usr/sbin/r1soft/log/ .
cp -r /usr/sbin/r1soft/conf/ .
cp -r /usr/sbin/r1soft/data/ .
パスワードを覚えておく
OS Reload 後には新規のパスワードが設定されますが、 復旧後の R1soft のパスワードは、今のものに復旧されますので、今のパスワードを覚えておきます
復旧実施
OS Reload を実施
緊急時の対応と想定して、いきなり実施してみます。
全く同一の構成であれば、費用は発生しません。
また、2nd Disk のデータは保存されたままになります。
手順はこちらです。
2nd Disk のマウント
マウント先のディレクトリは、Reload 前と同じにしておきます。
mkdir /backup
mount /dev/xvdc1 /backup
サービスの停止
ssh でログイン後に、以下のコマンドを実施します。
/etc/init.d/cdp-server stop
/etc/init.d/cdp-server status
「/usr/sbin/r1soft/log」「/usr/sbin/r1soft/conf」「/usr/sbin/r1soft/data」を削除
ssh でログイン後に、以下のコマンドを実施します。
cd /usr/sbin/r1soft
rm -rf /usr/sbin/r1soft/data /usr/sbin/r1soft/conf /usr/sbin/r1soft/log
「log」「config」「data」を 2nd disk からコピー
ssh でログイン後に、以下のコマンドを実施します。
cp -r /backup/log_conf_data/log /usr/sbin/r1soft/
cp -r /backup/log_conf_data/conf /usr/sbin/r1soft/
cp -r /backup/log_conf_data/data /usr/sbin/r1soft/
サービススタート
ssh でログイン後に、以下のコマンドを実施します。
/etc/init.d/cdp-server start
/etc/init.d/cdp-server status
確認
立ち上がりにしばらくかかります。
パスワードは OS Reload 前のものに戻りますので、覚えておいたものを入力します
すると、以下のように以前の情報がリストアされたことを確認できました。
【参考】復旧後の試験バックアップ実施
Logs
----------------------------------------
Message Time Level Source Message
4/3/18 9:57:00 AM Info Manager Attempting to connect to agent 10.178.217.110 at port 1167
4/3/18 9:57:00 AM Info Manager Connected to agent 10.178.217.110 at port 1167 successfully
4/3/18 9:57:01 AM Info Protected Machine Agent Version 6.6.1.35
4/3/18 9:57:01 AM Info Protected Machine Connection authenticated; Waiting for command.
4/3/18 9:57:01 AM Info Protected Machine Executing get device list request...
4/3/18 9:57:01 AM Info Protected Machine Discovering devices available for replication ...
4/3/18 9:57:01 AM Warn Manager Device (9796-932E) was found on agent but is disabled in the Disk Safe
4/3/18 9:57:02 AM Info Manager Performing partition table backup
4/3/18 9:57:02 AM Info Manager Performing backup of partition tables on disk '/dev/xvda'
4/3/18 9:57:02 AM Info Protected Machine Command completed; Waiting for next command.
4/3/18 9:57:02 AM Info Protected Machine Executing Partition Table Backup request...
4/3/18 9:57:03 AM Info Manager Performing backup of partition tables on disk '/dev/xvdb'
4/3/18 9:57:03 AM Info Protected Machine Command completed; Waiting for next command.
4/3/18 9:57:03 AM Info Protected Machine Executing Partition Table Backup request...
4/3/18 9:57:04 AM Info Manager Performing RAID and LVM configuration backup
4/3/18 9:57:04 AM Info Protected Machine Command completed; Waiting for next command.
4/3/18 9:57:04 AM Info Protected Machine Command completed; Waiting for next command.
4/3/18 9:57:04 AM Info Protected Machine Command completed; Waiting for next command.
4/3/18 9:57:04 AM Info Protected Machine Command completed; Waiting for next command.
4/3/18 9:57:04 AM Info Protected Machine Command completed; Waiting for next command.
4/3/18 9:57:04 AM Info Manager Performing backup of machine test at 10.178.217.110:1,167 to Disk Safe test at /backup/e346b7f4-d093-49fa-b6ad-58eed9eb33d8
4/3/18 9:57:04 AM Info Manager Requesting backup of /boot (f1c4ed45-98f5-4982-9a25-de08a52234dc)
4/3/18 9:57:04 AM Info Protected Machine Command completed; Waiting for next command.
4/3/18 9:57:04 AM Info Protected Machine Executing backup request...
4/3/18 9:57:04 AM Info Protected Machine Previous replication session key (a71ed9f8-57cd9a48-0ead3ded-ebfef149-bad0ab94-2685c4f1-c95d3809-bf7d6a8e-3d72dfc2-9ec0e70f-fa4e742e-6b73f59b-d5780abf-545627e5)
4/3/18 9:57:04 AM Info Protected Machine Found previous replication session.
4/3/18 9:57:04 AM Info Protected Machine New replication session key (ab89b799-d5333002-51868d93-8c1ec5c8-c6ab7136-4b3171dc-c4bfa226-21aa9ded-a6faf238-ab160bfb-0cf32aef-8b13d265-f1e7c7cf-03fc4ff1)
4/3/18 9:57:04 AM Info Protected Machine Replicating device /dev/xvda1 [/boot] with content id (f1c4ed45-98f5-4982-9a25-de08a52234dc)
4/3/18 9:57:04 AM Info Manager Taking snapshot
4/3/18 9:57:04 AM Info Protected Machine No configured MySQL database instances.
4/3/18 9:57:04 AM Info Protected Machine Creating new single device snapshot session.
4/3/18 9:57:04 AM Info Protected Machine Using driver version: 4.6.0-112
4/3/18 9:57:06 AM Info Manager Finished snapshot
4/3/18 9:57:06 AM Info Manager Excluding files/folders
4/3/18 9:57:06 AM Info Manager Finished excluding files/folders
4/3/18 9:57:06 AM Info Protected Machine Using incremental replication for this session.
4/3/18 9:57:07 AM Info Manager Replicating /boot using Backup Manager
4/3/18 9:57:07 AM Info Manager DEDUP: Total Blocks Inserted: 42 (9,824 bytes) Unique Blocks: 42 (9,824 bytes) Duplicate blocks: 0 (0 bytes)
4/3/18 9:57:07 AM Info Protected Machine Skipping sending components.
4/3/18 9:57:07 AM Info Protected Machine Stopping snapshot for device '/dev/xvda1' with id 1 try 0
4/3/18 9:57:07 AM Info Protected Machine Snapshot for device '/dev/xvda1' with id 1 stopped!
4/3/18 9:57:08 AM Info Manager Requesting backup of / (685c0159-c0b0-4c2b-b45b-550a962e4062)
4/3/18 9:57:08 AM Info Protected Machine Command completed; Waiting for next command.
4/3/18 9:57:08 AM Info Protected Machine Executing backup request...
4/3/18 9:57:08 AM Info Protected Machine Previous replication session key (a78bdb6d-2ebf2e46-5e65b0ba-d40be7d8-1cca4c69-a2a64335-4b2c0b54-48f519a1-c805d9b5-1079dd87-06777467-e2515191-f35f76a8-693bd977)
4/3/18 9:57:08 AM Info Protected Machine Found previous replication session.
4/3/18 9:57:08 AM Info Protected Machine New replication session key (abf6b80f-ac26c3ff-a13eff60-752aba57-28a5130b-c752f120-468e7570-a9224b00-318dec2b-1dce0173-181d2a28-01f02e5b-0fce33b7-19e20283)
4/3/18 9:57:08 AM Info Protected Machine Replicating device /dev/xvda2 [/] with content id (685c0159-c0b0-4c2b-b45b-550a962e4062)
4/3/18 9:57:08 AM Info Manager Taking snapshot
4/3/18 9:57:08 AM Info Protected Machine No configured MySQL database instances.
4/3/18 9:57:08 AM Info Protected Machine Creating new single device snapshot session.
4/3/18 9:57:09 AM Info Protected Machine Using driver version: 4.6.0-112
4/3/18 9:57:10 AM Info Manager Finished snapshot
4/3/18 9:57:10 AM Info Manager Excluding files/folders
4/3/18 9:57:10 AM Info Manager Finished excluding files/folders
4/3/18 9:57:12 AM Info Protected Machine Using incremental replication for this session.
4/3/18 9:57:12 AM Info Manager Replicating / using Backup Manager
4/3/18 9:57:13 AM Info Manager DEDUP: Total Blocks Inserted: 233 (133,975 bytes) Unique Blocks: 233 (133,975 bytes) Duplicate blocks: 0 (0 bytes)
4/3/18 9:57:13 AM Info Protected Machine Skipping sending components.
4/3/18 9:57:13 AM Info Protected Machine Stopping snapshot for device '/dev/xvda2' with id 1 try 0
4/3/18 9:57:13 AM Info Protected Machine Snapshot for device '/dev/xvda2' with id 1 stopped!
4/3/18 9:57:14 AM Info Manager Backup Manager synchronization completed
4/3/18 9:57:15 AM Info Manager Task Finished
さいごに
Logs
----------------------------------------
Message Time Level Source Message
4/3/18 9:57:00 AM Info Manager Attempting to connect to agent 10.178.217.110 at port 1167
4/3/18 9:57:00 AM Info Manager Connected to agent 10.178.217.110 at port 1167 successfully
4/3/18 9:57:01 AM Info Protected Machine Agent Version 6.6.1.35
4/3/18 9:57:01 AM Info Protected Machine Connection authenticated; Waiting for command.
4/3/18 9:57:01 AM Info Protected Machine Executing get device list request...
4/3/18 9:57:01 AM Info Protected Machine Discovering devices available for replication ...
4/3/18 9:57:01 AM Warn Manager Device (9796-932E) was found on agent but is disabled in the Disk Safe
4/3/18 9:57:02 AM Info Manager Performing partition table backup
4/3/18 9:57:02 AM Info Manager Performing backup of partition tables on disk '/dev/xvda'
4/3/18 9:57:02 AM Info Protected Machine Command completed; Waiting for next command.
4/3/18 9:57:02 AM Info Protected Machine Executing Partition Table Backup request...
4/3/18 9:57:03 AM Info Manager Performing backup of partition tables on disk '/dev/xvdb'
4/3/18 9:57:03 AM Info Protected Machine Command completed; Waiting for next command.
4/3/18 9:57:03 AM Info Protected Machine Executing Partition Table Backup request...
4/3/18 9:57:04 AM Info Manager Performing RAID and LVM configuration backup
4/3/18 9:57:04 AM Info Protected Machine Command completed; Waiting for next command.
4/3/18 9:57:04 AM Info Protected Machine Command completed; Waiting for next command.
4/3/18 9:57:04 AM Info Protected Machine Command completed; Waiting for next command.
4/3/18 9:57:04 AM Info Protected Machine Command completed; Waiting for next command.
4/3/18 9:57:04 AM Info Protected Machine Command completed; Waiting for next command.
4/3/18 9:57:04 AM Info Manager Performing backup of machine test at 10.178.217.110:1,167 to Disk Safe test at /backup/e346b7f4-d093-49fa-b6ad-58eed9eb33d8
4/3/18 9:57:04 AM Info Manager Requesting backup of /boot (f1c4ed45-98f5-4982-9a25-de08a52234dc)
4/3/18 9:57:04 AM Info Protected Machine Command completed; Waiting for next command.
4/3/18 9:57:04 AM Info Protected Machine Executing backup request...
4/3/18 9:57:04 AM Info Protected Machine Previous replication session key (a71ed9f8-57cd9a48-0ead3ded-ebfef149-bad0ab94-2685c4f1-c95d3809-bf7d6a8e-3d72dfc2-9ec0e70f-fa4e742e-6b73f59b-d5780abf-545627e5)
4/3/18 9:57:04 AM Info Protected Machine Found previous replication session.
4/3/18 9:57:04 AM Info Protected Machine New replication session key (ab89b799-d5333002-51868d93-8c1ec5c8-c6ab7136-4b3171dc-c4bfa226-21aa9ded-a6faf238-ab160bfb-0cf32aef-8b13d265-f1e7c7cf-03fc4ff1)
4/3/18 9:57:04 AM Info Protected Machine Replicating device /dev/xvda1 [/boot] with content id (f1c4ed45-98f5-4982-9a25-de08a52234dc)
4/3/18 9:57:04 AM Info Manager Taking snapshot
4/3/18 9:57:04 AM Info Protected Machine No configured MySQL database instances.
4/3/18 9:57:04 AM Info Protected Machine Creating new single device snapshot session.
4/3/18 9:57:04 AM Info Protected Machine Using driver version: 4.6.0-112
4/3/18 9:57:06 AM Info Manager Finished snapshot
4/3/18 9:57:06 AM Info Manager Excluding files/folders
4/3/18 9:57:06 AM Info Manager Finished excluding files/folders
4/3/18 9:57:06 AM Info Protected Machine Using incremental replication for this session.
4/3/18 9:57:07 AM Info Manager Replicating /boot using Backup Manager
4/3/18 9:57:07 AM Info Manager DEDUP: Total Blocks Inserted: 42 (9,824 bytes) Unique Blocks: 42 (9,824 bytes) Duplicate blocks: 0 (0 bytes)
4/3/18 9:57:07 AM Info Protected Machine Skipping sending components.
4/3/18 9:57:07 AM Info Protected Machine Stopping snapshot for device '/dev/xvda1' with id 1 try 0
4/3/18 9:57:07 AM Info Protected Machine Snapshot for device '/dev/xvda1' with id 1 stopped!
4/3/18 9:57:08 AM Info Manager Requesting backup of / (685c0159-c0b0-4c2b-b45b-550a962e4062)
4/3/18 9:57:08 AM Info Protected Machine Command completed; Waiting for next command.
4/3/18 9:57:08 AM Info Protected Machine Executing backup request...
4/3/18 9:57:08 AM Info Protected Machine Previous replication session key (a78bdb6d-2ebf2e46-5e65b0ba-d40be7d8-1cca4c69-a2a64335-4b2c0b54-48f519a1-c805d9b5-1079dd87-06777467-e2515191-f35f76a8-693bd977)
4/3/18 9:57:08 AM Info Protected Machine Found previous replication session.
4/3/18 9:57:08 AM Info Protected Machine New replication session key (abf6b80f-ac26c3ff-a13eff60-752aba57-28a5130b-c752f120-468e7570-a9224b00-318dec2b-1dce0173-181d2a28-01f02e5b-0fce33b7-19e20283)
4/3/18 9:57:08 AM Info Protected Machine Replicating device /dev/xvda2 [/] with content id (685c0159-c0b0-4c2b-b45b-550a962e4062)
4/3/18 9:57:08 AM Info Manager Taking snapshot
4/3/18 9:57:08 AM Info Protected Machine No configured MySQL database instances.
4/3/18 9:57:08 AM Info Protected Machine Creating new single device snapshot session.
4/3/18 9:57:09 AM Info Protected Machine Using driver version: 4.6.0-112
4/3/18 9:57:10 AM Info Manager Finished snapshot
4/3/18 9:57:10 AM Info Manager Excluding files/folders
4/3/18 9:57:10 AM Info Manager Finished excluding files/folders
4/3/18 9:57:12 AM Info Protected Machine Using incremental replication for this session.
4/3/18 9:57:12 AM Info Manager Replicating / using Backup Manager
4/3/18 9:57:13 AM Info Manager DEDUP: Total Blocks Inserted: 233 (133,975 bytes) Unique Blocks: 233 (133,975 bytes) Duplicate blocks: 0 (0 bytes)
4/3/18 9:57:13 AM Info Protected Machine Skipping sending components.
4/3/18 9:57:13 AM Info Protected Machine Stopping snapshot for device '/dev/xvda2' with id 1 try 0
4/3/18 9:57:13 AM Info Protected Machine Snapshot for device '/dev/xvda2' with id 1 stopped!
4/3/18 9:57:14 AM Info Manager Backup Manager synchronization completed
4/3/18 9:57:15 AM Info Manager Task Finished
R1soft については、Image Template から戻すということがサポートされない ため、既存のインスタンスを活用して復旧したい場合は、このような手順を参考にして実施していただけるとよいかと思います。
Author And Source
この問題について(IBM Cloud で R1soft Server Backup Manager 自身を OS Reload から復旧する), 我々は、より多くの情報をここで見つけました https://qiita.com/khayama/items/95e9830dce2a0f083203著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .