分享

Manage instances and hosts----Delete an instance

 java_laq小馆 2013-08-27

Delete an instance

删除一个实例

When you no longer need an instance, you can delete it.

 当你不再需要一个实例时,你可以删除它。

To delete an instance

删除一个实例:

  1. List all instances:

    列出所有实例,运行下面的指令:

    $ nova list
    +--------------------------------------+----------------------+--------+------------+-------------+------------------+
    | ID                                   | Name                 | Status | Task State | Power State | Networks         |
    +--------------------------------------+----------------------+--------+------------+-------------+------------------+
    | 84c6e57d-a6b1-44b6-81eb-fcb36afd31b5 | myCirrosServer       | ACTIVE | None       | Running     | private=10.0.0.3 |
    | 8a99547e-7385-4ad1-ae50-4ecfaaad5f42 | myInstanceFromVolume | ACTIVE | None       | Running     | private=10.0.0.4 |
    | d7efd3e4-d375-46d1-9d57-372b6e4bdb7f | newServer            | ERROR  | None       | NOSTATE     |                  |
    +--------------------------------------+----------------------+--------+------------+-------------+------------------+
  2. Use the following command to delete the newServer instance, which is in ERROR state:

    当实例的状态为ERROR时,使用下面的指令删除指定的服务器实例:

    $ nova delete newServer
  3. The command does not notify that your server was deleted.

    Instead, run the nova list command:

    上面的指令不代表服务器被删除了。运行 nova list指令:

    $ nova list
    +--------------------------------------+----------------------+--------+------------+-------------+------------------+
    | ID                                   | Name                 | Status | Task State | Power State | Networks         |
    +--------------------------------------+----------------------+--------+------------+-------------+------------------+
    | 84c6e57d-a6b1-44b6-81eb-fcb36afd31b5 | myCirrosServer       | ACTIVE | None       | Running     | private=10.0.0.3 |
    | 8a99547e-7385-4ad1-ae50-4ecfaaad5f42 | myInstanceFromVolume | ACTIVE | None       | Running     | private=10.0.0.4 |
    +--------------------------------------+----------------------+--------+------------+-------------+------------------+ 

    The deleted instance does not appear in the list.

    被删除的实例,将不再出现在列表中。

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多