Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments

Management of RAID groups associated with NetApp volumes

RAID group described  Top

A NetApp volume is composed of one or more NetApp RAID groups. From the perspective of gFilers, Data ONTAP uses RAID groups to determine where to allocate data to the LUNs. A gFiler RAID group is composed of one or more LUNs.

The default size of a RAID group is 8 LUNs. Typically, you would not change the default RAID group size. However, you need to change the default RAID group size if you want to add LUNs to the volume that are of a different size than the LUNs in the current RAID group; that is, the RAID group to which Data ONTAP is automatically adding LUNs to (see How Data ONTAP creates RAID groups automatically). This section provides details about RAID groups and provides information about how to change the RAID group size if you need to.

Note
Current in this context means the RAID group to which LUNs are being added.

RAID group metrics  Top

The following table shows metrics for RAID groups.

Metric

Information

Maximum RAID group size

14 LUNs

Minimum RAID group size

1 LUN

Default RAID group size

8 LUNs

Maximum number of RAID groups in a volume

150 RAID groups

Maximum number of RAID groups on a gFiler

400 RAID groups (applies to both clustered gFilers and a single gFiler)

Caution
Exceeding the maximum volume size or maximum capacity for a gFiler model limits the maximum RAID groups in a volume.

How Data ONTAP creates RAID groups automatically  Top

When you create a volume or add LUNs to a volume, Data ONTAP creates new RAID groups as each RAID group is filled with its maximum number of LUNs, according to the raid-group-size parameter in the vol command. Within each volume, RAID groups are named rg0, rg1, rg2, and so on, in order of their creation. The last RAID group formed might contain fewer LUNs than are specified for the volume's RAID group size. In that case, any LUNs added to the volume are also added to the last RAID group until the specified RAID group size is reached.

Note
When creating a volume, you can use the -r raid-group-size command to specify the number of LUNs per RAID group. If no RAID group size is specified, the default value for your gFiler model is applied.

What to do if you are expanding a volume with a different-sized LUN  Top

To avoid a performance penalty, you want all LUNs in a particular RAID group to be the same size. Therefore, when you want to add a LUN of a different size to a volume, you need to stop the current RAID group from growing beyond its current size (as would automatically occur if there is still room) and force a new RAID group to be created that would contain the LUNs of the different size. You can use the volume option named raidsize  to limit the size the current RAID group to the number of LUNs already in it and to force a new RAID group to be created for newly-added LUNs. See Changing the size of the current RAID group.

What to do after changing the LUN size to force a new RAID group

Your goal should be to keep the default RAID group size of 8. After forcing a new RAID group to be created for the LUNs of the different size, stop the new RAID group from expanding beyond the LUNs of the different size, then set the RAID group size back to 8. Future RAID groups then contain 8 LUNs. Follow the procedure in Changing the size of the current RAID group for both stopping the RAID group size for the new, different-sized LUNs and returning to the default size of 8.

Changing the size of the current RAID group  Top

You can use the  raidsize volume option to set the maximum RAID group size that can be reached when LUNs are added to a volume.

To...

Modify the raidsize setting ...

Decrease the size of the current RAID group setting.

This setting applies to future RAID groups until you change the raidsize setting again.

Downward

To stop a RAID group from expanding, set the value to the number of LUNs already in the current RAID group. You can use the sysconfig command and the vol status -v command to determine the settings for the current RAID group size setting and LUN size.

Increase the allowable size of the current RAID group and future RAID groups

This setting applies to future RAID groups until you change the raidsize setting again.

Upward

RAID groups that became full at a specific RAID group setting remain whatever size they were before the raidsize setting was changed.

Changing the raidsize setting

To change the raidsize setting for a RAID group in an existing volume, complete the following step.

Step

Action

1

Enter the following command:

vol options vol-name raidsize size

vol-name is the volume whose raidsize setting you are changing.

size is the number of LUNs you want in the most recently created RAID group and all future RAID groups in this volume.

Example

The following command changes the raidsize setting of the volume yervol to 16 LUNs:

vol options yervol raidsize 16

Verifying the raidsize setting

To verify the size of raidsize setting in a volume, enter the vol options vol_name command.

Modifying the size of an existing RAID group  Top

Another way to increase the size of an existing RAID group is to use the -g raidgroup option in the vol add command

Adding new LUNs to a RAID group  Top

If a volume has more than one RAID group, you can specify the RAID group to which you are adding LUNs. Typically you don't need to use this procedure, except if your RAID groups contain different size LUNs and the RAID groups are not yet full.

To add new LUNs to a specific RAID group of a volume, complete the following step.

Step

Action

1

Enter the following command:

vol add vol-name ndisks[@disk-size] | -d disk-name...
-g raidgroup

raidgroup is a RAID group in the volume specified by the vol-name.

Example

The following command adds two disks to RAID group 0 of the vol0 volume:

vol add vol0 -g rg0 2

Note
The number of LUNs you can add to a specific RAID group is limited by the raidsize setting of the volume to which that group belongs.

Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments