You are on page 1of 22

System configuration and devices

© Copyright IBM Corporation 2009, 2013. All Rights Reserved.


US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp 8.1
Unit objectives
IBM Power Systems

After completing this unit, you should be able to:


• Explain device terminology
• List device configuration and status
• Configure new devices
• Manage device states
• Interpret physical and virtual location codes

© Copyright IBM Corporation 2009, 2013. All Rights Reserved.


US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
Device terminology
IBM Power Systems

• Generic terminology
– Physical devices
– Ports
– Device drivers
– Logical devices
– /dev directory
– Virtual devices

• Power H/W-specific terminology


– CEC
– System planar
– RIO or 12X
– System ports
– GX+
– IVE
– PCI
© Copyright IBM Corporation 2009, 2013. All Rights Reserved.
US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
System components locations
IBM Power Systems

5886
SAS disk Location:
drawer • Enclosure
• Bus or planar
SAS • Adapter

12X
• Port
5877 • Device
PCI
Expansion
drawers

12X
12X
PCI cables

CEC

12X
Power 770 PCI GX
System
Enclosures CEC
12X

PCI GX
© Copyright IBM Corporation 2009, 2013. All Rights Reserved.
US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
Device addressing
IBM Power Systems

• The address of a device allows you to identify its location.


• Physical location codes uniquely identify a specific component in a
server or accessed by a server.
– Assigned by the system firmware.
• Example hdisk0: U78A0.001.DNWGGRX-P2-D5 (SAS drive)

• Operating system location codes uniquely identify a component only


within an AIX instance.
– Assigned by AIX.
– Not as useful or meaningful as physical codes on POWER5 or later systems.
– Virtual devices do not have AIX location codes.
– Note: Address conventions differ between models and types (adapters,
SCSI, non-SCSI).
• Example. hdisk0: 00-08-00 (SAS drive)

• Both physical and AIX codes can be seen side by side with:
– lsdev –CHF “name, status, physloc, location”

© Copyright IBM Corporation 2009, 2013. All Rights Reserved.


US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
Physical location code examples
IBM Power Systems

• Physical location code format


– Unit_type.Model_no.Serial_no-additional device information
• Examples:
hdisk0
hdisk0 U78A0.001.DNWGGRX-P2-D5
U78A0.001.DNWGGRX-P2-D5 SAS
SAS Disk
Disk Drive
Drive
SAS
SAS Planar
Planar (P2),
(P2), Device
Device slot
slot reference
reference 5,
5, disk
disk is
is in
in the
the CEC
CEC

ent1
ent1 U78A0.001.DNWGGRX-P1-C4-T2
U78A0.001.DNWGGRX-P1-C4-T2 2-Port
2-Port 10/100/1000
10/100/1000 PCI-X
PCI-X Adapter
Adapter
System
System planar
planar (P1),
(P1), Card
Card slot
slot No 4, 22nd
No 4, nd port,
port, Adapter
Adapter is
is in
in the
the CEC
CEC

hdisk0
hdisk0 U7311.D20.6516D3C-P1-C04-T2-L8-L0
U7311.D20.6516D3C-P1-C04-T2-L8-L0 16
16 Bit
Bit LVD
LVD SCSI
SCSI Disk
Disk
Planar
Planar 11 (P1),
(P1), PCI
PCI slot
slot No 4, 22nd
No 4, nd port,
port, SCSI
SCSI ID
ID 8,0,
8,0, Disk
Disk is
is in
in an
an
attached
attached SCSI
SCSI 7311-D
7311-D 20
20 I/O
I/O Drawer.
Drawer.

hdisk5
hdisk5 U78A0.001.DNWGGRX-P1-C3-T1-W500507630E801223-L4011402700000000
U78A0.001.DNWGGRX-P1-C3-T1-W500507630E801223-L4011402700000000 FC
FC SCSI
SCSI Disk
Disk
System
System planar
planar (P1),
(P1), Card
Card slot
slot No
No 3,
3, Port
Port 1,
1, WW == WW
WW unique
unique name
name of
of
an
an
FC
FC adapter
adapter (where
(where the
the FC
FC adapter
adapter is
is in
in aa remote
remote storage
storage subsystem),
subsystem),
LL == LUN
LUN ID. The disk is a logical device (identified by
ID. The disk is a logical device (identified by the
the LUN
LUN
ID) in the remote storage subsystem.
ID) in the remote storage subsystem.
© Copyright IBM Corporation 2009, 2013. All Rights Reserved.
US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
Virtual location codes example
IBM Power Systems

– Client (AIX) partition Virtual devices are easily


recognized by the virtual ID
reference. This value is the LPAR
## uname –L
uname –L ID as shown with the uname
22 sys124_v1_T1
sys124_v1_T1 command.

vscsi0
vscsi0 U8204.E8A.652ACD2-V2-C12-T1
U8204.E8A.652ACD2-V2-C12-T1 Virtual
Virtual SCSI
SCSI Client
Client Adapter
Adapter
hdisk1
hdisk1 U8204.E8A.652ACD2-V2-C12-T1-L810000000000
U8204.E8A.652ACD2-V2-C12-T1-L810000000000 Virtual
Virtual SCSI
SCSI Disk
Disk Drive
Drive

Virtual
Virtual client
client disk,
disk, Virtual
Virtual (LPAR)
(LPAR) ID
ID 2,
2, virtual
virtual card
card slot
slot 12.
12.

– VIOS HMC profile


Virtual SCSI adapter definition

Note: In this example, the HMC profile is required


to show the client server virtual disk relationship.

– VIOS partition
vhost0
vhost0 U8204.E8A.652ACD2-V1-C12
U8204.E8A.652ACD2-V1-C12 Virtual
Virtual SCSI
SCSI Server
Server Adapter
Adapter

Virtual
Virtual Server
Server adapter,
adapter, Virtual
Virtual (LPAR)
(LPAR) ID
ID 1,
1, virtual
virtual card
card slot
slot (Adapter
(Adapter ID)
ID) 12
12

© Copyright IBM Corporation 2009, 2013. All Rights Reserved.


US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
System configuration and device overview
IBM Power Systems

• Understanding the configuration of the system is important.


– The configuration should be documented and updated on a regular
basis.
• All devices have attributes, some of which can be changed.
– lsattr lists device attributes.
– chdev changes device attributes.
• AIX devices can be physical or virtual.
– An AIX partition does not need to have any physical devices!
• Most devices within AIX are self configured through cfgmgr.
• Device states can be controlled using mkdev and rmdev
commands.
– This includes virtual devices.

© Copyright IBM Corporation 2009, 2013. All Rights Reserved.


US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
Device commands
IBM Power Systems

• prtconf
– Lists major system configuration items
• lscfg
– Lists device information including physical location codes
• lsdev
– Lists device information including the state of the device
• lsslot
– Displays all specified hot plug slots and their characteristics
• chdev
– Changes the characteristics of a device
• rendev
– Changes the name of a device
• lsattr
– Displays attribute characteristics and possible values of attributes for devices
in the system
© Copyright IBM Corporation 2009, 2013. All Rights Reserved.
US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
prtconf (1 of 2)
IBM Power Systems

• Shell script that collects system information


## prtconf
prtconf
System
System Model:
Model: IBM,8233-E8B
IBM,8233-E8B
Machine
Machine Serial
Serial Number:
Number: 100603P
100603P
Processor
Processor Type:
Type: PowerPC_POWER7
PowerPC_POWER7
Processor
Processor Implementation
Implementation Mode:
Mode: POWER
POWER 77
Processor
Processor Version:
Version: PV_7_Compat
PV_7_Compat
Number
Number Of
Of Processors:
Processors: 22
Processor
Processor Clock
Clock Speed:
Speed: 3000
3000 MHz
MHz
CPU
CPU Type:
Type: 64-bit
64-bit
Kernel
Kernel Type:
Type: 64-bit
64-bit Some items were
LPAR
LPAR Info:
Info: 15
15 sys304_118_MA
sys304_118_MA removed for
Memory
Memory Size:
Size: 1024
1024 MB
MB clarity.
Good
Good Memory
Memory Size:
Size: 1024
1024 MB
MB
Platform
Platform Firmware
Firmware level:
level: AL710_099
AL710_099 Output is
Firmware
Firmware Version:
Version: IBM,AL710_099
IBM,AL710_099 continued on the
Network
Network Information
Information next page.
Host
Host Name:
Name: sys304_118
sys304_118
IP
IP Address:
Address: 10.6.52.118
10.6.52.118
Sub
Sub Netmask:
Netmask: 255.255.255.0
255.255.255.0
Gateway:
Gateway: 10.6.52.254
10.6.52.254

