Table of ContentsLibraryView in Frames

The disk create command

The disk create command creates a new LUN.

Syntax for this command is:

sdcli disk create [-m MachineName] -d MountPoint -p LUNpath -z DriveSize [-rs Reserve Snapshot Space y | n] [-I NodeMachineName InitiatorName +] | [-IG NodeMachineName GroupName +] -dtype {shared | dedicated} [-ds "datastore name" {[-e “ResourceGroupName”] | [-n “ResourceGroupName” “ResourceGroupDesc”] | [-csv ]} -port "PortNumber" -passthrough

-rs enables you to limit the maximum disk space of the LUN you are creating to allow for at least one Snapshot copy on the volume.

-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.

-e enables you to specify the name of an existing resource group.

-n enables you to specify the name of a new resource group.

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

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

Examples

sdcli disk create -dtype dedicated -z 1024 -p storage2:/vol/sd_vds_only/mktng.lun -d R -I host3 10:00:00:00:C9:2B:FD:12

The preceding example creates a dedicated, 1-GB LUN named mktng.lun in the storage2 volume named sd_vds_only. Next, it connects this LUN to the host as drive R:.

sdcli disk create -p \\133.25.61.62\sd_vds_only\mktng.lun -d r -z 4096 -dtype shared -e “mktng” -I host4 10:00:00:00:C9:2B:FD:12 host4 10:00:00:00:C9:2B:FD:11 host5 10:00:00:00:C9:2B:FC:12 host5 10:00:00:00:C9:2B:FC:11

The preceding example creates a shared, 4-GB LUN on host4 (the local machine running the sdcli command) and maps it to drive R:, using a pair of initiators.

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

The preceding example creates a 65-MB RDM LUN in the NFS volume named vol1_nfs, and maps the LUN to drive T. The VMFS datastore named "big guy" is specified to store the VMDK file.