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

Methods of creating LUNs, igroups, and LUN maps

About the methods  Top

You create LUNs using one of the following methods:

What is required to create a LUN  Top

Whichever method you choose, you create a LUN by specifying the following attributes:

The path name of the LUN

The path name must be at the root level of a qtree or a volume that specifies where the LUN is located. Do not create LUNs at /vol/vol0.

For clustered filer configurations, NetApp recommends that you distribute LUNs across the filer cluster.

Note
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 or the user using the data or the kind of data that it is.

The host operating system type

The host operating system type (ostype) indicates the type of operating system running on the host that accesses the LUN, which also determines the geometry used to access data on the LUN.

Not all versions of Data ONTAP support all operating system types. Neither protocol (iSCSI and FCP) supports all operating systems. For information about what is supported, see the FCP/iSCSI Configuration Guide or the release notes that came with your version of Data ONTAP.

The size of the LUN

When you create a LUN, you specify its size as raw disk space, depending on the filer and the host. You specify the size, in bytes (default), or by using the following multiplier suffixes.

Multiplier suffix

Size

c

bytes

w

words or double bytes

b

512-byte blocks

k

kilobytes

m

megabytes

g

gigabytes

t

terabytes

The usable space in the LUN is dependent on host or application overhead requirements. For example, partition tables and host file system metadata reduce usable space for applications. For information about the minimum and maximum sizes for LUNs, see the iSCSI host initiator documentation for your host.

The disk geometry used by the operating system determines the minimum and maximum values of LUNs. For example, Windows geometry is characterized by 63 sectors/track and 255 heads, which dictates a minimum LUN size of 31.5MB. For information about the maximum sizes for LUNs, see the iSCSI host initiator Support Kit documentation or the iSCSI Host Bus Adapter Attach Kit documentation for your host.

A brief description of the LUN (optional)

You use this attribute to store alphanumeric information about the LUN. You can edit this description at the command line or with FilerView.

A LUN identification number (LUN ID).

A LUN must have a unique LUN LUN ID so the host can identify and access the LUN. This is used to create the map between the LUN and the host.

A LUN identification number (LUN ID).

A LUN must have a unique LUN LUN ID so the host can identify and access the LUN. This is used to create the map between the LUN and the host.

Space reservation setting

When you create a LUN, the space reservation is turned on. NetApp recommends that you keep this setting on.

About igroups  Top

Initiator groups are tables of iSCSI node names of hosts that you use to control access to LUNs. Typically, you want one host to have access to a LUN. However, if you are using multipathing software, or have clustered hosts, you need to have redundant paths to the same LUN.

You can create igroups that specify which initiators have access to the LUNs either before or after you create LUNs, but you must create igroups before you can map a LUN to an igroup.

Initiator groups can have multiple initiators, and multiple igroups can have the same initiator.

What is required to create an igroup  Top

Whichever method you choose, you create an igroup by specifying the following attributes:

The name of the igroup

This is a case-sensitive name that meets the following requirements:

The name you assign to an igroup is independent of the name of the host that is used by the host operating system, host files, or DNS. If you name an igroup windows-1, for example, it is not mapped to the actual IP host name (DNS name) of the host.

Note
You might find it useful to provide meaningful names for igroups, ones that describe the hosts that can access the LUNs mapped to them.

The type of igroup

The type is -i for iSCSI if it contains iSCSI node names or -f for FCP if it contains WWPNs. An igroup can contain only one type of unique identifier of nodes, either iSCSI or FCP.

The ostype of the initiators

The ostype indicates the type of operating system used by all of the initiators in the igroup. All initiators in an igroup must be of the same ostype.

Not all versions of Data ONTAP support all ostypes. Neither protocol (iSCSI and FCP) supports all operating systems. For information about what is supported, see the FCP/iSCSI Configuration Guide or the release notes that came with your version of Data ONTAP.

iSCSI node names of the initiators

You can specify the iSCSI node names of the initiators when you create an igroup. You can also add them or remove them at a later time.

Example of creating an igroup  Top

Assume you have a Windows host whose name is Host1, and you installed the iSCSI initiator software on that host. You obtain the Windows' node name by going to the Start menu, choosing Settings > Control Panel > iSCSI Initiator, clicking on the Initiator Settings tab, and recording the node name from the "Change initiator node name" field.

You use the igroup create command or FilerView to create an igroup, giving it a name like windows-group1 and adding the node name of the initiator, Host1, to it.

What is required to map a LUN to an igroup  Top

Whichever method you choose, you map a LUN to an igroup by specifying the following attributes:

LUN name

You must specify the path name of the LUN to be mapped.

Initiator group

You must specify the name of the igroup that contains the host you want to give LUN access to.

LUN ID

You assign a number for the LUN ID or accept the default LUN ID. Typically, the default LUN ID begins with 0 and increments by 1 for each additional LUN as it is created. The range of valid LUN ID numbers are host-dependent. For example, the range for Windows is 0-254

For information about the ranges of values to use when assigning LUN IDs for your host, see the appropriate iSCSI host initiator Support Kit documentation for your host.

The host associates the LUN ID with the location and path name of the LUN.

When you map the LUN ID to the igroup, you grant the initiators in the igroup access to the LUN. If you do not map a LUN, the LUN is not accessible to any hosts. This effectively masks access to the LUN. Data ONTAP maintains a separate LUN map for each igroup to support a large number of hosts and to enforce access control.

Guidelines for mapping LUNs  Top

Use the following guidelines when mapping LUNs:

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