Hyper-V: UPS with Outlet Groups

Example 1: Hyper-V Failover Cluster, Turn off the Outlet Group enabled, stop cluster enabled, no shutdown command file configured.

PowerChute is installed on one of the nodes in a Hyper-V Failover Cluster. The option to Turn off the Outlet Group is enabled on the Shutdown settings page. The option to stop the Cluster is enabled in the Virtualization Settings page. No Shutdown command file is configured.  VM migration and VM shutdown are enabled with a 120 second delay configured for each.

When a critical UPS event, such as On Battery occurs, the following sequence is triggered.

 

  1. PowerChute reports that the UPS is on battery.
  2. After the shutdown delay configured for the On Battery event has elapsed, PowerChute sends a command to turn off the outlet group that PowerChute is registered with. The outlet group turnoff starts.
  3. PowerChute suspends the Cluster node and starts to migrate VMs and then shut down any VMs that cannot be migrated.
  4. After 4 minutes (VM migration delay = 120, VM shutdown delay = 120), PowerChute stops the cluster.
  5. After 2 minutes (stop cluster duration = 120), PowerChute starts the operating system shutdown sequence.
  6. After a 70-second delay the operating system starts to shut down.
  7. The outlet group will turn off after the Power Off Delay (configurable on the Configuration - Outlet Groups page in the NMC user interface) has elapsed.

It is recommended that the outlet group Power Off Delay is configured to allow enough time for the operating system shutdown to complete. You should allow extra time to ensure that the outlet group does not turn off before the operating system.

 

Example 2: Hyper-V Failover Cluster, Turn off the Outlet Group enabled, shutdown command file configured.

PowerChute is installed on one of the nodes in a Hyper-V Failover Cluster. The option to Turn off the Outlet Group is enabled on the Shutdown settings page. A shutdown command file is configured. VM migration and VM shutdown are enabled with a 120 second delay configured for each.

When a critical UPS event, such as On Battery occurs, the following sequence is triggered.

  

  1. PowerChute reports that the UPS is on battery.

  2. After the shutdown delay configured for the On Battery event has elapsed, PowerChute sends a command to turn off the outlet group. The outlet group turnoff starts.

  3. PowerChute suspends the Cluster node and starts to migrate VMs and then shuts down any VMs that cannot be migrated.

  4. After 4 minutes (VM migration delay = 120, VM shutdown delay = 120), PowerChute starts to execute the shutdown command file.

  5. After the duration configured for the shutdown command file has elapsed, PowerChute resumes the cluster node and starts the operating system shutdown sequence.

  6. An additional 70 second delay is counted down before the operating system starts to shut down.

  7. The Outlet Group will turn off after the Power Off Delay (configurable on the Configuration - Outlet Groups page in the NMC user interface) has elapsed.

It is recommended that the Outlet Group Power Off Delay is configured to allow enough time for the shutdown command file and the operating system shutdown to complete. You should allow extra time to ensure that the outlet group does not turn off before the operating system.

Recommended Power-Off Delays for Outlet groups

By default, the outlet group Power Off Delay will be the same value as the Low Battery duration configured on the NMC. PowerChute will automatically increase the Power Off Delay for the outlet group it is registered with, if the total shutdown time it needs is greater than the Power Off Delay.

The total shutdown time includes the following values:

The time required to gracefully shut down your operating system is not covered by the total shutdown time, as PowerChute cannot determine how long it will take to complete.

The Power Off Delay for the outlet group should be long enough for the OS to gracefully shut down. You should add extra time to allow for unforeseen circumstances.

The Low Battery Duration set on the NMC should be equal to or greater than the Power Off Delay for the outlet group.