Table of ContentsLibraryView in Frames

The disk connect command

The disk connect command connects a LUN to a host by mapping the LUN to a Windows drive letter.

Syntax for this command is:

sdcli disk connect [-m MachineName] -p LUNpath -d MountPoint [-I NodeMachineName InitiatorName ...] | [-IG NodeMachineName GroupName ...] -dtype {shared | dedicated} -ds "datastore name" {[-e “ResourceGroupName”] | [-n “ResourceGroupName” “ResourceGroupDesc”] | [-csv]} [-c “ClusterName”] -port PortName -passthrough

-ds enables you to specify the name of a VMFS datastore on which to store the VMDK file if you are creating a LUN on an ESX server guest OS. When the -ds option is not specified, the VMDK file is stored by default on the same VMFS datastore as the virtual machine. If the virtual machine resides on an NFS datastore, you must specify a VMFS datastore for the VMDK file.

-csv enables you to add a shared disk to a cluster shared volume.

-passthrough enables you to dynamically connect a pass-through disk. This option is only applicable when a Hyper-V virtual machine is present.

Examples

sdcli disk connect -d s -dtype shared -p storage2:/vol/sd_vds_only/mktng.lun -I host3 10:00:00:00:C9:2B:FD:1B host3 10:00:00:00:C9:2B:FD:1C host4 10:00:00:00:C9:2B:FD:12 host4 10:00:00:00:C9:2B:FD:11 -e “tech_mktng” -c “mktng”

The preceding example connects a LUN in the storage2 volume sd_vds_only and named mktng.lun, which belongs to the MSCS cluster resource group tech_mktng on the mktng cluster.

sdcli disk connect -d T –p rlabf6:/vol/vol1_nfs/a -z 65MB -IG vmware229 igroup_fcp -dtype dedicated –ds “big guy”

The preceding example connects an RDM LUN on the NFS volume named vol1_nfs. The VMFS datastore named "big guy" is specified to store the VMDK file.

sdcli disk connect -p ab-270-2:/vol/sdw_vol1/csvLun12 -I CLAB-A9-8 iqn.1991-05.com.microsoft:clab-a9-8.sddev.netapp.com CLAB-A9-7 iqn.1991-05.com.microsoft:clab-a9-7.sddev.netapp.com -dtype shared -csv

The preceding example connects a CSV LUN called csvLun12 as a shared disk to the cluster.