lun portset create
Creates a new portset
Description
This command creates a new portset for FCP and iSCSI. The portset name can include a maximum of 96 characters. You can add LIFs to the new portset. If you do not add a LIF to the portset, you create an empty portset. To add LIFs to an existing portset, use the lun portset add command.
After you create a portset, you must bind the portset to an igroup so the host knows which FC or iSCSI LIFs to access. If you do not bind an igroup to a portset, and you map a LUN to an igroup, then the initiators in the igroup can access the LUN on any LIF on the Vserver.
Parameters
- -vserver <Vserver Name> - Vserver Name
- Specifies the Vserver.
- -portset <text> - Portset Name
- Specifies the name of the new portset. A portset 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 portset.
- | [-iscsi | -i [true]]} - iSCSI
- Specifies iSCSI as the protocol type of the new portset.
Examples
cluster1::> portset create -vserver vs1 -portset ps1 -protocol mixed
Creates a portset ps1 on Vserver vs1 with the protocol type of mixed.
cluster1::> portset create -vserver vs1 -portset iscsips -protocol iscsi
Creates a portset iscsips on Vserver vs1 with the protocol type of iscsi.
cluster1::> portset create -vserver vs1 -portset fcppc -protocol fcp
Creates a portset fcppc on Vserver vs1 with the protocol type of fcp.
cluster1::> portset create -vserver vs1 -portset ps2 -protocol mixed -port-name l11