Microsoft Virtualization Discussions

how to set aggregate raid-size by powershell

AllenChang
1,770 Views

If I want to set the aggregate raid-size,

What's the powershell command ?

set-ncaggr or ncaggroption ?

1 ACCEPTED SOLUTION

mbeattie
1,743 Views

Assuming you've added disks to expand the aggregate. EG

 

 

Set-NcAggrOption -Name aggr1_cluster1 -Key raidsize -Value 20

 

 

When it comes to creating aggregates, measure twice, cut once IMO

 

/Matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

4 REPLIES 4

mbeattie
1,746 Views

Hi Allen,

 

The -RaidSize parameter is set when creating the aggregate. Set "Get-Help Add-NcAggr" EG:

 

NAME
    New-NcAggr
    
SYNOPSIS
    Create a new aggregate with the given name.
    
    
SYNTAX
    New-NcAggr [-Name] <String> [-Node <String[]>] [-Striped] -DiskCount <Int32> [-DiskSize <Int64>] [-DiskType <String>] [-ChecksumStyle <String>] [-RaidSize <Int32>] [-ForceSparePool] [-BlockType <String>] 
    [-AllowMixedRpm] [-IgnorePoolChecks] [-PreCheck] [-Mirrored] [-IncludeInAutobalance] [-AutobalanceState <String>] [-ForceSmallAggregate] [-Encrypt] [-Simulate] [-SnaplockType <String>] [-Controller <NcController[]>] 
    [-RaidType <String>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [-ZapiRetryCount <Int32>] [<CommonParameters>]
    
    New-NcAggr [-Name] <String> [-Node <String[]>] [-Striped] -DiskCount <Int32> [-DiskSize <Int64>] [-ChecksumStyle <String>] [-RaidSize <Int32>] [-ForceSparePool] [-BlockType <String>] [-AllowMixedRpm] 
    [-IgnorePoolChecks] [-PreCheck] [-Mirrored] [-IncludeInAutobalance] [-AutobalanceState <String>] [-ForceSmallAggregate] [-Encrypt] [-DiskClass <String>] [-Simulate] [-SnaplockType <String>] [-Controller 
    <NcController[]>] [-RaidType <String>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [-ZapiRetryCount <Int32>] [<CommonParameters>]
    
    New-NcAggr [-Name] <String> [-Node <String[]>] [-Striped] -DiskCount <Int32> [-DiskSize <Int64>] [-ChecksumStyle <String>] [-RaidSize <Int32>] [-ForceSparePool] [-BlockType <String>] [-AllowMixedRpm] 
    [-IgnorePoolChecks] [-PreCheck] [-Mirrored] [-IncludeInAutobalance] [-AutobalanceState <String>] [-ForceSmallAggregate] [-Encrypt] [-ActualDiskType <String>] [-Simulate] [-SnaplockType <String>] [-Controller 
    <NcController[]>] [-RaidType <String>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [-ZapiRetryCount <Int32>] [<CommonParameters>]
    
    New-NcAggr [-Name] <String> [-Node <String[]>] [-Striped] [-RPM <Int32>] [-RaidSize <Int32>] [-ForceSparePool] [-BlockType <String>] [-AllowMixedRpm] [-IgnorePoolChecks] [-PreCheck] [-Mirrored] [-IncludeInAutobalance] 
    [-AutobalanceState <String>] [-ForceSmallAggregate] [-Encrypt] [-Simulate] [-SnaplockType <String>] [-Controller <NcController[]>] [-RaidType <String>] [-InformationAction <ActionPreference>] [-InformationVariable 
    <String>] [-PipelineVariable <String>] [-ZapiRetryCount <Int32>] [<CommonParameters>]
    
    New-NcAggr [-Name] <String> [-Node <String[]>] [-Striped] -Disks <Object[]> [-MirrorDisks <Object[]>] [-RaidSize <Int32>] [-ForceSparePool] [-BlockType <String>] [-AllowSameCarrier] [-AllowMixedRpm] 
    [-IgnorePoolChecks] [-PreCheck] [-Mirrored] [-IncludeInAutobalance] [-AutobalanceState <String>] [-ForceSmallAggregate] [-Encrypt] [-Simulate] [-SnaplockType <String>] [-Controller <NcController[]>] [-RaidType 
    <String>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [-ZapiRetryCount <Int32>] [<CommonParameters>]
    
    
DESCRIPTION
    Create a new aggregate with the given name.  Up to 200 aggregates can be created on each controller.  The aggregate may not yet be operational immediately after the API returns.

 

/Matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

AllenChang
1,744 Views

sot it can't be modify by powershell after aggr created ?

 

mbeattie
1,744 Views

Assuming you've added disks to expand the aggregate. EG

 

 

Set-NcAggrOption -Name aggr1_cluster1 -Key raidsize -Value 20

 

 

When it comes to creating aggregates, measure twice, cut once IMO

 

/Matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

AllenChang
1,735 Views

Thanks very much

Public