Go to main content
Oracle® Solaris 11.3 でのデバイスの管理

印刷ビューの終了

更新: 2016 年 11 月
 
 

デバイス構成情報の表示

次の表に、システムおよびデバイス構成情報を表示するために使用する 3 つのコマンドを説明します。

コマンド
説明
マニュアルページ
prtconf
メモリーの総量、システムのデバイス階層によって記述されたデバイス構成を含む、システム構成情報を表示します。このコマンドによる出力は、システムのタイプによって異なります。
sysdef
システムハードウェア、疑似デバイス、ロード可能なモジュール、および指定のカーネルパラメータを含む、デバイス構成情報を表示します。
dmesg
最後のリブート以降にシステムに接続されたデバイスのリストと、システム診断情報を表示します。

システムのデバイスの識別に使用されるデバイス名については、デバイス名の命名規則を参照してください。

prtconf および sysdef コマンドを実行すると、出力で、特定のデバイスインスタンスの横に、次のドライバ関連のメッセージ行が含められることがあります。

device, instance #number (driver not attached)

ドライバが存在しない場合は、次のいずれかを意味している可能性があります。

  • デバイスのドライバを入手できません。

  • デバイスが使用されていないため、現在、ドライバが接続されていません。デバイスが使用されていない場合、ドライバは自動的にアンロードされます。

  • そのデバイスインスタンスにデバイス自体が存在しないため、現在、ドライバが接続されていません。

    システムプロセスはシステムのデバイスを常にモニターしているため、通常、このメッセージはデバイスが存在しないことを示しています。

    次のユーティリティーは、指定されたデバイスが使用されているときを検出します。

  • dumpadm

  • format

  • mkfs and newfs

  • swap

    これらのユーティリティーによって、次の使用状況のシナリオのいくつかが検出される場合があります。

  • デバイスが ZFS ストレージプールに含まれている

  • デバイスがダンプデバイスまたはスワップデバイスである

  • マウントされたファイルシステムまたはデバイスのエントリが /etc/vfstab ファイルに存在する

たとえば、format ユーティリティーを使用してアクティブなデバイスにアクセスすると、次のようなメッセージが生成されることがあります。

# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <FUJITSU-MAY2073RCSUN72G-0401 cyl 8921 alt 2 hd 255 sec 63>
/pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@0,0
/dev/chassis/SYS/HD0/disk
1. c1t1d0 <FUJITSU-MAY2073RCSUN72G-0401-68.37GB>
/pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@1,0
/dev/chassis/SYS/HD1/disk
Specify disk (enter its number): 0
selecting c1t0d0
[disk formatted]
/dev/dsk/c1t0d0s0 is part of active ZFS pool rpool. Please see zpool(1M).


FORMAT MENU:
.
.
.

次の例は、システム構成情報を表示するための prtconfsysdef、およびその他のコマンドのさまざまな使用方法を示しています。

使用例 1  SPARC ベースのシステムのすべてのデバイスの表示
$ /usr/sbin/prtconf -v | more
Memory size: 32640 Megabytes
System Peripherals (Software Nodes):

SUNW,SPARC-Enterprise-T5220
.
.
.
location: /dev/chassis/SUN-Storage-J4400.0918QAKA24/SCSI_Device__2/disk
Device Minor Nodes:                    このセクションでは詳細なディスク情報について説明しています。
dev=(27,40)
dev_path=/pci@0/pci@0/pci@8/pci@0/pci@a/LSILogic,sas@0/sd@2,0:a
spectype=blk type=minor
dev_link=/dev/dsk/c4t2d0s0
dev_path=/pci@0/pci@0/pci@8/pci@0/pci@a/LSILogic,sas@0/sd@2,0:a,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4t2d0s0
Device Minor Layered Under:
mod=zfs accesstype=blk
dev_path=/pseudo/zfs@0
Minor properties:
name='Nblocks' type=int64 items=1 dev=(27,40)
value=0000000074702c8f
name='Size' type=int64 items=1 dev=(27,40)
value=000000e8e0591e00
.
.
.
使用例 2  SPARC ベースのシステムの特定のデバイスに関する情報の表示

この例では、/dev/dsk/c4t2d0s0sd インスタンス番号が表示されます。

# prtconf -v /dev/dsk/c4t2d0s0 | grep instance
sd, instance #5
使用例 3  システムに接続されているデバイスのみの表示
# prtconf | grep -v not
使用例 4  デバイスの使用状況の表示

この例では、fuser コマンドを使用して、/dev/console デバイスにアクセスしているプロセスを表示しています。

# fuser -d /dev/console
/dev/console:     5742o    2269o   20322o     858o
使用例 5  x86 ベースのシステムのシステム構成情報の表示
# prtconf
System Configuration:  Oracle Corporation  i86pc
Memory size: 8192 Megabytes
System Peripherals (Software Nodes):

i86pc
scsi_vhci, instance #0
pci, instance #0
pci108e,4843, instance #0
pci8086,25e2, instance #0
pci8086,3500, instance #7
pci8086,3510, instance #9
pci8086,3518, instance #10
pci108e,4843, instance #0
pci108e,4843, instance #1
pci8086,350c, instance #8
pci8086,25e3 (driver not attached)
pci8086,25f8, instance #2
pci108e,286, instance #0
disk, instance #0
disk, instance #2
disk, instance #3
disk, instance #1
pci8086,25e5 (driver not attached)
pci8086,25f9 (driver not attached)
pci8086,25e7 (driver not attached)
pci108e,4843, instance #0 (driver not attached)
pci108e,4843, instance #1
pci108e,4843, instance #2 (driver not attached)
pci108e,4843 (driver not attached)
pci108e,4843 (driver not attached)
pci108e,4843 (driver not attached)
pci108e,4843 (driver not attached)
pci8086,2690, instance #6
pci108e,125e, instance #2
pci108e,125e, instance #3
pci108e,4843, instance #0
pci108e,4843, instance #1
device, instance #0
keyboard, instance #0
mouse, instance #1
pci108e,4843, instance #2
pci108e,4843, instance #3
pci108e,4843, instance #0
storage, instance #0
disk, instance #4
.
.
.
使用例 6  x86 ベースのシステムのデバイス構成情報の表示
# sysdef
* Hostid
*
29f10b4d
*
* i86pc Configuration
*
*
* Devices
*
+boot (driver not attached)
memory (driver not attached)
aliases (driver not attached)
chosen (driver not attached)
i86pc-memory (driver not attached)
i86pc-mmu (driver not attached)
openprom (driver not attached)
options, instance #0
packages (driver not attached)
delayed-writes (driver not attached)
itu-props (driver not attached)
isa, instance #0
motherboard (driver not attached)
pnpADP,1542, instance #0
asy, instance #0
asy, instance #1
lp, instance #0 (driver not attached)
fdc, instance #0
fd, instance #0
fd, instance #1 (driver not attached)
kd (driver not attached)
kdmouse (driver not attached)
.
.
.