Set-StorageGroup
SYNOPSIS
Modifies a storage group.
SYNTAX
Rename (Default)
Set-StorageGroup [-Unisphere] <UnisphereServer> [-ArrayId] <String> [-Id] <String> -NewId <String> [-Confirm]
[-WhatIf] [<CommonParameters>]
EditCompression
Set-StorageGroup [-Unisphere] <UnisphereServer> [-ArrayId] <String> [-Id] <String> -EnableCompression <Boolean>
[-Confirm] [-WhatIf] [<CommonParameters>]
EditSrp
Set-StorageGroup [-Unisphere] <UnisphereServer> [-ArrayId] <String> [-Id] <String> -SRP <String> [-Confirm]
[-WhatIf] [<CommonParameters>]
EditSlo
Set-StorageGroup [-Unisphere] <UnisphereServer> [-ArrayId] <String> [-Id] <String> -SLO <String> [-Confirm]
[-WhatIf] [<CommonParameters>]
AddChild
Set-StorageGroup [-Unisphere] <UnisphereServer> [-ArrayId] <String> [-Id] <String>
-AddStorageGroupId <String[]> [-EnableComplianceAlerts] [-Confirm] [-WhatIf] [<CommonParameters>]
RemoveChild
Set-StorageGroup [-Unisphere] <UnisphereServer> [-ArrayId] <String> [-Id] <String>
-RemoveStorageGroupId <String[]> [-Confirm] [-Force] [-WhatIf] [<CommonParameters>]
AddVolume
Set-StorageGroup [-Unisphere] <UnisphereServer> [-ArrayId] <String> [-Id] <String> -AddVolumeId <String[]>
[-RemoteArray1Id <String>] [-RemoteArray1StorageGroup <String[]>] [-RemoteArray2Id <String>]
[-RemoteArray2StorageGroup <String[]>] [-SrdfForce <Boolean>] [-Confirm] [-WhatIf] [<CommonParameters>]
RemoveVolume
Set-StorageGroup [-Unisphere] <UnisphereServer> [-ArrayId] <String> [-Id] <String> -RemoveVolumeId <String[]>
[-RemoteArray1Id <String>] [-RemoteArray1StorageGroup <String[]>] [-RemoteArray2Id <String>]
[-RemoteArray2StorageGroup <String[]>] [-SrdfForce <Boolean>] [-Confirm] [-Force] [-WhatIf] [<CommonParameters>]
AddSnapshotPolicy
Set-StorageGroup [-Unisphere] <UnisphereServer> [-ArrayId] <String> [-Id] <String>
-AddSnapshotPolicyId <String[]> [-Confirm] [-WhatIf] [<CommonParameters>]
RemoveSnapshotPolicy
Set-StorageGroup [-Unisphere] <UnisphereServer> [-ArrayId] <String> [-Id] <String>
-RemoveSnapshotPolicyId <String[]> [-Confirm] [-Force] [-WhatIf] [<CommonParameters>]
DESCRIPTION
Modifies a storage group ID, compression, SRP or SLO. Adds volumes to or removes volumes from a storage group. Adds storage groups as child to or removes child storage groups from a parent storage group. Associates snapshot policies to or disassociates snapshot policies from a storage group.
EXAMPLES
Example 1
PS C:\> Set-StorageGroup $unisphere 000123456789 sg1 -NewId sg2
Where $unisphere is a Unisphere server instance. Changes the storage group ID from sg1 to sg2.
Example 2
PS C:\> Set-StorageGroup $unisphere 000123456789 sg1 -EnableCompression $True
Where $unisphere is a Unisphere server instance. Enables compression on storage group sg1.
Example 3
PS C:\> Set-StorageGroup $unisphere 000123456789 sg1 -SLO Gold
Where $unisphere is a Unisphere server instance. Changes SLO of storage group sg1 to Gold.
Example 4
PS C:\> Set-StorageGroup $unisphere 000123456789 sg1 -AddStorageGroupId sg2
Where $unisphere is a Unisphere server instance. Adds the storage group sg2 as child to storage group sg1.
Example 5
PS C:\> Set-StorageGroup $unisphere 000123456789 sg1 -AddVolumeId 0047A,00481
Where $unisphere is a Unisphere server instance. Adds the volumes 0047A and 00481 to the storage group sg1.
Example 6
PS C:\> Set-StorageGroup $unisphere 000123456789 sg1 -RemoveVolumeId '0047D',00481
Where $unisphere is a Unisphere server instance. Removes the volumes 0047D and 00481 from the storage group sg1 (Use quotes for IDs with ‘D’ when used in an array).
PARAMETERS
-Unisphere
The Unisphere server instance.
Type: UnisphereServer
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-ArrayId
The PowerMax array ID.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-Id
The storage group ID.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-NewId
The new ID.
Type: String
Parameter Sets: Rename
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-EnableCompression
Enable compression.
Type: Boolean
Parameter Sets: EditCompression
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SRP
Storage resource pool.
Type: String
Parameter Sets: EditSrp
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SLO
Service level.
Type: String
Parameter Sets: EditSlo
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-AddStorageGroupId
The storage group IDs to add.
Type: String[]
Parameter Sets: AddChild
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-EnableComplianceAlerts
Enable compliance alerts on the storage groups being added.
Type: SwitchParameter
Parameter Sets: AddChild
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RemoveStorageGroupId
The storage group IDs to remove.
Type: String[]
Parameter Sets: RemoveChild
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-AddVolumeId
The volume IDs to add. Use quotes for IDs with ‘D’ when used in an array.
Type: String[]
Parameter Sets: AddVolume
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RemoveVolumeId
The volume IDs to remove. Use quotes for IDs with ‘D’ when used in an array.
Type: String[]
Parameter Sets: RemoveVolume
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RemoteArray1Id
The ID of the first remote PowerMax array.
Type: String
Parameter Sets: AddVolume, RemoveVolume
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RemoteArray1StorageGroup
The storage groups on the first remote PowerMax array to add volumes to.
Type: String[]
Parameter Sets: AddVolume, RemoveVolume
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RemoteArray2Id
The ID of the second remote PowerMax array.
Type: String
Parameter Sets: AddVolume, RemoveVolume
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RemoteArray2StorageGroup
The storage groups on the second remote PowerMax array to add volumes to.
Type: String[]
Parameter Sets: AddVolume, RemoveVolume
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SrdfForce
Whether SRDF force flag is enabled or disabled.
Type: Boolean
Parameter Sets: AddVolume, RemoveVolume
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-AddSnapshotPolicyId
The snapshot policy IDs to add.
Type: String[]
Parameter Sets: AddSnapshotPolicy
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RemoveSnapshotPolicyId
The snapshot policy IDs to remove.
Type: String[]
Parameter Sets: RemoveSnapshotPolicy
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Force
Skips confirmation before removing the snapshot policies, storage groups or volumes.
Type: SwitchParameter
Parameter Sets: RemoveChild, RemoveSnapshotPolicy, RemoveVolume
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.