Paging
Paging Space
Space Information
Information
Total
Total Paging
Paging Space:
Space: 512MB
512MB
Percent
Percent Used: 10%
Used: 10%

© Copyright IBM Corporation 2009, 2013. All Rights Reserved.


US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
prtconf (2 of 2)
IBM Power Systems

INSTALLED
INSTALLED RESOURCE
RESOURCE LIST
LIST

The
The following
following resources
resources are
are installed
installed on
on the
the machine.
+/-
machine.
Device listing
+/- == Added
Added or
or deleted
deleted from
from Resource
Resource List.
List.
** == Diagnostic support not available.
Diagnostic support not available. including “physical Second half of
location codes” the output is
Model
Model Architecture:
Architecture: chrp
chrp
Model
Model Implementation:
Implementation: Multiple
Multiple Processor,
Processor, PCI
PCI bus
bus
identical to
lscfg
++ sys0
sys0 System
System Object
Object
++ sysplanar0
sysplanar0 System
System Planar
Planar
** pci6
pci6 U78A0.001.DNWHNC6-P1
U78A0.001.DNWHNC6-P1 PCI
PCI Bus
Bus
++ usbhc0
usbhc0 U78A0.001.DNWHNC6-P1
U78A0.001.DNWHNC6-P1 USB
USB Host Controller
Host Controller (33103500)
(33103500)
++ usbhc1
usbhc1 U78A0.001.DNWHNC6-P1
U78A0.001.DNWHNC6-P1 USB
USB Host
Host Controller
Controller (33103500)
(33103500)
++ usbhc2
usbhc2 U78A0.001.DNWHNC6-P1
U78A0.001.DNWHNC6-P1 USB
USB Enhanced Host Controller (3310e000)
Enhanced Host Controller (3310e000)
** pci2
pci2 U5877.001.00H0301-P1
U5877.001.00H0301-P1 PCI Express Bus
PCI Express Bus
++ ent4
ent4 U5877.001.00H0301-P1-C5-T1
U5877.001.00H0301-P1-C5-T1 2-Port
2-Port 10/100/1000 Base-TX PCI-Express Adapter
10/100/1000 Base-TX PCI-Express Adapter (14104003)
(14104003)
++ ent5
ent5 U5877.001.00H0301-P1-C5-T2
U5877.001.00H0301-P1-C5-T2 2-Port
2-Port 10/100/1000
10/100/1000 Base-TX
Base-TX PCI-Express
PCI-Express Adapter
Adapter (14104003)
(14104003)
** pci1
pci1 U5877.001.00H0301-P1
U5877.001.00H0301-P1 PCI
PCI Express
Express Bus
Bus
++ fcs2
fcs2 U5877.001.00H0301-P1-C3-T1
U5877.001.00H0301-P1-C3-T1 8Gb
8Gb PCI
PCI Express
Express Dual
Dual Port
Port FC
FC Adapter
Adapter (df1000f114108a03)
(df1000f114108a03)
** fcnet0
fcnet0 U5877.001.00H0301-P1-C3-T1
U5877.001.00H0301-P1-C3-T1 Fibre
Fibre Channel
Channel Network
Network Protocol
Protocol Device
Device
++ fscsi1
fscsi1 U5877.001.00H0301-P1-C3-T1
U5877.001.00H0301-P1-C3-T1 FC
FC SCSI
SCSI I/O
I/O Controller
Controller Protocol
Protocol Device
Device
++ hdisk4
hdisk4 U5877.001.00H0301-P1-C3-T1-W500507680140581E-L4000000000000
U5877.001.00H0301-P1-C3-T1-W500507680140581E-L4000000000000 MPIO
MPIO IBM 2145 FC
IBM 2145 FC Disk
Disk
++ hdisk5
hdisk5 U5877.001.00H0301-P1-C3-T1-W500507680140581E-L5000000000000
U5877.001.00H0301-P1-C3-T1-W500507680140581E-L5000000000000 MPIO
MPIO IBM 2145 FC
IBM 2145 FC Disk
Disk
++ fcs3
fcs3 U5877.001.00H0301-P1-C3-T2
U5877.001.00H0301-P1-C3-T2 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
** fcnet1
fcnet1 U5877.001.00H0301-P1-C3-T2
U5877.001.00H0301-P1-C3-T2 Fibre Channel Network Protocol
Fibre Channel Network Protocol DeviceDevice
++ fscsi2
fscsi2 U5877.001.00H0301-P1-C3-T2
U5877.001.00H0301-P1-C3-T2 FC
FC SCSI
SCSI I/O
I/O Controller
Controller Protocol
Protocol Device
Device
** vio0
vio0 Virtual
Virtual I/O
I/O Bus
Bus
** vscsi0
vscsi0 U8233.E8B.100603P-V15-C35-T1
U8233.E8B.100603P-V15-C35-T1 Virtual
Virtual SCSI
SCSI Client
Client Adapter
Adapter
** hdisk3
hdisk3 U8233.E8B.100603P-V15-C35-T1-L8400000000000000
U8233.E8B.100603P-V15-C35-T1-L8400000000000000 Virtual
Virtual SCSI
SCSI Disk
Disk Drive
Drive
** hdisk2
hdisk2 U8233.E8B.100603P-V15-C35-T1-L8300000000000000
U8233.E8B.100603P-V15-C35-T1-L8300000000000000 Virtual
Virtual SCSI
SCSI Disk
Disk Drive
Drive
** hdisk1
hdisk1 U8233.E8B.100603P-V15-C35-T1-L8200000000000000
U8233.E8B.100603P-V15-C35-T1-L8200000000000000 Virtual
Virtual SCSI
SCSI Disk
Disk Drive
Drive
** hdisk0
hdisk0 U8233.E8B.100603P-V15-C35-T1-L8100000000000000
U8233.E8B.100603P-V15-C35-T1-L8100000000000000 Virtual SCSI Disk Drive
Virtual SCSI Disk Drive
** ent1
ent1 U8233.E8B.100603P-V15-C2-T1
U8233.E8B.100603P-V15-C2-T1 Virtual
Virtual I/O Ethernet Adapter (l-lan)
I/O Ethernet Adapter (l-lan)
** vsa0
vsa0 U8233.E8B.100603P-V15-C0
U8233.E8B.100603P-V15-C0 LPAR
LPAR Virtual
Virtual Serial
Serial Adapter
Adapter
** vty0
vty0 U8233.E8B.100603P-V15-C0-L0
U8233.E8B.100603P-V15-C0-L0 Asynchronous Terminal
Asynchronous Terminal

