2012-01-17 16:17, casper....@oracle.com пишет:
I have a desktop system with 2 ZFS mirrors. One drive in one mirror is
starting to produce read errors and slowing things down dramatically. I
detached it and the system is running fine. I can't tell which drive it is
though! The error message and format command let me know which pair the bad
drive is in, but I don't know how to get any more info than that like the
serial number etc. to know which disk it is. Is there a command to do this?
All it shows is a 500G WD drive producing read errors and format shows
identical info for both of the 500G WD drives.
Did you try:
messages in /var/adm/messages perhaps? They should include the path
to the disk in error.
Further on, when the system initialises, it may include serial numbers
as part of disk info in /var/adm/messages. Alternatively, you can try
rescanning your devices to same effect with "devfsadm -Cv".
As another alternative, you can try to see if ZFS knows the info about
serial numbers, by inspecting component disks (slices) of your pool,
# zdb -l /dev/dsk/c4t1d0s0 | egrep 'path|devid|name'
In my systems, the "devid" line contains the model and sernum info.
This depends on the HDD capabilities and drivers, maybe.
You can find the disk device names in "zpool status" or "zpool import"
outputs, or deduce them by running format:
# echo "" | format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c4t0d0 <DEFAULT cyl 38910 alt 2 hd 255 sec 63>
1. c4t1d0 <ATA-ST3320620AS-K cyl 38910 alt 2 hd 255 sec 63>
Specify disk (enter its number): Specify disk (enter its number):
zfs-discuss mailing list