Remove-HpcIScsiStorageArray
Remove-HpcIScsiStorageArray
Removes the specified Internet SCSI (iSCSI) storage array from the HPC cluster.
Syntax
Parameter Set: Default
Remove-HpcIScsiStorageArray -HpcIScsiStorageArray <HpcIScsiStorageArray> [-Scheduler <String> ] [ <CommonParameters>]
Detailed Description
Removes the specified iSCSI storage array from the HPC cluster. You can only remove an iSCSI storage array from the HPC cluster if no nodes are currently deployed with the iSCSI storage array.
Parameters
-HpcIScsiStorageArray<HpcIScsiStorageArray>
Specifies the iSCSI storage array that you want to remove from the HPC cluster. Use the Get-HpcIScsiStorageArray cmdlet to get an HpcIScsiStorageArray object for an iSCSI storage array in the HPC cluster.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
no default |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
-Scheduler<String>
Specifies the host name or IP address of the head node for the HPC cluster that contains the iSCSI storage array that you want to remove. The value must be a valid computer name or IP address. If you do not specify the Scheduler parameter, this cmdlet uses the scheduler on the head node that the CCP_SCHEDULER environment variable specifies. To set this environment variable, run the following cmdlet:
Set-Content Env:CCP_SCHEDULER <head_node_name>
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
%CCP_SCHEDULER% |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
- An HpcIScsiStorageArray object
Outputs
The output type is the type of the objects that the cmdlet emits.
- None
Notes
You must be a cluster administrator to run this cmdlet successfully.
This cmdlet was introduced in HPC Pack 2008 R2. It is not available in previous versions.
Examples
EXAMPLE 1
Gets an HpcIScsiStorageArray object for the iSCSI storage array that has a management IP address of 10.0.0.10 and redirects this object as input to the Remove-HpcIScsiStorageArray cmdlet to remove the storage array from the HPC cluster.
PS C:\>Get-HpcIScsiStorageArray –IpAddresses 10.0.0.10 | Remove-HpcIScsiStorageArray
EXAMPLE 2
Gets an HpcIScsiStorageArray object for the iSCSI storage array that has a management IP address of 10.0.0.11 and saves the object in a variable. The example then uses this variable to specify the iSCSI storage array in the Remove-HpcIScsiStorageArray cmdlet to remove the iSCSI storage array for the HPC cluster.
PS C:\>$sa = Get-HpcIScsiStorageArray –IpAddresses 10.0.0.11
Remove-HpcIScsiStorageArray –HpcIScsiStorageArray $sa