Skip to content

Instantly share code, notes, and snippets.

@mvanvuuren
Last active September 18, 2015 10:20
Show Gist options
  • Save mvanvuuren/22a2d98b1262944b0a2b to your computer and use it in GitHub Desktop.
Save mvanvuuren/22a2d98b1262944b0a2b to your computer and use it in GitHub Desktop.
Solaris 10 fc command examples
Solaris 10 fc command examples
To see info on all fc ports:
fcinfo hba-port -l
To see port status:
luxadm -e port
Show link errors:
luxadm -e rdls /dev/cfg/c3
Examine and individual path:
luxadm disp /dev/rdsk/c2t500601603022431Ed0s2
Run an inquiry on a disk:
luxadm inq /dev/rdsk/c2t500601603022431Ed0s2
Display info on scsi devices:
cfgadm -al
Sun Multipather examples
Shows the fc ports:
mpathadm list initiator-port
Check for support:
mpathadm list mpath-support
In much more detail, this command show's what types of drives are supported by libmpscsi_vhci.so
mpathadm show mpath-support libmpscsi_vhci.so
mpathadm show initiator-port iqn.1986-03.com.sun:01:00144faac76a.47d3e777,4000002a00ff
To see how many "logical units" are visible:
mpathadm show lu /dev/rdsk/c4t60060160D33A1500566B929242EEDC11d0s2
o see the details ( the paths that make up ) a logical unit
mpathadm show lu /dev/rdsk/c4t60060160D33A1500566B929242EEDC11d0s2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment