This is a very useful tool I've been using for many years. Here is an article from ORACLE, I'd like to share it here with you http://docs.oracle.com/cd/E19432-01/820-1120-22/chapter2.html This chapter describes how to use the hd utility, also known as hdtool, on the Solaris OS. The hd utility is a hard disk drive mapping tool used to determine the logical-to-physical device mapping on Sun Fire X4500 and X4540 servers. This chapter includes the following sections: For additional commands, see the following man pages for additional commands: format(1M), cfgadm(1M), devfsadm(1M), and fdisk(1M). Installing the hd UtilityYou can install the utility from the Tools and Drivers CD, if available. The hd utility is also available on the server product download page and resides in the Tools and Drivers CD in the /solaris/tools/hdtool/ directory You can install the utility from the Tools and Drivers CD, if available, or from your product Tools and Drivers CD image, downloadable from the product web page.
where x.xx is the version number of SUNWhd. To remove the SUNWhd package, type: Once you have downloaded hd, from a command line, go to its directory: You can find more information on the hd utility in the HTML man pages at: Identifying the Hard Disk DrivesYou use the utility to get a logical-to-physical mapping of the devices. This mapping can help you to administer the system, manage the hard drives, and troubleshoot the server. The hd utility output enables you to locate all the drives visually based on the physical topology of the drives by providing a color-coded hard drive location map. The hd utility provides the following functions: The hd utility maps the disk drives then produces output that can also help you to identify empty slots and drives that have not been enumerated. FIGURE 2-1 displays a map of the Sun Fire X4500 server and the 48 internal SATA disk drives it supports. ![]() The Sun Fire X4500 server comes with six controllers, each supporting up to eight SATA drives, for a total of 48 SATA drives. Before you reinstall the Solaris OS, you need to determine the logical device name that corresponds to the two bootable drives, which is in the form:
Determining the Boot DriveTo determine the bootable drive, use the command cfgadm. The cfgadm command provides configuration administration operations on dynamically reconfigurable hardware resources. For more information on this command, see the man page. Determining Empty Slots and Unrecognized DrivesThe hd utility works with Solaris disk maintenance and configuration administration commands like format and cfgadm. The hd output can also help you with identifying empty slots and drives that have not been recognized by the Solaris operating system. Viewing the Hard Disk Drive MapThe utility probes and displays all of the available drives in the system with their logical device name. Here is sample output from the hd utility for the Sun Fire X4500 server:
Viewing the ControllersThe following command displays the disk controller number and the corresponding PCI device nodes. This is useful in determining the HBA controller number based on the PCI device node from syslog messages.
Viewing Vendor and Temperatures of DrivesHere is sample output from the hd utility for the Sun Fire X4540 server. It includes a list of drives, vendor, and the temperature and is followed by a mapping table.
Using the hd Command for Troubleshootinghd utility makes a distinction between controllers, slots, and storage devices that are physically present in the machine and visible to Solaris. The hd command provides configuration and status information about the server’s drives and has several options. Some of the options include displaying color mode (-c), summary (-s), diagnose (-d), identifying platform type (-p), and obtaining configuration and status help messages (-h). For more information and options, refer to the hd man page. Viewing Hard Drive StatusUse the hd command to determine the status of a drive by mapping the drive location. For the command options, enter the following: TABLE 2-1 lists the hd options. Using the hd Command for AdministrationThe following hd commands enable you to view information on the systems hard drives. Viewing Devices in Color ModeThe following command starts the utility in color mode and summarizes all the storage devices in the system. Here is an example of output listing a summary of all disks:
Viewing the x64 Platform TypeThe following command displays the x64 platform type:
Viewing the PCI Storage Device PathThe following command displays the cXtY device name from the Solaris PCI storage device path:
Viewing Drive Warning MessagesThe following command displays drive warning messages:
Viewing the fdisk PartitionThe following command displays the fdisk partition for each cXtY device name with a summary:
Here is an example of output listing the fdisk partition for each cXtY device name:
Here is an example of output from ht Utility of an fdisk partition listing:
Viewing the Disks in Sequential Order (Sun Fire X4500/X4540 Servers Only)The following command displays the drive’s physical slot number, logical name, and status (present or absent).
Viewing SMART Raw Data CountThe following command displays the raw data count for the Self-Monitoring, Analysis and Reporting Technology (SMART) data. This is useful in checking the raw data count for a specific drive: # hd -e c5t0 Revision: 16 Offline status 130 Selftest status 0 Seconds to collect 4797 Time in minutes to run short selftest 1 Time in minutes to run extended selftest 80 Offline capability 91 SMART capability 3 Error logging capability 1 Checksum 0x0b Identification Status Current Worst Raw data 1 Raw read error rate 0xb 100 100 1 2 Throughput performance 0x5 129 129 359 3 Spin up time 0x7 120 120 21493907745 4 Start/Stop count 0x12 100 100 342 5 Reallocated sector count 0x33 100 100 0 7 Seek error rate 0xb 100 100 0 8 Seek time performance 0x5 142 142 28 9 Power on hours count 0x12 99 99 9339 10 Spin retry count 0x13 100 100 0 12 Device power cycle count 0x32 100 100 342 192 Power off retract count 0x32 100 100 512 193 Load cycle count 0x12 100 100 512 194 Temperature 0x2 148 148 37/ 24/ 39 (degrees C cur/min/max) 196 Reallocation event count 0x32 100 100 0 197 Current pending sector count 0x22 100 100 0 198 Scan uncorrected sector count 0x8 100 100 0 199 Ultra DMA CRC error count 0xa 200 253 0 |
Storage > Storage-disk >