How to check physical disk location on Solaris 10 X86 x4500/x4540 HWs ?

In this article I am going to show you the usage of SUNWhd tool to get the disk status. This is inbuilt tool which is available on X4500/X4540 HWs. I have used this on X4540 HW.

Step 1 : Went to below path to issue the commands.
bash-3.2# pwd
/opt/SUNWhd/hd/bin

bash-3.2# ls
hd hd.html hdadm hdadm.html read_cache write_cache

Step 2 : Issue command to check the location of failed disk.

bash-3.2# /opt/SUNWhd/hd/bin/hd -c

platform = Sun Fire X4540

ScsiIo failed, Check Condition, Key = 2, ASC/ASCQ = 4Ch/00h

Device Serial Vendor Model Rev Temperature
—— —— —— —– —- ———–
c0t1d0p0 5QE5T3L8 ATA SEAGATE ST32500N 3AZQ 34 C (93 F)
c0t6d0p0 5QE5T4HH ATA SEAGATE ST32500N 3AZQ 35 C (95 F)
c5t3d0p0 5QE5T4SN ATA SEAGATE ST32500N 3AZQ 35 C (95 F)
c5t4d0p0 5QE5T4ML ATA SEAGATE ST32500N 3AZQ 31 C (87 F)
c2t0d0p0 5QE5T52S ATA SEAGATE ST32500N 3AZQ 29 C (84 F)
c2t7d0p0 5QE5T3M0 ATA SEAGATE ST32500N 3AZQ 33 C (91 F)
c1t1d0p0 5QE5T4VQ ATA SEAGATE ST32500N 3AZQ 33 C (91 F)
c1t6d0p0 5QE5T3N6 ATA SEAGATE ST32500N 3AZQ 33 C (91 F)
c4t3d0p0 5QE5T4QE ATA SEAGATE ST32500N 3AZQ 35 C (95 F)
c4t4d0p0 5QE5T3PG ATA SEAGATE ST32500N 3AZQ 31 C (87 F)
c3t0d0p0 5QE5T57S ATA SEAGATE ST32500N 3AZQ 30 C (86 F)
c3t7d0p0 5QE5T4W5 ATA SEAGATE ST32500N 3AZQ 33 C (91 F)
c2t6d0p0 5QE5T4Z4 ATA SEAGATE ST32500N 3AZQ 33 C (91 F)
c2t1d0p0 5QE5T4LK ATA SEAGATE ST32500N 3AZQ 31 C (87 F)
c5t2d0p0 5QE5T54W ATA SEAGATE ST32500N 3AZQ 34 C (93 F)
c0t7d0p0 5QE5T3VN ATA SEAGATE ST32500N 3AZQ 35 C (95 F)
c0t0d0p0 5QE5T3N0 ATA SEAGATE ST32500N 3AZQ 31 C (87 F)
c3t6d0p0 5QE5T3RD ATA SEAGATE ST32500N 3AZQ 32 C (89 F)
c3t1d0p0 5QE5T58R ATA SEAGATE ST32500N 3AZQ 31 C (87 F)
c4t5d0p0 5QE5RZL5 ATA SEAGATE ST32500N 3AZQ 32 C (89 F)
c4t2d0p0 5QE5T4VB ATA SEAGATE ST32500N 3AZQ 32 C (89 F)
c1t7d0p0 5QE5T4R5 ATA SEAGATE ST32500N 3AZQ 35 C (95 F)
c1t0d0p0 5QE5T3WT ATA SEAGATE ST32500N 3AZQ 30 C (86 F)
c3t2d0p0 5QE5T4R3 ATA SEAGATE ST32500N 3AZQ 33 C (91 F)
c3t5d0p0 5QE5T4ZK ATA SEAGATE ST32500N 3AZQ 31 C (87 F)
c4t1d0p0 5QE5T53R ATA SEAGATE ST32500N 3AZQ 31 C (87 F)
c4t6d0p0 5QE5T4XT ATA SEAGATE ST32500N 3AZQ 33 C (91 F)
c1t3d0p0 5QE5T4XD ATA SEAGATE ST32500N 3AZQ 35 C (95 F)
c1t4d0p0 5QE5T4RD ATA SEAGATE ST32500N 3AZQ 29 C (84 F)
c2t2d0p0 5QE5T4HD ATA SEAGATE ST32500N 3AZQ 32 C (89 F)
c2t5d0p0 5QE5T3SX ATA SEAGATE ST32500N 3AZQ 30 C (86 F)
c5t1d0p0 5QE5T3RW ATA SEAGATE ST32500N 3AZQ 33 C (91 F)
c5t6d0p0 5QE5T4X0 ATA SEAGATE ST32500N 3AZQ 34 C (93 F)
c0t3d0p0 5QE5T4RW ATA SEAGATE ST32500N 3AZQ 36 C (96 F)
c0t4d0p0 5QE5T3Y5 ATA SEAGATE ST32500N 3AZQ 30 C (86 F)
c1t2d0p0 5QE5T3Y9 ATA SEAGATE ST32500N 3AZQ 33 C (91 F)
c4t7d0p0 5QE5T4XS ATA SEAGATE ST32500N 3AZQ 35 C (95 F)
c4t0d0p0 5QE5T536 ATA SEAGATE ST32500N 3AZQ 29 C (84 F)
c3t4d0p0 5QE5T3SB ATA SEAGATE ST32500N 3AZQ 28 C (82 F)
c3t3d0p0 5QE5T3TJ ATA SEAGATE ST32500N 3AZQ 34 C (93 F)
c0t5d0p0 5QE5T3XN ATA SEAGATE ST32500N 3AZQ 33 C (91 F)
c0t2d0p0 5QE5T4L1 ATA SEAGATE ST32500N 3AZQ 35 C (95 F)
c5t7d0p0 5QE5T4ZB ATA SEAGATE ST32500N 3AZQ 35 C (95 F)
c5t0d0p0 5QE5T4XB ATA SEAGATE ST32500N 3AZQ 30 C (86 F)
c2t4d0p0 5QE5T3X5 ATA SEAGATE ST32500N 3AZQ 29 C (84 F)
c2t3d0p0 5QE5T3W3 ATA SEAGATE ST32500N 3AZQ 34 C (93 F)