© Copyright IBM Corporation 2009, 2013. All Rights Reserved.


US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
lscfg
IBM Power Systems

• lscfg can be used to display vital product data (VPD) information for
devices.
– IBM customer engineers (CEs) need this to order and replace failed
components.
Physical
location code
## lscfg
lscfg -v
-v -l
-l ent4
ent4
ent4
ent4 U5877.001.00H0301-P1-C5-T1
U5877.001.00H0301-P1-C5-T1 2-Port
2-Port
10/100/1000
10/100/1000 Base-TX
Base-TX PCI-Express
PCI-Express Adapter
Adapter (14104003)
(14104003)

2-P VPD
2-P NIC-TX
NIC-TX PCI-e:
PCI-e: information
EC
EC Level....................D76567
Level....................D76567
Part
Part Number.................46K6601
Number.................46K6601
Manufacture
Manufacture ID..............YL1026
ID..............YL1026
FRU Number..................46K6601
FRU Number..................46K6601
Network
Network Address.............00145E76B484
Address.............00145E76B484
ROM
ROM Level.(alterable).......EP0170
Level.(alterable).......EP0170
Hardware
Hardware Location
Location Code......U5877.001.00H0301-P1-C5-T1
Code......U5877.001.00H0301-P1-C5-T1

© Copyright IBM Corporation 2009, 2013. All Rights Reserved.


