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

Configuring data storage

About configuring data storage  Top

You configure data storage by creating aggregates and FlexVol volumes, traditional volumes, and LUNs for a SAN environment. You can also use qtrees to partition data in a volume.

You can create up to 100 aggregates per storage system. Minimum aggregate size is two disks (one data disk, one parity disk) for RAID4 or three disks (one data, one parity, and one double parity disk) for RAID-DP. However, you are advised to configure the size of your RAID groups according to the anticipated load. For more information, see the chapter on system information and performance in the System Administration Guide.

Creating aggregates, FlexVol volumes, and qtrees  Top

To create an aggregate and a FlexVol, complete the following steps.

Step

Action

1

(Optional) Determine the free disk resources on your storage system by entering the following command:

aggr status -s

-s displays a listing of the spare disks on the storage system.

Result

Data ONTAP displays a list of the disks that are not allocated to an aggregate. With a new storage system, all disks except those allocated for the root volume's aggregate (explicit for a FlexVol and internal for a traditional volume) will be listed.

2

(Optional) Determine the size of the aggregate, assuming it is aggr0, by entering one of the following commands:

For size in kilobytes, enter:

df -A aggr0

For size in 4096-byte blocks, enter:

aggr status -b aggr0

For size in number of disks, enter:

aggr status { -d | -r } aggr0

-d displays disk information

-r displays RAID information

Note
If you want to expand the size of the aggregate, see Adding disks to an aggregate.

3

Create an aggregate by entering the following command:

aggr create [-m] [-r raidsize] aggr ndisks[@disksize]

Example

aggr create aggr1 24@72G

Result

An aggregate named aggr1 is created. It consists of 24 72- GB disks.

-m instructs Data ONTAP to implement SyncMirror.

-r raidsize specifies the maximum number of disks of each RAID group in the aggregate. The maximum and default values for raidsize are platform-dependent, based on performance and reliability considerations.

By default, the RAID level is set to RAID-DP. If raidsize is sixteen (16), aggr1 consists of two RAID groups, the first group having fourteen (14) data disks, one (1) parity disk, and one (1) double parity disk, and the second group having six (6) data disks, one (1) parity disk, and one (1) double parity disk.

If raidsize is eight (8), aggr1 consists of three RAID groups, each one having six (6) data disks, one (1) parity disk, and one (1)double parity disk.

4

(Optional) Verify the creation of this aggregate by entering the following command:

aggr status aggr1
5

Create a FlexVol volume in the specified aggregate by entering the following command:

vol create vol aggr size

Example

vol create new_vol aggr1 32g

Result

The FlexVol volume new_vol, with a maximum size of 32 GB, is created in the aggregate, aggr1.

The default space guarantee setting for FlexVol volume creation is volume. The vol create command fails if Data ONTAP cannot guarantee 32 GB of space. To override the default, enter one of the following commands. For information about space guarantees, see Space guarantees.

vol create vol -s none aggr size

or

vol create vol -s file aggr size
6

(Optional) To verify the creation of the FlexVol named new_vol, enter the following command:

vol status new_vol -v
7

If you want to create additional FlexVol volumes in the same aggregate, use the vol create command as described in Step 5. Note the following constraints:

  • Volumes must be uniquely named across all aggregates within the same storage system. If aggregate aggr1 contains a volume named volA, no other aggregate on the storage system can contain a volume with the name volA.
  • You can create a maximum of 200 FlexVol volumes in one storage system.
  • Minimum size of a FlexVol volume is 20 MB.
8

To create qtrees within your volumes, enter the following command:

qtree create /vol/vol/qtree

Example

qtree create /vol/new_vol/my_tree 

Result

The qtree my_tree is created within the volume named new_vol.

Note
You can create up to 4,995 qtrees within one volume.

9

(Optional) To verify the creation of the qtree named my_tree, within the volume named new_vol, enter the following command:

qtree status new_vol -v

Why continue using traditional volumes  Top

If you upgrade to Data ONTAP 7.0 or later from a previous version of Data ONTAP, the upgrade program keeps your traditional volumes intact. You might want to maintain your traditional volumes and create additional traditional volumes because some operations are more practical on traditional volumes or require traditional volumes, such as:

Creating traditional volumes and qtrees  Top

To create a traditional volume, complete the following steps:

:

Step

Action

1

(Optional) List the aggregates and traditional volumes on your storage system by entering the following command:

aggr status -v
2

(Optional) Determine the free disk resources on your storage system by entering the following command:

aggr status -s 
3

Create a traditional volume by entering the following command:

aggr create trad_vol -v ndisks[@disksize]

Example

aggr create new_tvol -v 16@72g
4

(Optional) Verify the creation of the traditional volume named new_tvol by entering the following command:

vol status new_tvol -v 
5

If you want to create additional traditional volumes, use the aggr create command as described in Step 3. Note the following constraints:

  • All volumes, including traditional volumes, must be uniquely named within the same storage system.
  • You can create a maximum of 100 traditional volumes within one storage system.
  • Minimum traditional volume size depends on the disk capacity and RAID protection level.
6

Create qtrees within your volume by entering the following command:

qtree create /vol/vol/qtree

Example

qtree create /vol/new_tvol/users_tree 

Result

The qtree users_tree is created within the new_tvol volume.

Note
You can create up to 4,995 qtrees within one volume.

7

(Optional) Verify the creation of the qtree named users_tree within the new_tvol volume by entering the following command:

qtree status new_tvol -v

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