lun portset create

Creates a new portset

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

This command creates a new port set for FCP and iSCSI. The port set name can include a maximum of 96 characters. You can add LIFs to the new port set. If you do not add a LIF to the port set, you create an empty port set. To add LIFs to an existing port set, use the lun portset add command.

After you create a port set, you must bind the port set to an igroup so the host knows which FC or iSCSI LIFs to access. If you do not bind an igroup to a port set, and you map a LUN to an igroup, then the initiators in the igroup can access the LUN on any LIF on the Vserver.

Note: You cannot bind an igroup to an empty port set because the initiators in the igroup would have no LIFs to access the LUN.

Parameters

-vserver <Vserver Name> - Vserver Name
Specifies the Vserver.
-portset <text> - Portset Name
Specifies the name of the new port set. A port set name is a case-sensitive name that must contain one to 96 characters. Spaces are not allowed.
[-port-name <port_name>, ...] - LIF Or TPG Name
Specifies the name of the logical interface that you want to add to the portset you want to create.
{ [-protocol {mixed|fcp|iscsi}] - Protocol
Specifies if the portset protocol type is fcp, iscsi, or mixed. The default is mixed.
| [-fcp | -f [true]] - FCP
Specifies FCP as the protocol type of the new port set.
| [-iscsi | -i [true]]} - iSCSI
Specifies iSCSI as the protocol type of the new port set.

Examples

cluster1::> portset create -vserver vs1 -portset ps1 -protocol mixed

Creates a port set ps1 on Vserver vs1 with the protocol type of mixed.

cluster1::> portset create -vserver vs1 -portset iscsips -protocol iscsi

Creates a port set iscsips on Vserver vs1 with the protocol type of iscsi.

cluster1::> portset create -vserver vs1 -portset fcppc -protocol fcp

Creates a port set fcppc on Vserver vs1 with the protocol type of fcp.

cluster1::> portset create -vserver vs1 -portset ps2 -protocol mixed -port-name l11