No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

OceanStor 9000 V5 7.0 Command Reference 03

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
poweroff virtual_machine

poweroff virtual_machine

Function

The poweroff virtual_machine command is used to power off a VM. If you shut down the VM normally, stop running software and processes in case of data loss. A forcible shutdown may damage the hardware and file system; therefore, exercise caution when performing this operation.

Format

poweroff virtual_machine <vm_id> <force>

Parameters

Parameter

Description

Value

vm_id VM ID.

The value can be the VM ID or "all". When entering the VM ID, perform operations on the corresponding VM; when entering "all", perform operations on all VMs. Query information about all VMs by pressing "Ctrl+A".

force Power off forcibly or not.

"false":normally poweroff;

"true":forcible poweroff.

Level

Super administrator

Usage Guidelines

1.Batch command operations are mutually exclusive. When you shut down VM in a batch, another batch operation is not allowed.

2.Mutual exclusion between the batch command operations has a timeout duration. Node exceptions make the batch operation remaining in the running status. When the wait period exceeds the timeout duration, the mutual exclusion is unlocked. The timeout duration is 20 minutes.

3.Batch operations and non-batch operations are mutually independent. Therefore, when batch operation commands are performed, the non-batch operation commands can run normally.

4.The VM can be powered off forcibly only when the VM Agent service of the VM is started.

Example

Powers off the VM.

admin:/>poweroff virtual_machine 610402305 false
DANGER: You are going to poweroff the virtual machine. Some of the user's data may lose.
Have you read danger alert message carefully?(y/n)y
Are you sure you want to perform the operation?(y/n)y
Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-05-07

Document ID: EDOC1100067955

Views: 24919

Downloads: 7

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next