Learn how ONTAP presents block storage to a host by creating a LUN in a volume and mapping it to an initiator group. See how iSCSI IQNs and Fibre Channel WWPNs identify host connections, and why this process differs from SMB shares and file export policies.

Multiple Choice

How do you map a LUN to a host in NetApp ONTAP?

In ONTAP, presenting a LUN to a host happens through an initiator group. You create the LUN inside a volume, then map that LUN to an igroup that contains the host’s initiators (IQNs for iSCSI or WWPNs for FC). Once the LUN is associated with the igroup, the host in that group can see and access the LUN as a block device. The other options involve file-level access (SMB/Windows shares) or export policies for file services, not block LUN presentation, so they don’t apply to LUN mapping.

Mapping a LUN to a Host in NetApp ONTAP

A LUN can exist on a storage system without being visible to any server. To make it available, you need to connect it to the host that will use it. In NetApp ONTAP, that connection is made through an initiator group, or igroup. The LUN holds the block data; the igroup identifies which host initiators are allowed to reach it.

That distinction matters. A LUN isn’t presented like a shared folder, and creating one alone doesn’t grant a server access. You create the LUN inside a volume, add the host’s storage initiator to an igroup, then map the LUN to that igroup.

First, what does a LUN mapping do?

A LUN is a logical block device. To a connected server, it can look much like a locally attached disk, even though the data lives on a storage system and travels over a network.

The host connects to ONTAP using a SAN protocol:

  • iSCSI carries block traffic over an IP network. The host identifies itself with an iSCSI Qualified Name, or IQN.

  • Fibre Channel (FC) carries block traffic over a dedicated fabric. The host’s FC ports are identified by World Wide Port Names, or WWPNs.

  • Fibre Channel over Ethernet (FCoE) also uses WWPNs, though the network path differs.

An igroup stores the initiator identifiers for one or more hosts. When you map a LUN to that group, ONTAP grants those initiators access to the LUN. Think of the igroup as a guest list: the LUN is the room, and only listed initiators can get in.

The basic workflow

The details vary with the ONTAP version, SAN protocol, and host operating system, but the core steps are consistent:

  1. Confirm that the host can connect to the correct ONTAP storage virtual machine (SVM) using iSCSI or FC.

  2. Create a volume in the SVM to hold the LUN.

  3. Create the LUN in that volume, choosing a suitable size and operating-system type.

  4. Create an igroup, or use an existing group for the host.

  5. Add the host’s IQN or WWPN to the igroup.

  6. Map the LUN to the igroup, assigning a LUN ID.

  7. Configure host-side discovery and multipathing, then confirm that the device is visible.

The order is important. If the igroup contains the wrong initiator, the intended host may not see the LUN—or another host may receive access that it shouldn’t have. Check the host’s actual initiator details rather than relying on a label or an old inventory entry.

Create the storage container and LUN

ONTAP stores LUNs inside volumes. A volume belongs to an SVM, which provides the storage services and network access used by the host. Before creating a LUN, confirm that the SVM is set up for the intended SAN protocol and that the host has a working path to it.

When you create a LUN, choose a size that fits the workload, and select the appropriate host operating-system type where that setting is available. The setting can affect how ONTAP reports the LUN to the server. It isn’t a substitute for configuring the host correctly, but it helps the storage system present the device in a way suited to that environment.

The volume and LUN also need enough available capacity. Keep in mind that a LUN’s apparent size and the space consumed on the storage system aren’t always the same thing; thin provisioning, snapshots, and other storage features can affect how capacity is used. That makes ongoing capacity monitoring part of sound SAN management, not just a concern at the moment of creation.

Build an igroup around the host

An igroup is a collection of initiators. For iSCSI, add the host’s IQN. For Fibre Channel, add the WWPNs of its relevant FC ports. A host with multiple ports may have several initiator identifiers, especially when it connects through more than one path.

Give the group a clear name that makes its purpose easy to recognize. In a shared environment, a name such as app01_iscsi is more useful than igroup1. Naming won’t change access, of course, but it can make later troubleshooting far less painful.

For security and clarity, group initiators according to the access they should receive. A group may contain multiple hosts when they are meant to share access, but shared access needs to match the application and host configuration. Some workloads require clustered file systems or other coordination to let more than one server write safely. Mapping a LUN to several hosts does not, by itself, make shared writes safe.

Map the LUN—and keep the ID straight

Once the LUN and igroup exist, map the LUN to the igroup. The mapping associates that specific LUN with the initiators in the group. ONTAP also assigns a LUN ID, which the host uses to identify the LUN within its storage connections.

A simplified ONTAP CLI workflow might look like this:


lun create -vserver svm_san -path /vol/app_vol/app_lun -size 500g -ostype linux

igroup create -vserver svm_san -igroup app01_iscsi -protocol iscsi -ostype linux

igroup add -vserver svm_san -igroup app01_iscsi -initiator iqn.1993-08.org.example:app01

lun mapping create -vserver svm_san -path /vol/app_vol/app_lun -igroup app01_iscsi -lun-id 0

The sample values are placeholders, not a universal recipe. Command syntax and supported settings can differ across ONTAP releases, so use the documentation for the version in your environment. The same work can also be done through ONTAP System Manager, which offers a graphical way to create and manage LUNs, igroups, and mappings.

A LUN ID is a number, not the LUN’s size or its position in a volume. Make sure it doesn’t conflict with another mapping in a way that could confuse host-side management. Consistent ID assignment can also make a large environment easier to understand.

The host still has work to do

A mapping makes the LUN eligible for access; it doesn’t guarantee that the operating system will immediately display a new disk. The host may need to discover the target or rescan its storage adapters. On iSCSI systems, confirm that the host has established a session with the correct target. For FC, check that the fabric zoning and physical paths are in place.

For resilient storage access, configure multipathing on the host. Multipathing lets the server use more than one route to the storage, helping it stay connected if a path or component fails. A LUN may be mapped correctly yet appear unreliable if only one path is configured—or if the host sees multiple paths but lacks the appropriate multipathing software and settings.

After discovery, verify that the host sees the intended device and that the paths look healthy. Follow the operating system’s guidance before initializing, partitioning, or formatting a newly presented LUN. A storage mapping makes a block device available; it doesn’t decide what the host should do with the data already on that device.

Why SMB permissions and export policies aren’t the answer

ONTAP supports both block and file storage, but those access methods work differently. An SMB share exposes files and folders to clients, with permissions governing file-level access. An NFS export policy controls which clients can access exported file-system data.

Neither method maps a SAN LUN to a host. A LUN is block storage, and its host access is controlled through SAN connectivity and an igroup mapping. CIFS credentials likewise don’t grant a server access to a LUN. Mixing up these mechanisms is a little like trying to open a locked cabinet with a house key: both involve access, but they operate on different systems.

If the host can’t see the LUN

Start with the connection path rather than changing settings at random. Check that the LUN is mapped to the intended igroup, and confirm that the igroup contains the host’s current IQN or WWPN. Then verify that the SVM, SAN protocol, target discovery, and network or fabric configuration are all correct.

Also check the host. Has it rescanned its adapters? Are its iSCSI sessions active, or are the FC paths online? Does multipathing show the expected routes? Small mismatches—a mistyped IQN, an outdated WWPN, or a missing fabric zone—can prevent discovery even when the LUN itself looks fine in ONTAP.

The central idea is simple: create the LUN in an ONTAP volume, identify the host through an igroup, and map the LUN to that group. The surrounding details—protocol, paths, host settings, and capacity—make that connection reliable. When each layer is checked in turn, LUN presentation becomes much easier to manage and troubleshoot.