1 DISKINFO(1M) Maintenance Commands DISKINFO(1M) 2 3 NAME 4 diskinfo - provide disk device inventory and status 5 6 SYNOPSIS 7 diskinfo [-aHp] [-c|-P] 8 9 DESCRIPTION 10 The diskinfo tool provides information about the disk devices in the 11 system. Because it interacts with the kernel's device management 12 subsystem, this tool can be used only from the global zone. If run in 13 any other zone, its output will be incomplete and unreliable. 14 15 There are three main modes. The default mode, when neither the -c nor -P 16 option is specified, provides a basic inventory of the disk devices in 17 the system. Each line describes a single device and contains the 18 device's attachment bus or fabric type, the base name of the device in 19 the /dev/dsk directory, the disk's vendor and product identification 20 strings, the size (storage capacity) of the device, whether the device is 21 removable, and whether it is solid-state. 22 23 The -P option selects physical mode. In this mode, each line of output 24 likewise describes one disk device; however, the fields provided indicate 25 the base name of the device in the /dev/dsk directory, the disk's vendor 26 and product identification strings, the serial number of the device, 27 whether the device is faulty as diagnosed by fmd(1M), whether the locate 28 or identification indicator is on for the device (if one is present), and 29 the chassis and bay number containing the disk if known. 30 31 The -c option selects compact mode. This mode provides all of the 32 information provided by both the default mode and physical mode in a 33 compact format. 34 35 See OUTPUT FIELDS below for a detailed description of each column. 36 37 OPTIONS 38 -a Show all disk bays, including those don't have disks installed. 39 40 -c Select compact mode output. At most one of -c and -P may be 41 present on the command line. 42 43 -H Do not print a header. This provides output suitable for passing 44 into text processing tools. 45 46 -P Select physical mode output. At most one of -P and -c may be 47 present on the command line. 48 49 -p Parsable output. When -p is selected, the size (storage 50 capacity) is output in bytes instead of in human-readable units, 51 and the device's location (if known) is provided as a comma- 52 separated chassis and bay number instead of a human-readable 53 location. This option may be used in any output mode and is 54 intended for use by scripts or other robotic tooling. 55 56 OUTPUT FIELDS 57 DISK The base name of the device node within the /dev/dsk directory. 58 The names of partitions and/or slices, if any, are derived from 59 this name as described by prtvtoc(1M). 60 61 This field is available in all output modes. 62 63 FLRS A condensed field incorporating the same information as the 64 FLT, LOC, RMV, and SSD fields. Each field is condensed to a 65 single character. If the field is true, the first letter of 66 the field name will appear in its position in the string; 67 otherwise, the "-" character will appear instead. 68 69 This field is available only in compact output mode. 70 71 FLT A boolean field indicating whether the device is faulty; 72 specifically, whether the fault indicator (if one is present) 73 is active. 74 75 This field is available only in physical output mode. 76 77 LOC A boolean field indicating whether the locate or identify 78 indicator, if any, associated with the device's bay, is active. 79 80 This field is available only in physical output mode. 81 82 LOCATION The physical chassis and bay name (or chassis and bay numbers, 83 if -p is given) in which the device is located. The chassis 84 number is identified in human-readable output within [square 85 brackets]; chassis 0 is the host chassis itself. The bay name, 86 if any, is provided by the enclosure, typically via a SCSI 87 Enclosure Services processor. 88 89 This field is available in compact and physical output modes. 90 91 PID The product identification string reported by the device. 92 93 This field is available in all output modes. 94 95 RMV A boolean field indicating whether the device is removable. 96 USB storage devices, most optical drives and changers, and 97 certain other devices that report themselves as removable will 98 be identified as such. 99 100 This field is available only in default output mode. 101 102 SERIAL The serial number of the device. The entire serial number is 103 reported if the device and its drivers provide it. 104 105 This field is available in compact and physical output modes. 106 107 SIZE The device's storage capacity. If the -p option is given, this 108 is reported in bytes; otherwise, it is reported in a human- 109 readable format with units specified. All units are based on 110 powers of 2 and are expressed in SI standard notation. 111 112 This field is available in compact and default output modes. 113 114 SSD A boolean field indicating whether the device is solid-state. 115 116 This field is available only in default output mode. 117 118 TYPE The transport (fabric or bus) type by which the storage device 119 is attached to the host, if known. Typical transports include 120 SCSI and USB. 121 122 This field is available in compact and default output modes. 123 124 VID The vendor identification string reported by the device. 125 126 This field is available in all output modes. 127 128 SEE ALSO 129 fmd(1M), prtvtoc(1M), sd(7D) 130 131 illumos October 6, 2017 illumos