When you create a LUN, it can be accessed only with the iSCSI or FCP protocol by default. However, you can use NAS protocols to make a LUN available to a host if the NAS protocols are licensed and enabled on the storage system. The usefulness of accessing a LUN over NAS protocols depends on the host application.
Considerations
If you want to write to a LUN using a NAS protocol, you must take the LUN offline or unmap it to prevent an iSCSI or FCP host from overwriting data in the LUN.
Note: A LUN cannot be extended or truncated using NFS or CIFS protocols.
Steps
-
Determine whether you want to read, write, or do both to the LUN over the NAS protocol and take the appropriate action:
- If you want read access, the LUN can remain online.
- If you want write access, ensure that the LUN is offline or unmapped.
-
Enter the following command: lun share lun_path {none|read|write|all}
Example
lun share /vol/vol1/qtree1/lun2 read
The LUN is now readable over NAS.