Which Windows PowerShell cmdlet should you run?

You use Hyper-V Server 2008 R2 and failover clustering to host several virtual machines
(VMs). You need to place a disk in maintenance mode.
Which Windows PowerShell cmdlet should you run?

You use Hyper-V Server 2008 R2 and failover clustering to host several virtual machines
(VMs). You need to place a disk in maintenance mode.
Which Windows PowerShell cmdlet should you run?

A.
Suspend-ClusterResource

B.
Stop-ClusterResource

C.
Set-ClusterResourceDependency

D.
Block- ClusterAccess

Explanation:
Suspend-ClusterResource: Turn on maintenance for a disk resource or Cluster Shared
Volume so that you can run a disk maintenance tool without triggering failover.
Block-ClusterAccess: Prevent the specified user or users from accessing a failover cluster.
Stop-Cluster: Stop the Cluster service on all nodes in a failover cluster, which will stop all
services and applications configured in the cluster.

Add-ClusterResourceDependency : Add a resource to the list of resources that a particular
resource depends on (using AND as the connector) within a failover cluster. Existing
dependencies will remain in the list.
Set-ClusterResourceDependency : Specify the resources that a particular resource depends
on within a failover cluster. Existing dependencies will be overwritten by the dependencies
that you specify.
Syntax
Suspend-ClusterResource [-InputObject <psobject>] [[-Name] <string>] [-Cluster <string>] [-
Force]
[-RedirectedAccess] [-VolumeName <string>] [<CommonParameters>]
Detailed Description
This cmdlet applies to disks and Cluster Shared Volumes only. For Cluster Shared Volumes,
turning on maintenance takes dependent resources offline, which interrupts client access.
For other disks (LUNs) in cluster storage, turning on maintenance leaves dependent
resources online.
C:\PS>
Stop-Cluster cluster1
Description
———–
This command stops the Cluster service on all nodes in cluster1, which will stop all services
and applications configured in the cluster.



Leave a Reply 0

Your email address will not be published. Required fields are marked *