You can perform the following tasks to manage LUNs.
To support a large number of hosts and to enforce access control, Data ONTAP maintains a separate map for each initiator group. This map controls which LUN is accessible to a given initiator group at a given LUN ID.
After you create a LUN, you must map it to the specific initiator group for it to be accessible to the hosts in that initiator group. Use the following guidelines when mapping LUNs:
Using the lun map command automatically brings a LUN online. The lun online and lun offline commands enable and e block protocol accesses while preserving mappings.
The LUN ID is mapped to the initiators (hosts) in the initiator group. You can specify a LUN ID or you can use the number automatically assigned by Data ONTAP, which begins with 0 and increments by 1 every time a new LUN ID needs to be assigned. Network Appliance recommends that you allow Data ONTAP to automatically assign LUN IDs.
To allow Data ONTAP to map a LUN to an initiator group at an automatically assigned LUN ID, complete the following step.
| 1 |
lun map lun-path igroup LUN_ID Examplelun map /vol/vol1/qtree1/lun3 solhost2 ResultData ONTAP maps lun3 to the initiator group solhost2 at the first available LUN ID, in this case LUN ID 0. |
To remove the mapping of a LUN from an initiator group, complete the following steps.
| 1 |
lun offline lun-path Example |
| 2 |
lun unmap lun-path igroup LUN_ID Example |
To bring one or more LUNs online, complete the following step.
| 1 |
lun online lun-path [lun-path ...] Example |
Taking a LUN offline makes it unavailable for block protocol access; however, you can write to an offline LUN using NAS protocols. To take a LUN offline, complete the following step.
| 1 |
lun offline lun-path [lun-path ...] Example |
To remove one or more LUNs, complete the following step.
When you create a LUN, it can only be accessed with SAN protocols by default. However, you can make a LUN available to a host using NAS protocols if NAS protocols are licensed and enabled on the filer. The usefulness of accessing a LUN over NAS protocols is host application-dependent.
Note
A LUN cannot be extended or truncated using NFS or CIFS protocols.
If you want to write to a LUN over NAS protocols, you must take the LUN offline or unmap it to prevent overwriting data in the LUN using the SAN protocol. To make a LUN accessible to a host using a NAS protocol, complete the following step.
Copyright © 1994-2003, Network Appliance, Inc. All rights
reserved.
Part No. 210-00338
File: c3lunmg2.htm
Last updated: 01/17/03 17:40:33