Thursday, September 24, 2009

How to find your usb external harddisk on Solaris 9.

There are many ways to know control number of your usb external harddisk

#iostat -En
iostat -En
c0t0d0 Soft Errors: 1 Hard Errors: 0 Transport Errors: 31
Vendor: TOSHIBA Product: DVD-ROM SD-C2612 Revision: 1011 Serial No:
Size: 0.00GB <0>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0
c4t0d0 Soft Errors: 1 Hard Errors: 0 Transport Errors: 0 Vendor: WD Product: 1600BEV External Revision: 1.05 Serial No: Size: 160.04GB <160039272960> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 1 Predictive Failure Analysis: 0

-- or --
# format -e
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0
/pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e010a7d191,0
1. c1t1d0 mirror
/pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e010a7d2e1,0
2. c2t5006016810209AB5d0
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w5006016810209ab5,0
3. c2t5006016110209AB5d0
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w5006016110209ab5,0
4. c4t0d0 /pci@9,700000/usb@1,3/storage@2/disk@0,0
5. emcpower0a
/pseudo/emcp@0


-- Dmesg doesn't tell the controll number

#dmesg
Sep 24 18:45:28 onestopII usba: [ID 855233 kern.info] USB-device: storage@2, scsa2usb1 at bus address 2
Sep 24 18:45:28 onestopII usba: [ID 593373 kern.info] Western Digital External HDD 575843373038433030363435
Sep 24 18:45:28 onestopII genunix: [ID 936769 kern.info] scsa2usb1 is /pci@9,700000/usb@1,3/storage@2
Sep 24 18:45:28 onestopII genunix: [ID 408114 kern.info] /pci@9,700000/usb@1,3/storage@2 (scsa2usb1) online
Sep 24 18:45:28 onestopII scsi: [ID 193665 kern.info] sd2 at scsa2usb1: target 0 lun 0
Sep 24 18:45:28 onestopII genunix: [ID 936769 kern.info] sd2 is /pci@9,700000/usb@1,3/storage@2/disk@0,0
Sep 24 18:45:28 onestopII genunix: [ID 408114 kern.info] /pci@9,700000/usb@1,3/storage@2/disk@0,0 (sd2) online



No comments: