Index  |  Top  -  Up Data ONTAP 8.2

lun create

Create a new LUN

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

This command creates a new empty LUN of a specific size. You cannot create a LUN in path that already exists. You must specify the LUN at a qtree root directory in the lun_path. A LUN can only exist at the root of a qtree. You can not create LUNs in the Vserver root volume.

You might find it useful to provide a meaningful path name for the LUN. For example, you might choose a name that describes how the LUN is used, such as the name of the application, the type of data that it stores, or the user accessing the data. Examples are /vol/database/lun0, /vol/finance/lun1, and /vol/bill/lun2.

For clustered storage system configurations, it is recommended that you distribute LUNs across the cluster.

When you can create a LUN, the size of the LUN could be larger than what you specified. The system generates a message if the size of the LUN is different from what you specified.

By default, when you create a LUN, it is online and it is space-reserved. Use the lun offline command to take a LUN offline. When you set space reserved to false, the LUN is thinly provisioned.

Note:
Note:
Note:

Parameters

-vserver <vserver name> - Vserver Name

Specifies the Vserver.

{  -path <path> - LUN Path

Specifies the path of the new LUN. The LUN path cannot contain any files. Examples of correct LUN paths are /vol/vol1/lun1 and /vol/vol1/qtree1/lun1.

|  -volume <volume name> - Volume Name

Specifies the volume that contains the new LUN.

   [-qtree <text>] - Qtree Name

Specifies the qtree that contains the new LUN.

   -lun <text>  } - LUN Name

Specifies the new LUN name. A LUN name is a case-sensitive name and has the following requirements:

{  -size | -s <size> - LUN Size

Specifies the size of the LUN in bytes. You can specify a one-character multiplier suffix:

|  -file-path | -f <text>  } - File Path

Creates a LUN using the file path as the source.

[-prefix-size | -P <size>] - Prefix Size (privilege: advanced)

Specifies the size of the prefix stream for the new LUN.

-ostype | -t <os_enum> - OS Type

Specifies the OS type for the new LUN. The OS types are:

[-space-reserve {enabled|disabled}] - Space Reservation

Specifies whether the space reservation setting is enabled or disabled for the new LUN. If you set the parameter to enabled, the LUN is space-reserved. If you set the parameter to disable, the LUN is thinly provisioned. The default is enabled.

[-class {regular|protocol-endpoint|vvol}] - Class

Specifies the class of the new LUN. The class types are:

[-qos-policy-group <text>] - QoS Policy Group

This optionally specifies which QoS policy group to apply to the lun. This policy group defines measurable service level objectives (SLOs) that apply to the storage objects with which the policy group is associated. If you do not assign a policy group to a lun, the system will not monitor and control the traffic to it.
Note:

Examples

cluster1::> lun create -vserver vs1 -path /vol/vol1/lun1 -size 100M -ostype linux

Creates a 100MB LUN at path /vol/vol1/lun1 in Vserver vs1. The OS type is Linux, and the state is online.

See Also

lun offline  
Index  |  Top  -  Up Data ONTAP 8.2