はじめに
マシンに接続されているディスクが何だったか確認したくなる時がありますよね。(固定資産の確認とかで)ほんとたまに急に知りたくなったりするのでメモ。
Linux
LinuxではマシンやOSの情報を見るために、仮想的なディレクトリのprocが用意されてます。/devを見に行くと大変ですが、/proc/scsiや/proc/ideなどを見に行くと結構情報がわかります。
$ sudo less /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: ATA Model: GB0160EAFJE Rev: n/a Type: Direct-Access ANSI SCSI revision: 05 Host: scsi1 Channel: 00 Id: 00 Lun: 00 Vendor: ATA Model: Hitachi HDS72101 Rev: JP4O Type: Direct-Access ANSI SCSI revision: 05 Host: scsi4 Channel: 00 Id: 00 Lun: 00 Vendor: HL-DT-ST Model: DVD-ROM DH10N Rev: DAE1 Type: CD-ROM ANSI SCSI revision: 05
Solaris 10
他のバージョンで確認してません。Solarisではiostat -Eで確認。
# iostat -E sd0 Soft Errors: 2 Hard Errors: 0 Transport Errors: 0 Vendor: MATSHITA Product: CD-RW CW-8124 Revision: DZ13 Serial No: Size: 0.00GB <0 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 2 Predictive Failure Analysis: 0 sd1 Soft Errors: 2 Hard Errors: 0 Transport Errors: 0 Vendor: LSILOGIC Product: Logical Volume Revision: 3000 Serial No: Size: 73.00GB <72999763456 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 2 Predictive Failure Analysis: 0 sd4 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: SUN Product: CSM200_R Revision: 0760 Serial No: Size: 2047.82GB <2047824887296 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 Predictive Failure Analysis: 0
AIX 6.1
lsdevでデバイスを確認して、lscfgで情報確認。
# lsdev -CH ... hdisk0 Available 00-08-00 SAS Disk Drive hdisk1 Available 00-08-00 SAS Disk Drive ... # lscfg -vl hdisk0 # lscfg -vl hdisk0 hdisk0 U789C.001.DQD9061-P2-D4 SAS Disk Drive (73400 MB) Manufacturer................IBM Machine Type and Model......HUS153073VLS300 FRU Number..................10N7230 ROS Level and ID............41343130 Serial Number...............J2VR2AAC EC Level....................H17923Y Part Number.................42R4233 Device Specific.(Z0)........000005329F001002 Device Specific.(Z1)........VBIPA410 Device Specific.(Z2)........0068 Device Specific.(Z3)........08103 Device Specific.(Z4)........ Device Specific.(Z5)........22 Device Specific.(Z6)........H17923Y Hardware Location Code......U789C.001.DQD9061-P2-D4
他のOSとかでCUIで確認する方法があったら追記しようと思います。