Oracle® Solaris 11.2의 장치 관리

인쇄 보기 종료

업데이트 날짜: 2014년 7월
 
 

장치 구성 정보 표시

다음 표에는 시스템 및 장치 구성 정보를 표시하는 데 사용되는 세 가지 명령에 대해 설명되어 있습니다.

명령
설명
매뉴얼 페이지
prtconf
시스템의 장치 계층에 설명된 장치 구성과 총 메모리 크기를 포함한 시스템 구성 정보를 표시합니다. 이 명령으로 표시되는 출력은 시스템의 유형에 따라 다릅니다.
sysdef
시스템 하드웨어, 의사 장치, 로드 가능한 모듈 및 선택한 커널 매개변수 등의 장치 구성 정보를 표시합니다.
dmesg
시스템 진단 메시지와 마지막 재부트 후 시스템에 연결된 장치 목록을 표시합니다.

시스템에서 장치 식별에 사용되는 장치 이름에 대한 자세한 내용은 장치 이름 지정 규칙을 참조하십시오.

prtconf 및 sysdef 명령을 실행하면 출력에서 특정 장치 인스턴스 옆에 다음과 같은 드라이버 관련 메시지 줄이 포함될 수 있습니다.

device, instance #number (driver not attached)

드라이버가 없는 경우 다음 중 하나를 나타낼 수 있습니다.

  • 장치 드라이버를 사용할 수 없습니다.

  • 장치가 사용되고 있지 않으므로 현재 연결된 드라이버가 없습니다. 장치가 사용되지 않을 때는 해당 드라이버가 자동으로 언로드됩니다.

  • 해당 장치 인스턴스에 장치가 없으므로 현재 연결된 드라이버가 없습니다.

    시스템 프로세스는 항상 시스템 장치를 모니터링하므로 이 메시지는 일반적으로 장치가 없음을 나타냅니다.

    다음 유틸리티는 지정된 장치를 사용 중인 경우를 감지합니다.

  • dumpadm

  • format

  • mkfs 및 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:
.
.
.

다음 예에서는 prtconf, sysdef 및 기타 명령을 사용하여 시스템 구성 정보를 표시하는 방법을 보여 줍니다.

예 1-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:                    The detailed disk information is described in this section.
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
.
.
.
예 1-2  SPARC 기반 시스템의 특정 장치에 대한 정보 표시

이 예에서는 /dev/dsk/c4t2d0s0의 sd 인스턴스 번호가 표시됩니다.

# prtconf -v /dev/dsk/c4t2d0s0 | grep instance
sd, instance #5
예 1-3  시스템에 연결된 장치만 표시
# prtconf | grep -v not
예 1-4  장치 사용 정보 표시

이 예에서는 /dev/console 장치에 액세스하고 있는 프로세스를 표시하기 위해 fuser 명령이 사용되었습니다.

# fuser -d /dev/console
/dev/console:     5742o    2269o   20322o     858o
예 1-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
.
.
.
예 1-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)
.
.
.