DISKINFO(8) | Maintenance Commands and Procedures | DISKINFO(8) |
diskinfo
— provide
disk device inventory and status
diskinfo |
[-Hp ]
[-c |-P ] |
The diskinfo tool provides information about the disk devices in the system. Because it interacts with the kernel's device management subsystem, this tool can be used only from the global zone. If run in any other zone, its output will be incomplete and unreliable.
There are three main modes. The default mode, when neither the
-c
nor -P
option is
specified, provides a basic inventory of the disk devices in the system.
Each line describes a single device and contains the device's attachment bus
or fabric type, the base name of the device in the
/dev/dsk directory, the disk's vendor and product
identification strings, the size (storage capacity) of the device, whether
the device is removable, and whether it is solid-state.
The -P
option selects physical mode. In
this mode, each line of output likewise describes one disk device; however,
the fields provided indicate the base name of the device in the
/dev/dsk directory, the disk's vendor and product
identification strings, the serial number of the device, whether the device
is faulty as diagnosed by fmd(8), whether
the locate or identification indicator is on for the device (if one is
present), and the chassis and bay number containing the disk if known.
The -c
option selects compact mode. This
mode provides all of the information provided by both the default mode and
physical mode in a compact format.
See OUTPUT FIELDS below for a detailed description of each column.
-c
-c
and
-P
may be present on the command line.-H
-P
-P
and
-c
may be present on the command line.-p
-p
is selected, the size
(storage capacity) is output in bytes instead of in human-readable units,
and the device's location (if known) is provided as a comma-separated
chassis and bay number instead of a human-readable location. This option
may be used in any output mode and is intended for use by scripts or other
robotic tooling.This field is available in all output modes.
This field is available only in compact output mode.
This field is available only in physical output mode.
This field is available only in physical output mode.
-p
is given) in which the device is located. The
chassis number is identified in human-readable output within [square
brackets]; chassis 0 is the host chassis itself. The bay name, if any, is
provided by the enclosure, typically via a SCSI Enclosure Services
processor.
This field is available in compact and physical output modes.
This field is available in all output modes.
This field is available only in default output mode.
This field is available in compact and physical output modes.
-p
option is
given, this is reported in bytes; otherwise, it is reported in a
human-readable format with units specified. All units are based on powers
of 2 and are expressed in SI standard notation.
This field is available in compact and default output modes.
This field is available only in default output mode.
This field is available in compact and default output modes.
This field is available in all output modes.
July 20, 2016 | OmniOS |