Go to main content

Managing Devices in Oracle® Solaris 11.3

Exit Print View

Updated: April 2018
 
 

Commonly Used Commands for Administering Storage Devices

This appendix includes commonly used commands for administering storage devices such as USB devices and iSCSI targets. For more information, see the cfgadm(1M), dladm(1M), itadm(1M), and iscsiadm(1M) man pages.

Table 18  Commonly Used Commands for Administering Storage Devices
Action
Command
Display all the current configurable hardware information, including those represented by dynamic attachment points.
# cfgadm -al
Display the list of IB communication services currently used by the InfiniBand Transport Framework (IBTF).
# cfgadm -x list_services ib
Identify the faulty device.
# fmadm faulty
Add a SCSI device to a SCSI bus on SPARC.
# cfgadm -x insert_device controller
Remove a SCSI device on SPARC.
# cfgadm -x remove_device device
Display specific PCI slot configuration information.
# cfgadm -s "cols=ap_id:type:info" pci
Display specific PCIe slot configuration information.
# cfgadm -s "cols=ap_id:busy:o_state" pci
Configure an IB port devices.
# cfgadm -c configure IB-port-Ap-Id
# cfgadm -a IB-port-Ap-Id
Create an IB partition link.
# dladm create-part -l link -P key partition
Display an IB partition link information.
# dladm show-part
Plumb and assign an IP address to an IB partition link.
# ipadm create-ip name
# ipadm create-addr -a address [address-object]
Remove an IB partition link.
# dladm delete-part partition
Create an EoIB (Ethernet over InfiniBand) datalink.
# dladm create-eoib -l link \
-g gway -c gway-port eoib-link
Display EoIB datalink information.
# dladm show-link [eoib-link]
Remove an EoIB datalink.
# dladm delete-eoib link
Display the use of disk space on ZFS file systems.
# zpool list root-pool
Display disk label information.
# prtvtoc path/device-name
List the files that have not been accessed for a specified number of days to an output file.
# find directory -type f[-atime +nnn] [-mtime +nnn] \ 
-print > output-file &
Back up and restore a COMSTAR configuration.
# svccfg export -a stmf > COMSTAR.backup
# svccfg import COMSTAR.backup
Enable iSNS discovery for the target device.
target# itadm modify-defaults --isns-server \ 
iSNS-server-ip-address
target# itadm modify-defaults --isns enable
Restrict logical unit access to selected systems.
target# stmfadm create-hg host-a
target# stmfadm add-hg-member -g host-a  wwn.node-WWN \ 
wwwn.node-WWN
target# stmfadm create-tg targets-0
target# stmfadm add-tg-member -g targets-0 wwn.guid-number
Make the LU accessible by the system.
target# stmfadm add-view -h host-a -t targets-0 -n 1 guid-number
Add the client to the discovery domain.
# isnsadm add-node -d domain-name iSCSI-name
Display tape drive status.
# mt -f /dev/rmt/drive-number status
Creating file systems on USB storage devices.
# mkfs -F  FS-type -o FS-type-specific-options raw-device-file