월간 인기 게시물

게시물 718건
   
cinder backup-restore memo 1
글쓴이 : 최고관리자 날짜 : 2016-04-07 (목) 10:39 조회 : 2950
                                
:: 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 해서 사용가능

이름 패스워드
�ㅽ���
援대┝
10pt
<html> <body>
 
 
 
 
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.