PowerVC 2.0.2.1 構成情報バックアップ、リストア

##### はじめに

PowerVC 2.0.2 の構成情報バックアップ、リストアの参考ログです。

---
##### 環境

PowerVC 2.0.2.1 (RHEL8.4,ppc64le )

----

##### 参考

https://www.ibm.com/docs/ja/powervc/2.0.2?topic=backing-up-power-virtualization-center-data

https://www.ibm.com/docs/ja/powervc/2.0.2?topic=data-recovering-power-virtualization-center

---

##### 構成情報バックアップの取得


```
# time powervc-opsmgr backup -c powervc2021 -p /home/work/configbackup		
		
PLAY [Take PowerVC Backup] *****************************************************		
		
TASK [Gathering Facts] *********************************************************		
ok: [x.xxx.xx.xxx]		
		
TASK [command] *****************************************************************		
changed: [x.xxx.xx.xxx]		
		
~ 省略 ~		
		
TASK [pvc_main : include_tasks] ************************************************		
included: /opt/ibm/powervc-opsmgr/ansible/core/roles/pvc_main/tasks/end_play.yml for x.xxx.xx.xxx		
		
TASK [pvc_main : include_vars] *************************************************		
skipping: [x.xxx.xx.xxx]		
		
TASK [pvc_main : set_fact] *****************************************************		
ok: [x.xxx.xx.xxx]		
x.xxx.xx.xxx		
TASK [pvc_main : debug] ********************************************************		
ok: [x.xxx.xx.xxx] => {		
    "msg": [		
        "Play results ---------->",		
        "Number of nodes        : 1",		
        "List of nodes          : ['x.xxx.xx.xxx']",		
        "Number of failed nodes : 0",		
        "List of failed nodes   : []"		
    ]		
}		
		
~ 省略 ~		
		
		
PLAY RECAP *********************************************************************		
x.xxx.xx.xxx              : ok=51   changed=17   unreachable=0    failed=0    skipped=16   rescued=0    ignored=0		
		
		
IBM PowerVC backup successfully completed at 2022-02-08 20:11:40. Backup path: /home/work/configbackup/powervc_backup.tar.gz		
 Refer to /opt/ibm/powervc/log/backup/powervc-opsmgr_powervc2021_backup_20220208_200832/stdout for more details.		
		
real		3m8.202s
user		0m46.755s
sys		    0m8.271s
```

あまり設定していない、情報量の少ない状態だったためか、実行は3分強と早く終わりました。


----

##### 構成情報リストアの実行