US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
lsdev
IBM Power Systems

• lsdev displays device information, including the device state.


Software (AIX)
location codes
## lsdev
lsdev |grep
|grep ent
ent
ent0
ent0 Available
Available 02-08
02-08 2-Port
2-Port 10/100/1000
10/100/1000 Base-TX
Base-TX PCI-X
PCI-X Adapter
Adapter (14108902)
(14108902)
ent1
ent1 Available
Available 02-09
02-09 2-Port
2-Port 10/100/1000
10/100/1000 Base-TX
Base-TX PCI-X
PCI-X Adapter
Adapter (14108902)
(14108902)
ent2
ent2 Available
Available Virtual
Virtual I/O
I/O Ethernet
Ethernet Adapter
Adapter (l-lan)
(l-lan)
ent3
ent3 Available
Available Shared
Shared Ethernet
Ethernet Adapter
Adapter

## lsdev
lsdev -Cc
-Cc disk
disk
hdisk0
hdisk0 Available
Available 03-08-01-8,0
03-08-01-8,0 16
16 Bit
Bit LVD
LVD SCSI
SCSI Disk
Disk Drive
Drive
hdisk1
hdisk1 Available
Available 01-00-02
01-00-02 MPIO
MPIO Other
Other FCFC SCSI
SCSI Disk
Disk Drive
Drive
hdisk2 Available
Available 00-08-00 SAS
SAS Disk
Disk Drive
hdisk2 00-08-00 Drive -Cc : list by class
-Cl : list by device name
## lsdev
lsdev -Cl
-Cl proc2
proc2
proc2
proc2 Available
Available 00-02
00-02 Processor
Processor

## lsdev
lsdev -p
-p pci5
pci5
ent8
ent8 Available
Available 05-08
05-08 2-Port
2-Port 10/100/1000
10/100/1000 Base-TX
Base-TX PCI-X
PCI-X Adapter
Adapter (14108902)
(14108902) Child
ent9
ent9 Available
Available 05-09
05-09 2-Port
2-Port 10/100/1000
10/100/1000 Base-TX
Base-TX PCI-X
PCI-X Adapter
Adapter (14108902)
(14108902) devices

Device state
Locating the
parent
lsdev –Cl
## lsdev cd1 –F
–Cl cd1 –F parent
parent device
ide0
ide0

© Copyright IBM Corporation 2009, 2013. All Rights Reserved.


US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
lsslot
IBM Power Systems

• lsslot displays dynamic reconfigurable slots, such as hot plug slots,


and their characteristics.
Lists all logical I/O
slots on the system

## lsslot
lsslot -c
-c slot
slot
## Slot
Slot Description
Description Device(s)
Device(s)
U787F.001.DPM0WB8-P1-C1
U787F.001.DPM0WB8-P1-C1 Logical
Logical I/O
I/O Slot
Slot pci7
pci7 fcs1
fcs1
U787F.001.DPM0WB8-P1-C3
U787F.001.DPM0WB8-P1-C3 Logical
Logical I/O
I/O Slot
Slot pci4
pci4 sisscsia1
sisscsia1
U787F.001.DPM0WB8-P1-T5
U787F.001.DPM0WB8-P1-T5 Logical I/O
Logical I/O Slot
Slot pci5
pci5 ent0 ent1
ent0 ent1
U787F.001.DPM0WB8-P1-T10
U787F.001.DPM0WB8-P1-T10 Logical
Logical I/O
I/O Slot
Slot pci3
pci3 sisscsia0
sisscsia0
U787F.001.DPM0WB8-P1-T12
U787F.001.DPM0WB8-P1-T12 Logical
Logical I/O
I/O Slot
Slot pci2
pci2 ide0
ide0
Lists all PCI hot
U9131.52A.063412G-V1-C0
U9131.52A.063412G-V1-C0 Virtual
Virtual I/O
I/O Slot
Slot vsa0
vsa0 plug slots

