ÇöÀç VolumeÀº ÀνºÅϽº¿¡ ºÙ¿©ÀÌ´Â »óÅ¿¡¼ ¹é¾÷µÈ Volmue µ¥ÀÌŸ·Î º¹±¸
# cinder list
+--------------------------------------+--------+----------------+------+-------------+----------+-------------+--------------------------------------+
| ID | Status | Name | Size | Volume Type | Bootable | Multiattach | Attached to |
+--------------------------------------+--------+----------------+------+-------------+----------+-------------+--------------------------------------+
| 1fc4a829-759d-429e-8d90-3238cf0e7e1d | in-use | LVM_Volume_20G | 20 | - | false | False | 804de1b5-7f98-4c37-8152-f3760cdda67b |
+--------------------------------------+--------+----------------+------+-------------+----------+-------------+--------------------------------------+
# cinder backup-list
+--------------------------------------+--------------------------------------+-----------+----------------------+------+--------------+-----------+
| ID | Volume ID | Status | Name | Size | Object Count | Container |
+--------------------------------------+--------------------------------------+-----------+----------------------+------+--------------+-----------+
| 12e205fd-802d-4f30-a610-0642d3b503fc | 1fc4a829-759d-429e-8d90-3238cf0e7e1d | available | 2016_0330_1122_incre | 20 | 0 | backups |
| 22de2456-d134-40fe-9ba1-e1d762adb29a | 1fc4a829-759d-429e-8d90-3238cf0e7e1d | available | 2016_0330_1143_incre | 20 | 0 | backups |
| 2ef9a9ad-f3ff-4ddb-a39c-4f2f63e1d002 | 1fc4a829-759d-429e-8d90-3238cf0e7e1d | available | 2016_0330_1132_incre | 20 | 0 | backups |
| 5a8d828f-3bb6-46f2-9d5f-fb4b14046944 | 1fc4a829-759d-429e-8d90-3238cf0e7e1d | available | 2016_0330_1111_incre | 20 | 0 | backups |
+--------------------------------------+--------------------------------------+-----------+----------------------+------+--------------+-----------+
VolumeÀÌ ºÙ¾îÀÖ´Â(in-use) »óÅ¿¡¼´Â º¹±¸ ÁøÇàÀÌ ¾ÈµÊ
# cinder backup-restore 5a8d828f-3bb6-46f2-9d5f-fb4b14046944 --volume 1fc4a829-759d-429e-8d90-3238cf0e7e1d
ERROR: Invalid volume: Volume to be restored to must be available (HTTP 400) (Request-ID: req-544a4e9c-d778-4ec7-bbf4-f029a308ac70)
Volume-detach (in-use --> available º¯°æ)
# nova volume-detach 804de1b5-7f98-4c37-8152-f3760cdda67b 1fc4a829-759d-429e-8d90-3238cf0e7e1d
# cinder list
+--------------------------------------+-----------+----------------+------+-------------+----------+-------------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Multiattach | Attached to |
+--------------------------------------+-----------+----------------+------+-------------+----------+-------------+-------------+
| 1fc4a829-759d-429e-8d90-3238cf0e7e1d | available | LVM_Volume_20G | 20 | - | false | False | |
+--------------------------------------+-----------+----------------+------+-------------+----------+-------------+-------------+
# cinder backup-restore 5a8d828f-3bb6-46f2-9d5f-fb4b14046944 --volume 1fc4a829-759d-429e-8d90-3238cf0e7e1d
+-------------+--------------------------------------+
| Property | Value |
+-------------+--------------------------------------+
| backup_id | 5a8d828f-3bb6-46f2-9d5f-fb4b14046944 |
| volume_id | 1fc4a829-759d-429e-8d90-3238cf0e7e1d |
| volume_name | LVM_Volume_20G |
+-------------+--------------------------------------+
# cinder list
+--------------------------------------+------------------+----------------+------+-------------+----------+-------------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Multiattach | Attached to |
+--------------------------------------+------------------+----------------+------+-------------+----------+-------------+-------------+
| 1fc4a829-759d-429e-8d90-3238cf0e7e1d | restoring-backup | LVM_Volume_20G | 20 | - | false | False | |
+--------------------------------------+------------------+----------------+------+-------------+----------+-------------+-------------+
# cinder backup-list
+--------------------------------------+--------------------------------------+-----------+----------------------+------+--------------+-----------+
| ID | Volume ID | Status | Name | Size | Object Count | Container |
+--------------------------------------+--------------------------------------+-----------+----------------------+------+--------------+-----------+
| 12e205fd-802d-4f30-a610-0642d3b503fc | 1fc4a829-759d-429e-8d90-3238cf0e7e1d | available | 2016_0330_1122_incre | 20 | 0 | backups |
| 22de2456-d134-40fe-9ba1-e1d762adb29a | 1fc4a829-759d-429e-8d90-3238cf0e7e1d | available | 2016_0330_1143_incre | 20 | 0 | backups |
| 2ef9a9ad-f3ff-4ddb-a39c-4f2f63e1d002 | 1fc4a829-759d-429e-8d90-3238cf0e7e1d | available | 2016_0330_1132_incre | 20 | 0 | backups |
| 5a8d828f-3bb6-46f2-9d5f-fb4b14046944 | 1fc4a829-759d-429e-8d90-3238cf0e7e1d | restoring | 2016_0330_1111_incre | 20 | 0 | backups |
+--------------------------------------+--------------------------------------+-----------+----------------------+------+--------------+-----------+
# nova volume-attach 804de1b5-7f98-4c37-8152-f3760cdda67b 1fc4a829-759d-429e-8d90-3238cf0e7e1d
+----------+--------------------------------------+
| Property | Value |
+----------+--------------------------------------+
| device | /dev/vdb |
| id | 1fc4a829-759d-429e-8d90-3238cf0e7e1d |
| serverId | 804de1b5-7f98-4c37-8152-f3760cdda67b |
| volumeId | 1fc4a829-759d-429e-8d90-3238cf0e7e1d |
+----------+--------------------------------------+
ÁÖÀÇ»çÇ×
1. Guest ¿¡¼ ¸¶¿îÆ® °É·ÁÀÖ´Â »óÅ¿¡¼ backup-restore ¸¦ ÁøÇàÇÒ°æ¿ì ¸¶¿îÆ® Æ÷ÀÎÆ® or UUID °ª È®ÀÎÇؼ À縶¿îÆ®
2. backup-restore ½Ã....ÇöÀç ¹°·ÁÀÖ´Â Volume Àº »èÁ¦µÇ±â¿¡ ÇÊ¿äÇÏ´Ù¸é ¹Ýµå½Ã ¹é¾÷ÁøÇàÇÏ°í restore
3. volume-attach ½Ã device À̸§ÀÌ /dev/vdb·Î ³ª¿ÍÀÖÁö¸¸...½Ã½ºÅÛ¿¡¼´Â ¸¶Áö¸·À¸·Î ¹°·ÁÀÖ´ø µð¹ÙÀ̽º ¹øÈ£ ´ÙÀ½À¸·Î ¿¬°á (/dev/vdc)
ÀÌ°Ç ¸®ºÎÆÃÇÏ°Ô µÇ¸é vdc --> vdb ÇüÅ·Πº¯°æµÇ¼ ÀâÈû
fatab ¿¡ µð¹ÙÀ̽º À̸§º¸´Ù UUID ·Î Àû¿ë