Linuxの場合
次のコマンド(太字)を実行してください。
[root@mic public]# ls /proc/ide/hd*
hda hdc hdd
[root@mic public]# cat /proc/ide/hd*/model
ST313620A
ST313620A
MATSHITA CR-583
[root@mic public]# cat /proc/ide/hd*/capacity
26692776
26692776
0
[root@mic public]# cat /proc/ide/hd*/geometry
physical 26480/16/63
logical 1661/255/63
physical 26480/16/63
logical 1661/255/63
出力された結果の意味は次の通り
hda IDEのプライマリ・マスタに繋がっているHDD
hdc IDEのセカンダリ・マスタに繋がっているHDD
hdd IDEのセカンダリ・スレーブに繋がっているCD-ROM
型番は、青色の部分です
hda ST313620A <-- メーカ名までは出ていません
hdc ST313620A (MIC-NETのサーバはこれでミラー化しています)
hdd MATSHITA CR-583
[root@www public]# dmesg |grep h[ds][a-z]
ide0: BM-DMA at 0xd800-0xd807, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xd808-0xd80f, BIOS settings: hdc:DMA, hdd:DMA
hda: ST313620A, ATA DISK drive
hdc: ST313620A, ATA DISK drive
hdd: MATSHITA CR-583, ATAPI CD/DVD-ROM drive
hda: attached ide-disk driver.
hda: 26692776 sectors (13667 MB) w/512KiB Cache, CHS=1661/255/63, UDMA(66)
hdc: attached ide-disk driver.
hdc: 26692776 sectors (13667 MB) w/512KiB Cache, CHS=26480/16/63, UDMA(66)
hda: hda1 hda2 hda3
hdc: [PTBL] [1661/255/63] hdc1 hdc2 hdc3
md: considering hdc3 ...
md: adding hdc3 ...
md: adding hda3 ...
md: bind
md: bind
md: running:
md: hdc3's event counter: 00000039
md: hda3's event counter: 00000039
md: unbind
md: export_rdev(hdc3)
md: unbind
md: export_rdev(hda3)
md: considering hdc2 ...
md: adding hdc2 ...
md: adding hda2 ...
md: bind
md: bind
md: running:
md: hdc2's event counter: 00000039
md: hda2's event counter: 00000039
md: unbind
md: export_rdev(hdc2)
md: unbind
md: export_rdev(hda2)
md: considering hdc1 ...
md: adding hdc1 ...
md: adding hda1 ...
md: bind
md: bind
md: running:
md: hdc1's event counter: 00000039
md: hda1's event counter: 00000039
md: unbind
md: export_rdev(hdc1)
md: unbind
md: export_rdev(hda1)
md: considering hda1 ...
md: adding hda1 ...
md: adding hdc1 ...
md: bind
md: bind
md: running:
md: hda1's event counter: 00000039
md: hdc1's event counter: 00000039
raid1: device hda1 operational as mirror 0
raid1: device hdc1 operational as mirror 1
md: hda1 [events: 0000003a]<6>(write) hda1's sb offset: 208704
md: hdc1 [events: 0000003a]<6>(write) hdc1's sb offset: 208704
md: considering hda2 ...
md: adding hda2 ...
md: adding hdc2 ...
md: bind
md: bind
md: running:
md: hda2's event counter: 00000039
md: hdc2's event counter: 00000039
raid1: device hda2 operational as mirror 0
raid1: device hdc2 operational as mirror 1
md: hda2 [events: 0000003a]<6>(write) hda2's sb offset: 10241344
md: hdc2 [events: 0000003a]<6>(write) hdc2's sb offset: 10241344
md: considering hda3 ...
md: adding hda3 ...
md: adding hdc3 ...
md: bind
md: bind
md: running:
md: hda3's event counter: 00000039
md: hdc3's event counter: 00000039
raid1: device hda3 operational as mirror 0
raid1: device hdc3 operational as mirror 1
md: hda3 [events: 0000003a]<6>(write) hda3's sb offset: 2562240
md: hdc3 [events: 0000003a]<6>(write) hdc3's sb offset: 2562240
これで、SCSIとIDEの両方の情報が出力されます。うえの例では、
ソフトRAIDを組んでいるため、やたらと沢山の情報が出ています。
ディストリビューションやバージョンにより
多少、違いがあると思いますが、だいたいこんな感じです
|