—————————–SunFire X4540——-Rear—————–
3: 7: 11: 15: 19: 23: 27: 31: 35: 39: 43: 47:
c0t3 c0t7 c1t3 c1t7 c2t3 c2t7 c3t3 c3t7 c4t3 c4t7 c5t3 c5t7
^++ ^++ ^++ ^++ ^++ ^++ ^++ ^++ ^++ ^++ ^++ ^++
2: 6: 10: 14: 18: 22: 26: 30: 34: 38: 42: 46:
c0t2 c0t6 c1t2 c1t6 c2t2 c2t6 c3t2 c3t6 c4t2 c4t6 c5t2 c5t6
^++ ^++ ^++ ^++ ^++ ^++ ^++ ^++ ^++ ^++ ^++ ^++
1: 5: 9: 13: 17: 21: 25: 29: 33: 37: 41: 45:
c0t1 c0t5 c1t1 c1t5 c2t1 c2t5 c3t1 c3t5 c4t1 c4t5 c5t1 c5t5
^b+ ^++ ^b+ ^– ^++ ^++ ^++ ^++ ^++ ^++ ^++ ^–
0: 4: 8: 12: 16: 20: 24: 28: 32: 36: 40: 44:
c0t0 c0t4 c1t0 c1t4 c2t0 c2t4 c3t0 c3t4 c4t0 c4t4 c5t0 c5t4
^b+ ^++ ^b+ ^++ ^++ ^++ ^++ ^++ ^++ ^++ ^++ ^++
——-*———*———–SunFire X4540—*—Front—–*——-*—

In the above output you will not be able to differentiate between failed and healthy disk. But when you will be working you will see the failed disk in red colour as shown below.

failed disk snapshot

Step 3 : Just showing you the more power of this utility by extracting information for particular working disk.

bash-3.2# ./hd -e c1t1
ScsiIo failed, Check Condition, Key = 2, ASC/ASCQ = 4Ch/00h
Revision: 10
Offline status 130
Selftest status 0
Seconds to collect 430
Time in minutes to run short selftest 1
Time in minutes to run extended selftest 92
Offline capability 91
SMART capability 3
Error logging capability 1
Checksum 0x29
Identification Status Current Worst Raw data
1 Raw read error rate 0xf 100 253 0
3 Spin up time 0x3 96 96 0
4 Start/Stop count 0x32 100 100 62
5 Reallocated sector count 0x33 100 100 0
7 Seek error rate 0xf 84 60 270825655
9 Power on hours count 0x32 48 48 46269
10 Spin retry count 0x13 100 100 0
12 Device power cycle count 0x32 100 100 62
187 Uncorrectable Errors for Host 0x32 100 100 0
189 High Fly Writes 0x3a 100 100 0
190 Airflow Temperature (WDC) 0x22 67 56 605421601
194 Temperature 0x22 33 44 33/ 0/ 21 (degrees C cur/min/max)
195 Hardware ECC Recovered 0x1a 69 60 141013833
197 Current pending sector count 0x12 100 100 0
198 Scan uncorrected sector count 0x10 100 100 0
199 Ultra DMA CRC error count 0x3e 200 200 0
200 Write/Multi-Zone Error Rate 0x0 100 253 0
202 Data Address Mark errors 0x32 100 253 0
But we will not be able to retrieve the information for problematic disk.

bash-3.2# ./hd -e c1t5
ScsiIo failed, Check Condition, Key = 2, ASC/ASCQ = 4Ch/00h
can’t access c1t5 [/dev/rdsk/c1t5d0p0]
After the disk replacement disks will be shown in healthy state.

after disk replacement

Reference : Oracle Doc ID 1565521.1 (Need Oracle portal credentials to access it)

Really Amazing. Wonderful utility!! isn’t it 🙂

Advertisements

One thought on “How to check physical disk location on Solaris 10 X86 x4500/x4540 HWs ?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s