```
# time powervc-opsmgr restore  -c powervc2021 -b /home/work/configbackup/powervc_backup.tar.gz	
Using archive /home/work/configbackup/powervc_backup.tar.gz for the restore.	
	
PLAY [PowerVC Restore Operation] ***********************************************	
	
TASK [Gathering Facts] *********************************************************	
Wednesday 09 February 2022  17:22:16 -0500 (0:00:00.109)       0:00:00.109 ****	
ok: [x.xxx.xx.xxx]	
	
TASK [command] *****************************************************************	
Wednesday 09 February 2022  17:22:20 -0500 (0:00:03.519)       0:00:03.628 ****	
changed: [x.xxx.xx.xxx]	
	
TASK [Store Locale variable] ***************************************************	
Wednesday 09 February 2022  17:22:21 -0500 (0:00:01.255)       0:00:04.883 ****	
ok: [x.xxx.xx.xxx]	
	
	
~ 省略 ~ 	
	
TASK [pvc_restore : Create a temporary directory] ******************************	
Wednesday 09 February 2022  17:22:34 -0500 (0:00:08.732)       0:00:17.915 ****	
ok: [x.xxx.xx.xxx]	
	
TASK [pvc_restore : Give right permission to backup tar archive] ***************	
Wednesday 09 February 2022  17:22:35 -0500 (0:00:00.384)       0:00:18.300 ****	
changed: [x.xxx.xx.xxx]	
	
TASK [pvc_restore : Untar the backup] ******************************************	
Wednesday 09 February 2022  17:22:35 -0500 (0:00:00.354)       0:00:18.654 ****	
changed: [x.xxx.xx.xxx]	
	
TASK [pvc_restore : Check for service directories] *****************************	
Wednesday 09 February 2022  17:22:37 -0500 (0:00:01.626)       0:00:20.281 ****	
ok: [x.xxx.xx.xxx] => (item=panko)	
ok: [x.xxx.xx.xxx] => (item=gnocchi)	
ok: [x.xxx.xx.xxx] => (item=neutron)	
ok: [x.xxx.xx.xxx] => (item=nova)	
ok: [x.xxx.xx.xxx] => (item=cinder)	
ok: [x.xxx.xx.xxx] => (item=ceilometer)	
ok: [x.xxx.xx.xxx] => (item=glance)	
ok: [x.xxx.xx.xxx] => (item=keystone)	
	
~ 省略 ~ 	
	
	
TASK [pvc_main : set_fact] *****************************************************	
Wednesday 09 February 2022  17:41:40 -0500 (0:00:00.047)       0:19:23.745 ****	
ok: [x.xxx.xx.xxx]	
	
TASK [pvc_main : debug] ********************************************************	
Wednesday 09 February 2022  17:41:40 -0500 (0:00:00.052)       0:19:23.798 ****	
ok: [x.xxx.xx.xxx] => {	
    "msg": [	
        "Play results ---------->",	
        "Number of nodes        : 1",	
        "List of nodes          : ['x.xxx.xx.xxx']",	
        "Number of failed nodes : 0",	
        "List of failed nodes   : []"	
    ]	
}	
	
TASK [pvc_main : synchronize state file] ***************************************	
Wednesday 09 February 2022  17:41:40 -0500 (0:00:00.081)       0:19:23.879 ****	
ok: [x.xxx.xx.xxx -> x.xxx.xx.xxx] => (item=x.xxx.xx.xxx)	
	
TASK [pvc_main : synchronize inventory] ****************************************	
Wednesday 09 February 2022  17:41:41 -0500 (0:00:00.806)       0:19:24.686 ****	
ok: [x.xxx.xx.xxx -> x.xxx.xx.xxx] => (item=x.xxx.xx.xxx)	
	
TASK [pvc_main : Success message for play] *************************************	
Wednesday 09 February 2022  17:41:45 -0500 (0:00:04.114)       0:19:28.801 ****	
ok: [x.xxx.xx.xxx] => {	
    "msg": "Play completed successfully"	
}	
	
TASK [pvc_main : failure message for play] *************************************	
Wednesday 09 February 2022  17:41:45 -0500 (0:00:00.058)       0:19:28.859 ****	
skipping: [x.xxx.xx.xxx]	
	
PLAY RECAP *********************************************************************	
x.xxx.xx.xxx              : ok=356  changed=118  unreachable=0    failed=0    skipped=42   rescued=0    ignored=1	
	
Wednesday 09 February 2022  17:41:45 -0500 (0:00:00.049)       0:19:28.909 ****	
===============================================================================	
pvc_restore : Stop non core services ---------------------------------- 126.05s	
pvc_restore : Upgrade component --------------------------------------- 109.21s	
pvc_restore : restart_powervc_services --------------------------------- 92.30s	
pvc_restore : restart keystone ----------------------------------------- 91.12s	
pvc_restore : Restore componenet --------------------------------------- 77.45s	
pvc_restore : Management System change --------------------------------- 75.94s	
pvc_restore : Prepare component Restoration ---------------------------- 71.12s	
pvc_restore : restart_cinder_service ----------------------------------- 51.97s	
{{ pvc_pacemaker_task_names.action_on_pacemaker_resources }} ----------- 39.71s	
pvc_restore : Backup the restore system conf files --------------------- 25.34s	
pvc_restore : Restore the backup databases ----------------------------- 22.57s	
pvc_restore : Run db sync commands for component ----------------------- 13.47s	
pvc_restore : Clean databases ------------------------------------------ 13.34s	
pvc_restore : Copy backup openstack conf files to standard paths of restore system -- 12.02s	
pvc_restore : Directory structure creation for backup restore system --- 11.94s	
pvc_restore : openstack_pvc_internal_user_admin_role_assignment_against_domain_default -- 11.18s	
pvc_restore : openstack_pvc_internal_user_service_role_assignment_against_service -- 10.52s	
pvc_restore : openstack_pvc_internal_user_admin_role_assignment_against_ibmdefault -- 10.31s	
pvc_restore : Backup remote novalink conf file ------------------------- 10.08s	
pvc_restore : exit_maintenance_mode ------------------------------------- 9.60s	
	
IBM PowerVC restore operation successfully completed at 2022-02-09 17:41:46.	
	
 Refer to	
 /opt/ibm/powervc/log/restore/powervc-opsmgr_powervc2021_restore_20220209_172213/stdout	
 for more details.	
	
real	19m34.571s
user	2m38.318s
sys	    0m17.354s
````



20分弱かかりました。
途中ログを省略していますが、だいぶん長いです。


---

以前一度、必要なデーモンが稼働していなかったという理由でリストアに失敗したので怖々リストアしましたが、今回は成功しました。



以上です。