## lsslot
lsslot -c
-c pci
pci
## Slot
Slot Description
Description Device(s)
Device(s)
U787F.001.DPM0WB8-P1-C1
U787F.001.DPM0WB8-P1-C1 PCI-X
PCI-X capable,
capable, 64
64 bit,
bit, 133MHz slot fcs1
133MHz slot fcs1
U787F.001.DPM0WB8-P1-C3
U787F.001.DPM0WB8-P1-C3 PCI-X
PCI-X capable,
capable, 32
32 bit,
bit, 66MHz
66MHz slot
slot sisscsia1
sisscsia1
U787F.001.DPM0WB8-P1-C4
U787F.001.DPM0WB8-P1-C4 PCI-X
PCI-X capable,
capable, 64
64 bit,
bit, 266MHz
266MHz slot
slot fcs0
fcs0

© Copyright IBM Corporation 2009, 2013. All Rights Reserved.


US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
lsattr and chdev commands
IBM Power Systems

• Use lsattr to view and chdev change device attribute data.


## lsattr
lsattr -El
-El rmt0
rmt0

block_size
block_size 1024
1024 BLOCK
BLOCK size
size (0=variable
(0=variable length)
length) True
True
compress
compress yes
yes UseUse data
data COMPRESSION
COMPRESSION True
True
Current block
density_set_1 size = 1KB
density_set_1 71
71 DENSITY
DENSITY setting
setting #1#1 True
True
density_set_2
density_set_2 38
38 DENSITY
DENSITY setting
setting #2#2 True
True
extfm
extfm yes
yes UseUse EXTENDED
EXTENDED file
file marks
marks True
True
mode
mode yes
yes UseUse DEVICE
DEVICE BUFFERS
BUFFERS during
during writes
writes True
True
ret
ret no
no RETENSION
RETENSION onon tape
tape change
change or
or reset
reset True
True True indicates
ret_error
ret_error no
no RETURN
RETURN error
error onon tape
tape change
change oror reset
reset True
True that the attribute
size_in_mb
size_in_mb 36000
36000 Size
Size in
in Megabytes
Megabytes False
False is user settable

• To display a specific attribute:


– lsattr –E –l rmt0 -a block_size
• Tapes cannot be read when the tape device has a different block size.
– Changing the value to 0 (variable) can help overcome this problem.
## chdev
chdev -l
-l rmt0
rmt0 -a
-a block_size=0
block_size=0 Set block
rmt0 size to 0
rmt0 changed
changed

## lsattr
lsattr -El
-El rmt0
rmt0 || grep
grep block_size
block_size Block size
block_size
block_size 00 BLOCK
BLOCK size
size (0=variable
(0=variable length)
length) True
True changed

© Copyright IBM Corporation 2009, 2013. All Rights Reserved.


US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
Device states
IBM Power Systems

• Undefined
– The device is unknown to the system.
• Defined
– The device is know to the system but it is unavailable for use.
• Available
– The device is available and ready for use.
• Stopped
– The device is unavailable but remains known by its device driver.
• The mkdev and cfgmgr commands make devices available
for use.
• The rmdev command can make devices unavailable for use
and completely remove them from the system.

© Copyright IBM Corporation 2009, 2013. All Rights Reserved.


US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
/dev directory, device configuration, and control
IBM Power Systems

• On UNIX platforms, access to devices is provided through special device


