월간 인기 게시물

게시물 718건
   
cinder reset-state --attach-status
글쓴이 : 최고관리자 날짜 : 2018-04-20 (금) 09:44 조회 : 6786
                                
# cinder list
+--------------------------------------+--------+------------------------------------------------+------+-------------+----------+--------------------------------------+
|                  ID                  | Status |                      Name                      | Size | Volume Type | Bootable |             Attached to              |
+--------------------------------------+--------+------------------------------------------------+------+-------------+----------+--------------------------------------+
| 881970a9-6157-4a64-ae5c-13db2b763347 | in-use | 33a39f16-a910-45b6-a796-7a6db9f589e7-blank-vol |  20  |     ssd     |  false   | 33a39f16-a910-45b6-a796-7a6db9f589e7 |
| c94f88fe-03ab-418b-983d-b6fa666de986 | in-use | f222679b-a9d9-4193-a6d7-bdf3d838a679-blank-vol |  20  |     ssd     |  false   | f222679b-a9d9-4193-a6d7-bdf3d838a679 |
+--------------------------------------+--------+------------------------------------------------+------+-------------+----------+--------------------------------------+


# cinder help reset-state
usage: cinder reset-state [--state <state>] [--attach-status <attach-status>]
                          [--reset-migration-status]
                          <volume> [<volume> ...]

Explicitly updates the volume state in the Cinder database. Note that this
does not affect whether the volume is actually attached to the Nova compute
host or instance and can result in an unusable volume. Being a database change
only, this has no impact on the true state of the volume and may not match the
actual state. This can render a volume unusable in the case of change to the
'available' state.

Positional arguments:
  <volume>              Name or ID of volume to modify.

Optional arguments:
  --state <state>       The state to assign to the volume. Valid values are
                        "available", "error", "creating", "deleting", "in-
                        use", "attaching", "detaching", "error_deleting" and
                        "maintenance". NOTE: This command simply changes the
                        state of the Volume in the DataBase with no regard to
                        actual status, exercise caution when using.
                        Default=available.
  --attach-status <attach-status>
                        The attach status to assign to the volume in the
                        DataBase, with no regard to the actual status. Valid
                        values are "attached" and "detached". Default=None,
                        that means the status is unchanged.
  --reset-migration-status
                        Clears the migration status of the volume in the
                        DataBase that indicates the volume is source or
                        destination of volume migration, with no regard to the
                        actual status.


# cinder reset-state 881970a9-6157-4a64-ae5c-13db2b763347 --attach-status detached
Reset state for volume 881970a9-6157-4a64-ae5c-13db2b763347 failed: Policy doesn't allow volume_extension:volume_admin_actions:reset_status to be performed. (HTTP 403) (Request-ID: req-4d4f5d2a-20b3-4293-b909-ee98fa490291)

admin 권한에서....
# source iwinv2_env/admin_openrc
# cinder reset-state 881970a9-6157-4a64-ae5c-13db2b763347 --attach-status detached
# cinder list
+--------------------------------------+-----------+------------------------------------------------+------+-------------+----------+--------------------------------------+
|                  ID                  |   Status  |                      Name                      | Size | Volume Type | Bootable |             Attached to              |
+--------------------------------------+-----------+------------------------------------------------+------+-------------+----------+--------------------------------------+
| 881970a9-6157-4a64-ae5c-13db2b763347 | available | 33a39f16-a910-45b6-a796-7a6db9f589e7-blank-vol |  20  |     ssd     |  false   |                                      |
| c94f88fe-03ab-418b-983d-b6fa666de986 |   in-use  | f222679b-a9d9-4193-a6d7-bdf3d838a679-blank-vol |  20  |     ssd     |  false   | f222679b-a9d9-4193-a6d7-bdf3d838a679 |
+--------------------------------------+-----------+------------------------------------------------+------+-------------+----------+--------------------------------------+


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

 



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