Table of ContentsLibraryView in Frames

Connect-Storage

This command connects an existing Data ONTAP LUN on a storage system to a specified host system or server.

CLI

Connect-Storage [ -Server Server_name ] [ -StoragePath Storage_path_name ] [ -MountPoint LUN_mountpoint ] [ -InitiatorName Initiator_name ]

Privilege level

Admin

Availability

Operational mode

Description

This command enables you to connect an existing Data ONTAP LUN on a storage system to a specified host system or server. If this LUN was never initialized on the Windows Host and no file system was created on it, this commandlet fails.

Parameters

-Server | -s Server_name
Specifies the name of the host server from which to connect storage. The default is the local machine.
-StoragePath | -path Storage_path_name
Specifies the full LUN path, including LUN name, volume name, and storage system name.
-MountPoint | -mount LUN_mountpoint
Specifies the LUN mountpoint. The default is the volume GUID. You can use a drive letter or a drive letter and directory as a mountpoint. If you use a drive letter and directory, the drive letter must already exist.
-InitiatorName | -i Initiator_name
Specifies the name of the initiator or initiators to which the LUN is mapped. If you do not specify an initiator, the first available iSCSI initiator with an established session is used. After that, the FC initiator name is used.

If you use FC, the initiator name is the WWPN. You must also zone the initiator port properly with the target port from the storage system.

If you use iSCSI, the initiator name is the IQN. You must establish at least one session between the initiator port from the host system to the target port on the storage system before mapping the LUN.

Example

The following command connects server1 to the LUN using the path /vol/vol2/lun2 on storagesystemA. It then mounts the disk on mountpoint M using the first available iSCSI session.

Connect-Storage -Server server1 -StoragePath storagesystemA:/vol/vol1/lun1 -Mountpoint M:\