files that reside in /dev directory.
## lsdev
lsdev -Cc tape;
tape; ls
ls -l
-l /dev/*rmt0*
-Cc /dev/*rmt0* Tape drive will be
/dev/*rmt0* not found
/dev/*rmt0* not found configured by loading the
device into the kernel
## cfgmgr
cfgmgr (/unix).

## lsdev
lsdev -Cc
-Cc tape
tape
rmt0
rmt0 Available 04-08-01-2,0
Available 04-08-01-2,0 LVD
LVD SCSI
SCSI 4mm
4mm Tape
Tape Drive
Drive

## ls
ls -l
-l /dev/*rmt0*
/dev/*rmt0*
crw-rw-rw-
crw-rw-rw- 11 root
root system
system 37,
37, 00 13
13 Oct
Oct 14:43
14:43 /dev/rmt0
/dev/rmt0
crw-rw-rw-
crw-rw-rw- 1 root
1 root system
system 37,
37, 1 13 Oct 14:43
1 13 Oct 14:43 /dev/rmt0.1
/dev/rmt0.1
…….
……. Removed
Removed rmt0.2
rmt0.2 through
through rmt0.6
rmt0.6
crw-rw-rw-
crw-rw-rw- 11 root
root system
system 37,
37, 77 13
13 Oct
Oct 14:43
14:43 /dev/rmt0.7
/dev/rmt0.7

## rmdev Minor number.


rmdev -l
-l rmt0
rmt0 The Kernel will
rmt0 Defined Certain devices like
rmt0 Defined reference the tape tapes can behave in
device through the different ways.
## mkdev
mkdev -l
-l rmt0
rmt0 major number (37).
rmt0
rmt0 Available
Available

## rmdev
rmdev -l
-l rmt0
rmt0 -d
-d
rmt0
rmt0 deleted
deleted
© Copyright IBM Corporation 2009, 2013. All Rights Reserved.
US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
rendev command
IBM Power Systems

• You must first unconfigure device to Defined state first.


## rmdev
rmdev -l
-l hdisk2
hdisk2
hdisk2 Defined
hdisk2 Defined

• Use rendev to change device name.

## rendev
rendev -l
-l hdisk2
hdisk2 –n
–n testdisk
testdisk

Device to be New desired device name


renamed

• Display new device name:


## lsdev
lsdev –Cc
–Cc disk
disk
hdisk0
hdisk0 Available
Available Virtual
Virtual SCSI
SCSI Disk
Disk Drive
Drive
hdisk1
hdisk1 Available
Available Virtual
Virtual SCSI
SCSI Disk
Disk Drive
Drive
testdisk Available Virtual SCSI Disk Drive
testdisk Available Virtual SCSI Disk Drive
© Copyright IBM Corporation 2009, 2013. All Rights Reserved.
US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
Checkpoint
IBM Power Systems

1. What does the following location code mean?


fcs0
fcs0 U78A0.001.DNWGGRX-P1-C3-T1
U78A0.001.DNWGGRX-P1-C3-T1 4Gb
4Gb FC
FC PCI
PCI Express
Express Adapter
Adapter

2. What is the purpose of a device major number? How would you locate
the major number of a disk, hdisk18?

3. True or False: cfgmgr is a binary executable that runs at system


initialization time to configure devices on the system.

4. What commands can you run on AIX to document the system


configuration?

© Copyright IBM Corporation 2009, 2013. All Rights Reserved.


US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
Checkpoint solutions
IBM Power Systems

1. What does the following location code mean?


fcs0
fcs0 U78A0.001.DNWGGRX-P1-C3-T1
U78A0.001.DNWGGRX-P1-C3-T1 4Gb
4Gb FC
FC PCI
PCI Express
Express Adapter
Adapter

The answer is port 1 of a 4 Gb Fibre Card, connected to planar 1, card slot 3,


in Power 550 CEC (U78A0).

2. What is the purpose of a device major number? How would you locate the
major number of a disk, hdisk18?
The answers are the AIX kernel can determine the actual driver and device to
be accessed for a user-level request. Perform a long directory list of the /dev
directory.

3. True or False: cfgmgr is a binary executable that runs at system initialization


time to configure devices on the system.
The answer is true.

4. What commands can you run on AIX to document the system configuration?
The answers are prtconf, lsdev, lscfg, lsslot, and lsattr.
© Copyright IBM Corporation 2009, 2013. All Rights Reserved.
US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
Exercise
IBM Power Systems

System configuration
and devices

© Copyright IBM Corporation 2009, 2013. All Rights Reserved.


US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp
Unit summary
IBM Power Systems

Having completed this unit, you should be able to:


• Explain device terminology
• List device configuration and status
• Configure new devices
• Manage device states
• Interpret physical and virtual location codes

© Copyright IBM Corporation 2009, 2013. All Rights Reserved.


US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp

You might also like