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:
iostat -En
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,
i.e.:
# zdb -l /dev/dsk/c4t1d0s0 | egrep 'path|devid|name'
name: 'rpool'
hostname: 'testhost'
path: '/dev/dsk/c4t1d0s0'
devid: 'id1,sd@AST3320620AS=____________6QF16KGR/a'
phys_path: '/pci@0,0/pci108e,534b@5/disk@1,0:a'
path: '/dev/dsk/c4t0d0s0'
devid: 'id1,sd@AST3320620AS=____________6QF181M4/a'
phys_path: '/pci@0,0/pci108e,534b@5/disk@0,0:a'
(repeats 4x...)
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>
/pci@0,0/pci108e,534b@5/disk@0,0
1. c4t1d0 <ATA-ST3320620AS-K cyl 38910 alt 2 hd 255 sec 63>
/pci@0,0/pci108e,534b@5/disk@1,0
Specify disk (enter its number): Specify disk (enter its number):
#
HTH,
//Jim
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss