Skip to main content

Creating a new SVM

The storage virtual machine (SVM) provides the FC target through which a host accesses LUNs. When you create the SVM , you also create logical interfaces (LIFs) and the LUN and its containing volume . You can create an SVM to separate the data and administration functions of a user from those of the other users in a cluster.

About this task

If you do not have at least one SVM in a cluster to provide data access to clients, you must create one.
  1. Connect IP-address-of-cluster-management-LIF in an ssh session and log in using your cluster administrator credential.
  2. Run the vserver create command to create an SVM.

    The following example creates an SVM named vs0, its root volume is named vs0_root and is located on aggregate aggr0_node1, and the language is U.S. English.

    DM-cluster::> vserver create -vserver vs0 -aggregate aggr0_node1 -subtype default -rootvolume vs0_root -rootvolume-security-style mixed -language en_US.UTF-8
  3. Run the vserver fcp create command to create an FCP service on the SVM.

    The following example creates an FCP service on SVM vs0.

    DM-cluster::> vserver fcp create -vserver vs0
  4. Run the volume create command to create a volume on the SVM and storage aggregate.

    The following example creates a new volume named vol0 on an SVM named vs0 and a storage aggregate named aggr0_node1. Upon its creation, the volume is placed in the online state. The volume is 50 GB in size and the create operation runs in the background.

    DM-cluster::> volume create -vserver vs0 -volume vol0 -aggregate aggr0_node1 -size 50G -state online
  5. Run the lun create command to create a new LUN of a specific size. When you create a LUN, you must specify the LUN OS type.

    The following example creates a new LUN named lun0 with a size of 20 GB and OS type of Windows.

    DM-cluster::> lun create -vserver vs0 -volume vol0 -lun lun0 -size 20GB -ostype windows
  6. Run the igroup create command to create an initiator group (igroup). You can use igroups to control which hosts can access specific LUNs.

    The following example creates an FCP igroup called igroup0 that contains the node name of the Windows host associated with that node name.

    DM-cluster::> igroup create -vserver vs0 -igroup igroup0 -protocol fcp -ostype windows -initiator 20:00:00:0d:ec:b4:94:3f
  7. Run the network interface create command to create network logical interfaces (LIFs) for the SVM. An SVM serves data to clients through one or more LIFs. You must create LIFs on the ports you want to use to access data.

    The following example creates an LIF named vs0_data_fcp_lif_1 on an SVM named vs0. Their home node is DM-cluster-01 and home port is 0e.

    DM-cluster::> network interface create -vserver vs0 -lif vs0_data_fcp_lif_1 data -data-protocol fcp -home-node DM-cluster-01 -home-port 0e
    Note
    You should create at least one LIF for each node in all SVMs serving data with FC protocol.
  8. Run the lun map command to map your LUNs to the igroups.

    The following example maps LUN lun0 on SVM vs0 to igroup igroup0.

    DM-cluster::> lun map -vserver vs0 -volume vol0 -lun lun0 -igroup igroup0
    You can run the lun show command to display the LUN setting.