¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 708°Ç
   
cinder reset-state --attach-status
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2018-04-20 (±Ý) 09:44 Á¶È¸ : 6028
                                
# 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 |
+--------------------------------------+-----------+------------------------------------------------+------+-------------+----------+--------------------------------------+


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.