Go to main content

Managing SAN Devices and Multipathing in Oracle® Solaris 11.3

Exit Print View

Updated: March 2018

Commonly Used I/O Multipathing and Storage Device Administration Commands

This appendix includes commonly used commands to manage Fibre Channel devices, iSCSI initiator, and I/O multipathing. For more information, see the mpathadm(1M), dladm(1M), itadm(1M), and iscsiadm(1M) man pages.

Table 4  Commonly Used I/O Multipathing and Storage Device Administration Commands
Managing Oracle Solaris I/O Multipathing
Display all the logical units (LU) on a SAN.
# mpathadm list lu
Create an LU.
target# zpool create sanpool mirror vol1 vol2
target# zfs create -V size-volume zfs-volume
target# stmfadm create-lu dev/zvol/rdsk/pool-name
Display the created LU.
target# stmfadm list-lu
Enable the LU to be accessible by all systems.
target# stmfadm add-view LU-name
Verify the LU configuration.
target# stmfadm list-view -l LU-name
Display all the LUs associated with a specific target.
# mpathadm list lu -t target-port-name
Display all the initiator ports in the system.
# mpathadm list initiator-port
Display the properties of a specific initiator port.
# mpathadm show initiator-port initiator-port-name
Identify the multipathing support on your system.
# mpathadm list mpath-support
Disable a specific LU path.
# mpathadm disable path -i initiator-port-name -t \
 target-port-name -l logical-unit-name
Enable a specific LU path.
# mpathadm enable path -i initiator-port-name -t \
 target-port-name -l logical-unit-name
Administering Fibre Channel Devices
Display information of the host bus adapter (HBA) ports and their statistics.
# fcinfo hba-port -l
Display all the remote ports on all the HBAs.
# fcinfo remote-port
Display all the remote ports on a physical port and their link statistics.
# fcinfo remote-port -ls -p PWWN
Display the status of LUNs of the Fibre Channel devices.
# cfgadm -al -o show_SCSI_LUN
Remove an unusable LUN from the host configuration.
# cfgadm -c unconfigure -o unusable_SCSI_LUN Ap-Id
Remove a Fibre Channel target port.
# cfgadm -c unconfigure Ap-Id
Create a virtual Fibre Channel port (NPIV).
# fcadm create-npiv-port -p virtual-port-WWN \
-n virtual-node-WWN physical-port-PWWN
Delete an NPIV port.
# fcadm delete-npiv-port -p virtual-port-WWN \ 
-n virtual-node-WWN physical-port-PWWN
Create a Fibre Channel over Ethernet (FCoE) target port on a specified network interface.
# fcadm create-fcoe-port -i -p port-WWN \ 
-n node-WWN Ethernet-interface
Delete FCoE target ports.
# fcadm delete-fcoe-port network-interface
Administering iSCSI Devices
Create an iSCSI target.
target# svcadm enable -r svc:/network/iscsi/target:default
target# itadm create-target
Configure the Internet Storage Name Service (iSNS) target discovery method.
initiator# svcs network/iscsi/initiator
initiator# iscsiadm add isns-server iSNS-IP-address
initiator# iscsiadm list isns-server
initiator# iscsiadm modify discovery --iSNS enable
Configure an iSCSI initiator with static configuration.
initiator# iscsiadm add static-config target-name,\
Remove an iSCSI iSNS discovery entry.
initiator# iscsiadm remove isns-server iSNS-IP-address:3205
Display the current parameter values of a specific iSCSI initiator.
initiator# iscsiadm list initiator-node
Display the current parameter values of a specific iSCSI target.
initiator# iscsiadm list target-param target-name
Display information about the discovery method in use.
initiator# iscsiadm list discovery