:: Cinder Volume ÀÌ °¡Áö°í ÀÖ´Â »çÀÌÁ´Ù Å« ¹é¾÷µ¥ÀÌÆ®¸¦ Restore
- ¿ø·¡ ÇØ´ç Volume Size : 5G
- Restore ÇÏ·Á´Â Volume Size : 15G
# cinder backup-restore --volume 306062c4-e73a-44d5-8070-b84da98b0b7d e543c4e3-34b2-43ae-afcb-8149bafee1fd
ERROR: Invalid volume: volume size 5 is too small to restore backup of size 15. (HTTP 400) (Request-ID: req-7dd9d170-b51c-4db2-927a-6bb73f04e00a)
:: Cinder Volume ÀÌ °¡Áö°í ÀÖ´Â »çÀÌÁ´Ù ÀÛÀº ¹é¾÷µ¥ÀÌÆ®¸¦ Restore
- ¿ø·¡ ÇØ´ç Volume Size : 30G
- Restore ÇÏ·Á´Â Volume Size : 15G
# cinder backup-restore --volume 1d836f22-58c2-4e7d-b54e-7fc8af4676e4 e543c4e3-34b2-43ae-afcb-8149bafee1fd
+-------------+--------------------------------------+
| Property | Value |
+-------------+--------------------------------------+
| backup_id | e543c4e3-34b2-43ae-afcb-8149bafee1fd |
| volume_id | 1d836f22-58c2-4e7d-b54e-7fc8af4676e4 |
| volume_name | ceph_volume_test3 |
+-------------+--------------------------------------+
# cinder list
+--------------------------------------+-----------------+-------------------+------+-------------+----------+-------------+--------------------------------------+
| ID | Status | Name | Size | Volume Type | Bootable | Multiattach | Attached to |
+--------------------------------------+-----------------+-------------------+------+-------------+----------+-------------+--------------------------------------+
| 1d836f22-58c2-4e7d-b54e-7fc8af4676e4 | error_restoring | ceph_volume_test3 | 30 | - | false | False | |
....................................................
# tail -f /var/log/cinder/cinder-backup.log
Status °¡ error_restoring »óÅ¿¡¼ Volume Size¿¡ ¸Â´Â µð½ºÅ©·Î Restore
# cinder backup-restore --volume 1d836f22-58c2-4e7d-b54e-7fc8af4676e4 3e7b007d-befa-4031-a1a5-5eb6154e5176
ERROR: Invalid volume: Volume to be restored to must be available (HTTP 400) (Request-ID: req-34ab830b-3fdd-4450-b784-777af271931d)
:: ÀϹݰèÁ¤¿¡¼´Â reset-state ±ÇÇÑ ¾øÀ½
# cinder reset-state --state available 1d836f22-58c2-4e7d-b54e-7fc8af4676e4
Reset state for volume 1d836f22-58c2-4e7d-b54e-7fc8af4676e4 failed: Policy doesn't allow volume_extension:volume_admin_actions:reset_status to be performed. (HTTP 403) (Request-ID: req-16f4a58a-9eb6-4987-a6f8-9c2027407af0)
ERROR: Unable to reset the state for the specified volume(s).
# source admin-region1.sh
# cinder reset-state --state available 1d836f22-58c2-4e7d-b54e-7fc8af4676e4
# source mojily_openrc.sh
~# cinder list
+--------------------------------------+-----------+-------------------+------+-------------+----------+-------------+--------------------------------------+
| ID | Status | Name | Size | Volume Type | Bootable | Multiattach | Attached to |
+--------------------------------------+-----------+-------------------+------+-------------+----------+-------------+--------------------------------------+
| 1d836f22-58c2-4e7d-b54e-7fc8af4676e4 | available | ceph_volume_test3 | 30 | - | false | False | |
....................................................
:: Cinder Volume ÀÌ °¡Áö°í ÀÖ´Â »çÀÌÁî´Â µ¿ÀÏÇϳª ´Ù¸¥ ¹é¾÷ Volume Restore
# cinder backup-restore --volume 1d836f22-58c2-4e7d-b54e-7fc8af4676e4 b9a6d001-9c1f-4023-987c-14d2cb6c541c
~# nova volume-attach bdb147a9-2cec-4914-9c63-f6a202140366 1d836f22-58c2-4e7d-b54e-7fc8af4676e4
:: º»ÀÎ Volume À¸·Î Restore
# cinder backup-restore --volume 1d836f22-58c2-4e7d-b54e-7fc8af4676e4 3e7b007d-befa-4031-a1a5-5eb6154e5176
+-------------+--------------------------------------+
| Property | Value |
+-------------+--------------------------------------+
| backup_id | 3e7b007d-befa-4031-a1a5-5eb6154e5176 |
| volume_id | 1d836f22-58c2-4e7d-b54e-7fc8af4676e4 |
| volume_name | ceph_volume_test3 |
+-------------+--------------------------------------+
# nova volume-attach bdb147a9-2cec-4914-9c63-f6a202140366 1d836f22-58c2-4e7d-b54e-7fc8af4676e4
¡Ø ¹é¾÷´ë»ó Volume ÀÌ ´Ù¸£´õ¶óµµ... Size °¡ °°À» °æ¿ì backup-restore Çؼ »ç¿ë°¡´É