Вы находитесь на странице: 1из 208

AIX 5L 5.

SC23-4908-01

AIX 5L 5.3

SC23-4908-01



B, , . 187.

( 2004 )
AIX 5L 5.3
, .
. ,
: Information Development, Department H6DS-905-6C006, 11501 Burnet Road,
Austin, Texas 78758-3493.
: aix6kpub@austin.ibm.com. IBM
- .
Copyright (c) 1993, 1994 Hewlett-Packard Company
Copyright (c) 1993, 1994 International Business Machines Corp.
Copyright (c) 1993, 1994 Sun Microsystems, Inc.
Copyright (c) 1993, 1994 Novell, Inc.
.
, , ,
.
.
RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the United States Government is subject to the
restrictions set forth in DFARS 252.227-7013 (c)(1)(ii) and FAR 52.227-19.
" " -
, , ,
, -
.

.
;
. HEWLETT-PACKARD, INTERNATIONAL BUSINESS MACHINES CORP., SUN
MICROSYSTEMS, INC. UNIX SYSTEMS LABORATORIES, INC.,
/ ,
.
Copyright International Business Machines Corporation 1999, 2004. .


. . . . . .

ISO 9000 . . . . . . . .
. . .

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

1. . . . .
AIX
AIX
man . . . . . . . . . . .

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

vii
vii
vii
vii

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

2. . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . .
. . . . . . .

RAM . . . . . . . .
. . . . . . . . . .
. . . . . . . .

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

. 5
. 5
. 6
. 6
. 8
. 9
. 9
. . . . . . . . . . . . . . . . . . 10

3. . . . . . . . . . .
. . . . . .
. .

. . .

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.

.
.
.
.
.

1
1
2
4

13
13
19
21
31

4. . . . . . . . . . . . . . . . . 33
(VMM) . . . . . . . . . . . . . . . . . . . 33
. . . . . . . . . . . . . . . . . . . . 34
5. . . . . . . . . .

. . . . .
. . . . . . . . .
. . . . . . . . . . . .

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

39
39
45
46
51

6. . . . . . . . .
- . . . . . . . . . . . . . . . .
. . . . . . . . . . .
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

65
65
67
70
70

7. . . . . .
. . . . . . . . .
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

73
73
74
74

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.
.

.
.
.
.

.
.
.
.
.

.
.
.
.

.
.
.
.
.

.
.
.
.

.
.
.
.
.

.
.
.
.

.
.
.
.
.

.
.
.
.

.
.
.
.
.

.
.
.
.

.
.
.
.
.

.
.
.
.

.
.
.
.

8. . . . . . . . . . . . . . . . . . . . . . . . . . 83
9. .
WLM . . . . . . .
WLM . . . . . . . .
WLM . . .
WLM
Copyright IBM Corp. 1999, 2004

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

85
85
90
95
98

iii

WLM . . . . . . . . . . . . . . .
WLM . . . . . .
WLM . . . . . . . . . . . . . . . .
, WLM .
. . . . .

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

105
107
110
111
113

10. (SRC) . . . . . . . . . . . . 115


. . . . . . . . . . . . . . . . . . . . . . . 115
11. . . . . . . . . . . . . . . . . . . . . . . . . . 117
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
12. Web- . . . . . . . . . . . . . . . . . . . . . . 127
13. (SMIT) . . . . . . . . . . . . . . . . . . 129
14. AIX . . . . . . . . . . . . . . . . . . . . . . . . . . 131
IBM AIX Information Center . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
15. . . . . . . . . . . .
. . . . .
. . . . . . . . . . . . .
. . . . . . .
PCI
- (MPIO) . . . . . .

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

133
133
134
136
139
142

16. . . . . . . . . . . . . . . . . . . . . . 149
. . . . . . . . . . . . . . . . . . 149
. . . . . . . . . . . . . . . . . . 161
A. BSD . . . . . . . . .
AIX BSD - . . . . . . . . . .
AIX BSD . . . . . . . . . . . .
BSD 4.3 . . . . . . . . . .
BSD 4.3 . . . . . . . . . . . . . . .
BSD 4.3 . . . . . . . . . . . .
- BSD 4.3 . . . . . . . . .
- BSD 4.3 . . .
Cron - BSD 4.3 . . . . . . . . . . . . . .
BSD 4.3 . . . . . . . . . . . . . . . . .
BSD 4.3, SVR4 . . . . . . . .
- BSD 4.3 . . . . . . . .
BSD 4.3 . . . . . . . . . . .
BSD 4.3 . . . . . . . . . . . .
- BSD 4.3 . . . . . . . . . .
man - BSD
4.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
NFS NIS ( Yellow Pages) - BSD
4.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
BSD 4.3 . . . . . . . . . . . . . . . . . .
-
BSD 4.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
BSD 4.3 . . . . . . . . . . . . . . . . .
- BSD 4.3 . . . . . . . . . . .
UUCP - BSD 4.3 . . . . . . . . . . . . .

iv

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

163
163
164
164
167
168
169
169
172
172
173
174
175
176
176

. 178
. 178
. 179
.
.
.
.

182
182
184
184

B. . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189

vi


,
,
, ,
.
: .
- , .


AIX.
. AIX 5L
5.3 - : .
AIX 5.2,
AIX . AIX 5L 5.3:
.

, , ,
, ,
. ,
, - ,
, ..
,
.

, ,
,
.

AIX
AIX ,
. , ls . LS,
, . , FILEA, FiLea filea - ,
.
.

ISO 9000
, ISO 9000.


v AIX 5L 5.3 - :
v
v
v
v

AIX 5L 5.3:
AIX 5L 5.3:
AIX 5L 5.3 - :
AIX 5L Version 5.3 Communications Programming Concepts

Copyright IBM Corp. 1999, 2004

vii

v
v
v
v
v

AIX 5L Version 5.3 Kernel Extensions and Device Support Programming Concepts
AIX 5L Version 5.3 Files Reference
Performance Toolbox Version 2 and 3 for AIX: Guide and Reference
AIX 5L 5.3:
Common Desktop Environment 1.0: Advanced Users and System Administrators Guide.

viii

1.
, , UNIX
. ,
. , ,
.
:
v AIX
v AIX . 2
v man . 4

AIX
,
.
:
v
v AIX . 2
v man . 4


:
v (SMIT). ,
, .
SMIT :
,

, .



SMIT
13, (SMIT), . 129.
v Web- , -
, , SMIT,
, :




Copyright IBM Corp. 1999, 2004



, ,
Web- .
, -, .
Web-
12, Web- , . 127.

AIX
AIX,


(LVM) ,
. .
, , .
.
, .
, ,
,
.
. 13.


(SRC)
. .
SRC
. ,
,
.
.
115.


(ODM) .
ODM. ,
SMIT ODM
. ODM :
v
v SMIT (, )
v
v
v


(SWVPD)
. SWVPD
(ODM). SWVPD (lslpp)
(lppchk) . ODM
.

installp ODM SWVPD :


v
v
v ,
.
v , ,
.
v , ,
.
v
v , ,

v : , , , ,
.

(WLM)
WLM ,
. CPU
, . WLM
, .
.

. 9,
, . 85.


.
.
, ,
(VRMF). .
,
0. AIX, (, AIX 5.2)
.
, .

.
VRMF , . ,
AIX 5.2 5.2.1.0; - 5.2.2.0 ..
PTF

PTF , .
PTF.


- PTF,
.


:
oslevel

,
(, 4.3.3.0), :
1.

oslevel -l 4.3.3.0

, ( 5100-02):
oslevel -r 5100-02

, 5100-02,
:
oslevel -rl 5100-02

(, bos.mp), :
lslpp -L bos.mp

man
man ,
. , ls :
>man ls

HTML.
, man, Web-,
.
man AIX 5L Version 5.3 Commands
Reference. . man -
BSD 4.3 . 178.

2.
, : ,
, . ,
reboot shutdown.
:
v
v . 6
v . 6
v . 8
v RAM . 9
v . 9
v . 10


.
.


. ,
, ,
(, )
. :
v
v
v .


bosboot
.
, , .
.
AIX 5L
5.3 - : .


. ,
3, ,
. initdefault
/etc/inittab. init. /etc/inittab
. init
/etc/inittab .
:
v
v
v /etc/inittab.
Copyright IBM Corp. 1999, 2004


,
.
:
v , .
v (/) /usr.
:

.

.

. .

.
, ,
.

, .

.
8.

,
.
, (,
).
. ,
, RAM . 9.
.
,
. ,
.


.
, .
( )
reboot shutdown ( )
. :
1. ROS
2.
3. .

ROS
ROS .
:
1. .
ROS, (POST).

2. (IPL) ROS
, .
bootlist. NVRAM ,
,
.
. NVRAM ,
.
, .
, .

3.

4.

5.
6.

:
( ROS) ( NVRAM).
Service ,
, .
,
(PSN). ,
(IPL).

, .
,
, NVRAM. , , ,
RAM .
, .
init, rc.boot.


init rc.boot. rc.boot
. :
1. restbase RAM
(ODM) .
2. ,
ODM.
3. sys, bus, disk, SCSI,
(LVM) (rootvg).
4. ,
ODM.


:
1. init rc.boot. rc.boot
:
a. ipl_varyon rootvg.
b. , ,
.
c. swapon .
d. ODM RAM .
e. rc.boot.
2. rc.boot
RAM , .
2.

3. init , /etc/inittab.
/etc/inittab rc.boot,
:
a. /tmp, .
b. 2 .
c. savebase .
d. rc.boot.
.


,
,
. (-,
..), .

.
1. .
2. ROS,
.
3. ROS .
bootlist. NVRAM ,
,
.
.

4.

5.
6.
7.

8.

:
( ROS) ( NVRAM).
,
, .
,
(PSN). ,
(IPL).

, ,
.
,
, NVRAM.
, ,
RAM.
cfgmgr ODM
, ,
.
-, , rootvg
, rootvg (,
).
. .

,
.

: , rootvg,
RAM,
,
.
, init
S. ,
bosboot.

RAM
RAM - ,
, .
.
RAM
, rootvg .
, rootvg
. ,
RAM .
init RAM, ,
(ssh). ssh
rc.boot. rc.boot ,
. ,
RAM. ,
,
. -
BOS. ,
rc.boot RAM. rc.boot
ssh , .
rc.boot init.
inittab rc.boot,
.
RAM,
.
. - ,
RAM. RAM
bosboot mkfs.
bosboot.


, :
v
v
v
v
v .

2.


AIX , , . AIX
:
v
v -
.
AIX 5L 5.3 : .


() .
0 126. - , - 126.
60.
nice. root .
.
,
, .
60 ( )
.

.
(shdaemon), .
,
. ,
.
. ,
:

1)
2)
3)
4)
5)

-
-------------- ---------------

60

60
60

2
2

60

39

/dev/console
/dev/tty0

-
- -.
,
. shdaemon
- , .
, shconf, -
. -
. , shconf,
.

10

- :

/dev/console

2.

11

12

3.

:
v
v . 19
v . 21
v . 31


.
( , PV) , , /dev/hdisk0. ,
, (VG).
(PP) .
: , ,
, .
.
(LV). -
.
,
.
( .),
(, ).
(LP).
.
,
.
,
.
, ,
.
(JFS JFS2) . JFS
, (4 ).
. ,
, .
4 (512 , 1 2 ).
(rootvg),
, , ,
. , ,
extendvg. rootvg,
( mkvg).
, (SMIT)
Web- .


, :
v . 14
Copyright IBM Corp. 1999, 2004

13

v
v
v
v


. 15
. 16
. 16

1. . , ,
. , ,
; .


,
.
,
, .
AIX 5.2 LVM ,
RAID LUN.
, LUN.


.
1 32 .
1 128 .
1024 . .
255 .
,
, .
. 15.
(rootvg),
, , ,

14

. rootvg : ,
, , -
. rootvg
. , rootvg .
rootvg
.
mkvg.
extendvg, - reducevg, -
chvg. : (lsvg),
(exportvg), (importvg), (reorgvg), (syncvg),
(varyonvg) (varyoffvg).

. , ,
. ,
,
. ,
, .
migratepv
. ,
. , ,
.
,
, ,
. ,
, ,
(VGDA).
VGDA . VGDA
,
. ,
.
, VGDA.

.
(, ),
. ,
map ( )
,
,
(- ). map

. VGDA , ,
( , ..),
.



, . -
,
.

3.

15

,
(, mkvg -s).
.

2. , . ,
, .


. ,
,
, ,
. mklv
.
, .
chlv,
- extendlv.
512 ,
. chlv.
: LV,
lslv, .
, ,
.
cplv, lslv,
rmlv, mklvcopy
rmlvcopy . ,
.
255 ( - 511
, - 4095 ),
.


.
,
, .
.
. , , .
,
.

16



.
, , .
- .
.
crfs.
5, , . 39.


.
32 ( - 128,
- 1024),
mkvg. rootvg
.

255

(MAXPVS / )
. MAXPVS 32 ,
128 1024
.

: (1016 x
) ;
- 1024 .
: 2097152 126
.
.

MAXLVS : 255 ,
511 4095
.

, ,
1016 , (
) ,
. chvg -t.

.
, , 9 ,
4 , 2250 .
2250 3 (1016 * 3 = 3048).

, 1016 * . ,

.
,
. MAXPVS/. ,
2
16 (32/2). 2

3.

17

64 (128/2).
2
512 512 (1024/2).


(LVM) ,
, ,
. (LVM) ,
.
LVM ,
, .
LVM (LVDD) LVM.
(LVDD) - , -.
-
. LVM
; .
LVM Understanding the Logical Volume Device
Driver AIX 5L Version 5.3 Kernel Extensions and Device Support Programming Concepts
AIX 5L 5.3 : .



, LVM
.


varyonvg varyoffvg.
, .
LVM ,
. , (VGDA)
(VGSA), .
VGDA
, ,
, . VGSA
, .
- ,
, ,
. , .



(VGDA/VGSA).
VGDA/VGSA .
VGDA/VGSA. ,
VGDA/VGSA.
, VGDA/VGSA, - .
VGDA/VGSA.
, (, ,
VGDA/VGSA) (51%) VGDA/VGSA

18

. , ,
VGDA/VGSA, ,
VGDA/VGSA. , VGDA/VGSA,
. ,
.

(LVM). , -,
, , .
,
.

. .
.
. ,
, . ,
, . ,
, , ,
.


(LVM) ,
VGDA VGSA . ,
, ,
VGDA/VGSA. ,
. VGDA VGSA,
,
.
, , ,
.
, .
: , rootvg,
,

rootvg.
, .


- ,
. .
. 21.
.

. ,
, ,
.
.
,
.
. .
3.

19


:
v .

v
v

,
,

.

. ,
, .
varyoffvg, exportvg.

importvg .
.
.
.
.
;
.
. , .
.
, ,
, (.
varyoffvg, exportvg, importvg varyonvg).


,
, .
, ,
:
v , ,
, 51% .
. 18.

.
v ,
VGDA (.
AIX 5L 5.3 - :
).
.
,
. ,
, .
,
.
, (.
Strict . 26), (.
. 27).

20



, :
v , .
.
v .
(..
) A ( A) B
( B),
.
, A,
B, B - A.
v , , .
( )
.
v .
, (VGDA).

.
v ,
. ,
. ,
, , -
, .



, ,
.
- , ,
, , .
, ;
.
,
.
- .
,
, .

. , .
. AIX 4.3.3
. AIX
5.1,
, -
.
,
.
AIX 5L
5.3: .

3.

21

,
. ,
.
, LVM
.
: -
.
.

, , , ,
.
,
, .

. ()
, , , , LVM
, .
, ,
. ,
.
AIX LVM RAID:
1. RAID
RAID 0

RAID 1

RAID 10 0+1

,
.
rootvg .
-
. , ,
, .
,
, . ,
-
. LVM ,
. .
,
syncvg.

bosboot. , bosboot
.

22


, (LVDD)
, ,
.
, .. ,

.

: , , ,
.

. ,
,
: , .
.
.

.
.
, ,
.

.
. LVM .
LVM .
.

.
.

, .
- yes. yes,
. no,
. ,
. ,
- . yes,
. no,
.
: ,

, .

(MWC)
(MWC) ,
, -
.
. MWC.

3.

23

MWC ,
MWC . - MWC
. MWC ,
.
MWC .
, (LTG).
LTG: 128 , 256 , 512 , 1024 , 2 , 4 ,
8 16 .
: LTG 128
-
. LTG - ,
LTG.
.
,
.
MWC. MWC . MWC
.
MWC ,
.
. , ,
.
.
MWC ,
.
. ,
.
, MWC ,
. , :
syncvg -f -l LTV

, ,
. , .
, ,
. LVM
. , iodone
. ( ), . ,
( iodone)
, MWC.
,
, , .
,
.
MWC
, .
MWC . MWC
LTG; MWC .

.

24

, LVM. LVM,
, ,
( , ,
).
: , JFS
, ,
MWC.


,
.
.
mklv chlv:
v Range ,
.
v Strict mklv,
.
v Super Strict ,
.
v
Super Strict.

Range
(Range = minimum),

. (Range =
maximum),
. .

minimum. minimum ,
.
,
, .

. , ,
. ,
, , -
, , .
.

3. . .
- ; .

3.

25

maximum,
( ).
,
.
maximum .

.

4. . ,
.


.
.

Strict
- .
.

Strict.

( ).
Strict. ,
,
, Strict.
Strict = y ,
. Strict = n .
Super Strict
, .
: ,
Strict n.
.

Strict.

26

hd1

hd2

hd1
2

hd2
hd1
2 3

hd2
3


( Strict)
hd1
3

hd2
3

hd1
2

hd2
2
hd1
1

hd2
1


( Strict)

5. /Strict. ,
Strict , .
Strict ,
.


Strict:

hd1
2
( 1)

hd1
1
( 1)

hd1
1
( 2)

hd1
2
( 2)


( Strict)
hd1
hd1
1
2
( 1)
( 1)

hd1
1
( 2)

hd1
2
( 2)


( Strict)

6. /Strict. ,
Strict , .
Strict , .


,
,
.
,
. ,
.
: - ,
.

3.

27

:
MWC ,
MWC. , MWC
, , .
,
:
1.
2.
3.
4.
5.
, , ,
, .
, , ,
. ,
.



, .
. ,
,
. ,
, , ,
.
.



, ,
.
Web- , SMIT mklv
-m.
, rootvg lv06 ,
1 3, 41 45 50 60 hdisk1,
:
1. , :
lspv -p hdisk1

2. , /tmp/mymap1, :
hdisk1:1-3
hdisk1:41-45
hdisk1:50-60

mklv ,
.
. ( ).
3. :
mklv -t jfs -y lv06 -m /tmp/mymap1 rootvg 10

28


,
,
. .
: .

.
VGName lv07 12 16
hdisk1, hdisk2 hdisk3 :
mklv -y lv07 -S 16K VGName 12 hdisk1 hdisk2 hdisk3

VGName lv08 12
8 :
mklv -y lv08 -S 8K -u 3 VGName 12


AIX 5L 5.3: .



.
. ,
, .
mklv, chlv.

AIX 5.1,
.
. ,
, SSA. ,
SSA.

. MWC -
,
.
chvg chpv, , :
chvg -h__
-s_
_

__ :
y

.
, .

,
.

( ).

3.

29

_ , :
y

. ( .)

_ .


AIX 5.1,
, . ,
-
.
- . ,
.
, lvmstat
. lvmstat ,
.
lvmstat .
,
migratelp.

lvmstat:
# lvmstat -v rootvg -e
# lvmstat -v rootvg -C
# lvmstat -v rootvg

:

hd8
paging01
lv01
hd1
hd3
hd9var
hd2
hd4
hd6
hd5

iocnt
4
0
0
0
0
0
0
0
0
0

Kb_read
0
0
0
0
0
0
0
0
0
0

Kb_wrtn
16
0
0
0
0
0
0
0
0
0

/
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00

. /unix
/tmp. lvmstat rootvg:
# cp -p /unix /tmp
# lvmstat -v rootvg

hd3
hd8
hd4
hd2
paging01
lv01
hd1

30

iocnt
296
47
29
16
0
0
0

Kb_read
0
0
0
0
0
0
0

Kb_wrtn
6916
188
128
72
0
0
0

/
0.04
0.00
0.00
0.00
0.00
0.00
0.00

hd9var
hd6
hd5

0
0
0

0
0
0

0
0
0

0.00
0.00
0.00

hd3, /tmp, hd8,


JFS, hd4 (/), hd2,
/usr, hd9var, /var.
hd3 hd2:
# lvmstat -l hd3
Log_part
mirror#
1
1
3
1
2
1
4
1
# lvmstat -l hd2
Log_part
mirror#
2
1
3
1
7
1
4
1
9
1
14
1
1
1

iocnt
299
4
0
0

Kb_read
0
0
0
0

Kb_wrtn
6896
52
0
0

/
0.04
0.00
0.00
0.00

iocnt
9
9
9
4
1
1
0

Kb_read
0
0
0
0
0
0
0

Kb_wrtn
52
36
36
16
4
4
0

/
0.00
0.00
0.00
0.00
0.00
0.00
0.00

-
. - (iocnt),
(Kb_read Kb_wrtn), .
.
, .
, , .
iocnt.
migratelp , (
lvmstat) .
, .
.
:
# migratelp hd3/1 hdisk1/109
migratelp: 1 1
hd3 109 hdisk1.


, , ,
.
Web-
. AIX 5L 5.3 -
: .



lspv.
, , . ,
,
.
. :
1. lspv.
3.

31

2. . .
,
.
3. , ,
.
4. ,
. . .

32

4.
AIX , ,
. RAM
(VMM). ,
. - ,
, .
. ,
,
.

AIX 5L 5.3 - :
.

(VMM)
(VMM) .
, ,
(RAM), . AIX ,
, .
RAM (VMM).


AIX 4096 , .
4096 . VMM
:
v
v ,
.
VMM .
, , VMM
.
, VMM.


VMM ,
. AIX ,
, . VMM
.

VMM.


AIX . VMM
.
. , ,
. JFS JFS2 RAM. VMM
, , ,
.

Copyright IBM Corp. 1999, 2004

33

.
.
.
, .
.
.


.
, . ,
, .
, .
.
VMM : .
.

.
.

VMM
, (
),
,
. VMM , ,
, .

, .
.
.
.
, .
VMM .


- ,
, .
. ,
,
.
,
NFS. NFS,
, NFS .
.
.
,
.
.
AIX 5L 5.3
- : .

34



. NFS
, .
, ,
.
:
v
v . 37
v , . 37


AIX .
( )
PSALLOC. - .
PSALLOC,
. ,
.

PSALLOC.
PSALLOC , null, ,
early, ( late).
(late)
, .

, .
, .
, .

, , ,
.
,
, .
,
.
.
.

. , ,
. ,
, . SIGDANGER
.
, SIGDANGER, SIGKILL.

PSALLOC early.
, .

4.

35

PSALLOC early,
.
,
malloc brk .
, , SIGKILL
.
, PSALLOC
early . (
PSALLOC AIX 5L
5.3 - : .)
:
v malloc
v free
v calloc
v realloc
v brk
v sbrk
v shmget
v shmctl
:
.
.
,
, . ,
( ),
SIGKILL. , ,
.
, ,
.
, .
.
, .
,
. AIXwindows
250 .
, ,
.
,
, ,
. lsps -s ,
, .


, ,
PSALLOC. ,
( ),
:

36

1. PSALLOC, getenv.
2. , PSALLOC setenv.
PSALLOC execve, execve,
.
PSALLOC, , ,
.
3. getenv PSALLOC,
. .


AIX
:
v 16 . hd6 64
AIX 4.3 .
v 20% .
v 256 ,
.
v 256 , 512 .

,
/etc/swapspaces ,
swapon -a. mkps -a
rmps. , chps -a.
,
chps -d ( ).
:
chps
lsps
mkps

rmps
swapoff

swapon

.
.
.
mkps mklv .
NFS mkps mkdev
. NFS mkps
NFS , .
.
.
.
rmps.
.
swapon .
, , swapon
.


:
v
v
v
:
v .
4.

37

v .

38

5.
- () .
, , .
, .
.

.
.
, .
, . ,
,
. JFS JFS2 (AIX 5.2 ) a
.
: 32 512.

chlv.
mkfs
( ) ( smit).

. 45.
,
.
, .
.
.
mount.
.
system. ,
/etc/filesystems, .
, ,
umount.
. 46.
AIX 5.2 ,
(JFS) (JFS2).

. 51.


- ,
.
.
-,
. ,
:
v
v , .
v .
Copyright IBM Corp. 1999, 2004

39

:
v ,
, /usr.
v , (, )
/var.
v , (, ),
/usr/share.
v (/) , .
, , , ,
.
v /home .
v /export , ,
, /usr/share ,
/usr.


.
, ,
. , ,
.
.

etc
bin

/usr/bin

sbin
dev
tmp
var
/

/home

usr
home
export
lib

/usr/lib

tftpboot
...
7. . .
/bin /usr/bin. /lib /usr/lib. /u
/home.


(/).

40

/etc

, .
:
v /etc/hosts
v /etc/passwd
/etc . ,
/etc, /usr/sbin.
/etc .
:
v /etc/chown - /usr/bin/chown.

/bin
/sbin

/dev

/tmp
/var

/u
/usr

/home

/export

/lib
/tftpboot

v /etc/exportvg - /usr/sbin/exportvg.
/usr/bin. UNIX
/bin , /usr/bin.
,
/usr. , ,
, /sbin
.
. /dev
, ,
.
, ,
. /tmp - .
, . /var
,
.
/var . 43.
/home.
,
, , ASCII.
/usr.

/usr .
/usr
/usr.
, .
/home .
/home .
,
. /home ,
/home.
, .
/export
/export . 44.
/usr/lib.
/usr.
.

/usr
/usr ,
. /usr .

5.

41

8. /usr. /usr: /bin, /ccs, /lib, /lpp,


/adm /var/adm /man /usr/share/man.

/usr ,
/dev/hd2.
/usr ,
. /usr ,
, .
/usr, /usr/share,
.
/usr :
/usr/bin
/usr/ccs
/usr/include
/usr/lbin
/usr/lib

/usr/lpp
/usr/sbin

/usr/share

. /usr/bin
ls, cat mkdir.
.
, .
.
, , lib*.a.
/lib (/) - /usr/lib,
, /lib, /usr/lib.
.
.
,
(SMIT). , /etc,
/usr/sbin.
, .

/usr/share . 43.

/var
/usr/adm

42

/var/adm

/usr/mail
/usr/news
/usr/preserve
/usr/spool
/usr/tmp

/var/spool/mail
/var/news
/var/preserve
/var/spool
/var/tmp; /usr
.

/usr/share /usr/lib
/usr/dict
/usr/man
/usr/lpd

/usr/share/dict
/usr/share/man
/usr/lib/lpd.

/usr/share
/usr/share , .
.

/usr, - /usr/share. /usr/share
, . ,
/usr: ,
/usr/share.
/usr/share.

9. /usr/share. /usr/share: /lib,


/lpp, /dict /man.

/usr/share :
/usr/share/man
/usr/share/dict
/usr/share/lib
/usr/share/lpp

,

, , terminfo,
learn,tmac, me macros
,
.

/var
: /var
, ,
, ,
. , ,
/var, skulker.
/var 4 .
5.

43

/var, , /var/adm/wtmp /var/adm/ras/errlog,


.
/var, :
/var/adm/ras/trcfile
/var/tmp/snmpd.log


snmpd.

/var /var.

10. /var. /var: /adm, /news , /preserve,


/spool /tmp.
/var/adm
/var/news
/var/preserve
/var/spool
/var/tmp



, ;
, /usr/preserve
, ;
, /usr/spool
; , /usr/tmp
. /usr/tmp
/var/tmp.

/export
/export , , ,
, .
, ,
,
.
/export.
/export:
/exec

, /usr.

/swap .
/share , /usr/share.
/root

, /.

/dump ,
.
/home , /home.
/export ,
. /export - ,

44

.
,
. /export
:
/export/root
( / ).
/export/root .
/export/exec
- (SPOT).
/usr . SPOT - /usr,
/export/exec , .
RISCAIX.
/export/share
/usr/share . ,
.
- /export/share/AIX/usr/share.
/export/home
/home .
.
- /export/home.
/export/swap
- .
;
.
/export/swap.
/export/dump
;
.
/export/dump,
.
microcode
.
- /export/exec/RISCAIX/usr/lib/microcode.


,
, , , .
.
:
v
v
v
v
v
v .
v .

5.

45

:
backup
chfs -a
splitcopy
dd
df
fsck
mkfs
mount
restore
snapshot
umount


JFS
;




,


JFS2
.
.


, .
/etc/filesystems ,
:
chfs
crfs
lsfs
rmfs
mount

.
/etc/vfs ,
:
chvfs
crvfs
lsvfs
rmvfs


, , ,
, .
. mount
.

. system
( )
, /etc/filesystems. root
, .
/etc/filesystems ,
. mount
.

46

-
- ,
, .
,
.
, , ,
. ,
, , ,
. ,
.
.
,
,
. .. ( )
. ,
.
, /home/frank cd .., /home.
/home/frank - ,
cd ..
/home/frank.
, ,
.
. ,
pwd. ,
pwd :
pwd:


111.

,
- .
, .
, (NFS),
. .
( ).
,
( ).
mount.
,
. , ,
,
.
. ,
/home/server/database /home/user1, /home/user2 /home/user3:

5.

47

/home/server/database
/home/server/database
/home/server/database

/home/user1
/home/user2
/home/user3

,
. ln -s.
,
.


.
. - ,
.
. /etc/filesystems mount = automatic.
- .
mount all /etc/rc.
/etc/filesystems mount = true.
/etc/filesystems.
, .
.
/etc/filesystems , .
.
,
/etc/filesystems. /etc/filesystems:
/:
dev=/dev/hd4
vol="root"
mount=automatic
check=false
free=true
vfs=jfs
log=/dev/hd8
type-bootfs
/home:
dev=/dev/hd1
vfs=jfs
log=/dev/hd8
mount=true
check=true
vol="/home"
free=false
/usr:
/dev=/dev/hd2
vfs=jfs
log=/dev/hd8
mount=automatic
check=false
type=bootfs
vol="/usr"
free=false

/etc/filesystems. -
, ,
/etc/filesystems, . ,

48

/home /usr.
- ,
.

-

/dev.
,
.
, tty ,
.
, tty,
.
, -,
, ,
.
,
.

, setuid setgid.

setuid setgid. , ,
- .
, . ,
,
.
, setuid, setgid
, .
mount, .
/etc/filesystems.
nosuid mount setuid setgid
. ,
, (,
, ).
nodev mount
. ,
(, ,
).


,
/exports , .

:

5.

49

/export/root/_
/export/exec/_SPOT
/export/home/_
/export/share
/export/dump
/export/swap


/ ( )
/usr
/home
/usr/share


.

/export /export
. 44.

,
, /export .
/export/root: /export/root
; , root. ,
mount :
nosuid
nodev

setuid .

.

/export/root
.
/export/exec: /export/exec
; , root.
mount :
nosuid
nodev

setuid .
/usr nousid .

.

/export/share: /export/share
; , root.
, , ( ),
mount .
/export/home: /home:
v /export/home/- /home .
, root - .
/export/home
mount:
nosuid
nodev

setuid .

.

v /home /home .
/home ,
root. /home
, mount nosuid nodev.

50

v /home/-
/home/-,
.
/home/-
mount nousid nodev.
/export/dump: /export/dump/-
, root.
/export/dump/- .
/export/swap: /export/swap/-
, root.
. /export/swap/ .


AIX . :
v (JFS)
(JFS2)
v (NFS)
v - (CDRFS)
v DVD-ROM (UDFS) . 52

(JFS)
(JFS2)
. ,
.
.
JFS JFS2 .
.

, , ,
.
JFS JFS2 , JFS2
. JFS JFS2
. 52.

(NFS)
NFS - ,
, . ,
, ,
, . NFS
6, , AIX 5L 5.3 - :
.

- (CDRFS)
- .
CDRFS CDRFS . 63.

5.

51

DVD-ROM (UDFS)
DVD . UDFS
UDFS . 64.

JFS JFS2
(JFS)
(JFS2) .
AIX.
, JFS2 64- .
. ,
.

JFS2
JFS2 ( ) - ,
AIX 5L POWER 5.1 ,
(JFS).
JFS ( 32- ), JFS2 (
64-).
: JFS, JFS2 API link()
. ,
JFS.
JFS JFS2:

JFS2

JFS

: 512-4096

: 512-4096

16

16

64

i-

:
1. 32- 1 .
2. JFS2 AIX, AIX 5.2.
AIX
AIX 5L 5.3 - : .


UNIX
, .
.
.
(, 4096 )
, ,

52

-, .
,
. , 4096
, 4096
4096 . ,
-.
,
-, .
, ,
- ,
.
, .
,
,
. ,
, . ,
, , .

, .
,
.
(JFS) ,
. (JFS2) .
: .
JFS , (4096 ).

. JFS
Berkeley Software Distribution (BSD).
JFS2 512, 1024, 2048 4096.

. ,
. JFS2
. ,
.
JFS: JFS ( ),
, 4096 .
4096 , ,
, . ,
500 ,
512 ( , 512 ).
.
.
.
(JFS) 512, 1024, 2048 4096 .
,
. ()
,
.

5.

53

JFS ,
.
4096 ,
.
, 4096 .

( ,
), .

JFS :
v
4096 .
v 4096
32 .
32 ,
4096 .
,
.
4096
,
32
4096 .
4096 .
JFS2: (JFS2) . JFS2
512, 1024, 2048 4096.
,
.

. ,
. ,
,
.
4096
,
. , 512
512 .
512 ,
. 4096
, .
,
4096 .
crfs mkfs.
,
.
lsfs, Web-
(SMIT).
statfs.

54

- , .
( )
. 4096 ,

.

i-

, ,
. - ,
: i-.
JFS i-: JFS , i- , ,
. i-
i- (NBPI). , NBPI 1024, i-
1024 .
NBPI (, 512 ), i-,
NBPI (, 16384), i-.
JFS NBPI
i-. i-
. ,
i-, . NBPI
i- .
JFS i- 16 M (224).
NBPI (agsize).
- 8 . agsize, 8 , NBPI: 512,
1024, 2048, 4096, 8192 16384. agsize . agsize
8, 16, 32 64. NBPI
agsize. agsize ( 16 )
NBPI : 1024, 2048, 4096, 8193, 16384 32768.
NBPI
crfs mkfs. i-
, .
lsfs, Web-
(SMIT).
statfs.
JFS2 i-: JFS2 i- .
i-, . ,
i- .


JFS.
.
.
JFS2 16 .
JFS2 . 56
JFS2 . 57.

5.

55

, 4096
,
.
(JFS) (JFS2)
. 4096 ,

.
4096
,
. ,
512 , 512
. 512 .
4096
- .
,
4096 .
, 4096 .
: -
, .
4 .
,
JFS hd8.
4 , ; ,
JFS 4 .
2 ,
, 2 , , ,
.
.
logform,
. JFS 256 .
, JFS, .
.
, logredo ( fsck) ,
JFS.
JFS2 .
2 , ,
2 , , , .
,
JFS2.
JFS: JFS .
NBPI, , .
:
NBPI * 224

_ * 228

, NBPI 512, 8 (512*224= 8 ).


JFS NBPI: 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536 131072.

56

JFS i- 16 M (224).
NBPI i-.
, i-,
. NBPI i-
.
JFS , i-
. .
. 8 , 16 , 32
64 . NBPI.
:


NBPI
8
16

512, 1024, 2048, 4096, 8192, 16384


1024, 2048, 4096, 8192, 16384, 32768

32
64

2048, 4096, 8192, 16384, 32768, 65536


4096, 8192, 16384, 32768, 65536, 131072

JFS 512, 1024, 2048 4096 . JFS


i- 28- .
0 228.
JFS2: JFS2,
, , .
fsck .
:
JFS2:
JFS2:

16
16

JFS: JFS
4096
. , , 512
. , ,
512 , , , .
, 2048 ,
, (2048 ),
.
, ,
, ,
,
. ,
4096
. 32
512 ( 16 ), ,
(4096 ),
.
JFS
defragfs. defrags
.

5.

57


. i-
.
, ,
. ,
.
fileplace.
.
: ,
, du. ,
,
.
,
, .
.
.
.
. ,
:
cp
mv
tar
cpio
: mv
.
.

.
:
backup
restore
pax
,
.

JFS

JFS. JFS2.
crfs mkfs.
(bf=true), .
SMIT Web- .
4
4096 . 128 .
32 4096 .

58

, 132 33
( 1024 4
). 132 1024
4 1024 128 .
132 .
.
32 4 .
4 ,
ENOSPC - , 32 4 .
: ,
32 , ,
.
defragfs
.
JFS . ,
, JFS kproc,
. ,
, kproc .

JFS
JFS ,
, ()
, (4 ). JFS2 .

32 .
.
50% .

. , ,
. ,
,
, . JFS
defragfs,
.
.
,
, .
JFS
. API, ,
, JFS .
, ,

. 52.
:

5.

59

: (/) . ,
/usr, installp

.
.
- ,
crfs mkfs . SMIT Web-
. .
,
.
. ,
( ).
4096
. ,
, .
,
4096 .
lsfs -q.
SMIT Web- .
:
( - )
, (ENOSPC),
, .
4096 ,
. ,
ENOSPC EDQUOT, ,
. ,
,
, ,
.
, :
v 4096 ,
ENOSPC EDQUOT. ,
mmap,
ENOSPC.
v
.
, ,
, ,
, .
. ,
.
.
v , , ,
fsync sync.
v stat , .
: , ,
, .
4096 . stat
, . i- stat

60

,
. :
, .
,
, stat.
: AIX IBM
LZ. LZ
, , .
,
(
9 - 0 ).
, , N , ,
N , ,
. 0 1,
( ).
(,),
. LZ IBM N 512, 1024 2048.
IBM LZ (, ) .
log2 N, -
.
: ,
, ,
. ,
:
v ,
.
v UNIX ,
.
4096 , ,
.
.
.
v .
50 , - 10 .

JFS JFS2
JFS JFS2 (AIX 5.2 ) ,
.
.
JFS ,
.
, .
, .
,
. ,
. , , .
JFS2 .
, ( snappedFS
). JFS2
.

5.

61

,
. JFS2 :
v (/) /usr
.
. , AIX 5.2 5200-01,
. fsck logredo JFS2
, AIX 5.2 5200-01, .
, 5.2,
AIX 5.2 5200-01.
v defragfs.
, , ,

.
v snappedFS .
.
v snappedFS
. .
v AIX 5.2 5200-01,
, AIX 5.2 .
.
v JFS2, AIX 5.3,
AIX 5.2 5200-01 .
,
.


JFS AIX 5.1 AIX 5.2.
JFS,
,
, NBPI .
JFS2, , AIX 5.1 AIX 5.2,
. JFS2
AIX 5.1.
AIX JFS2 ,
logredo , .
: JFS2, v2
, AIX.
,
.
JFS: JFS,
, NBPI, 4096
(agsize), 8, 4.3 AIX (
), - .
: JFS2: JFS2, AIX
5.2 5200-01,
,
.
.

62

JFS:
JFS
, -

.
,
,
.

,
- .
,
,
.
JFS JFS2:
,
. , JFS
RAM, 512
512 .
, JFS 4096.

CDRFS
CDRFS - ,
(LFS). -. AIX 5.2,
- , .
CDRFS cdmount.
AIX 5.1 -
. :
mount -r -v cdrfs /dev/cd0 /mnt

- (AIX 5.1 ):

, .

.

,
.
AIX CDRFS:

ISO 9660:1988(E)
High Sierra Group

CDRFS 3
1 ISO 9660.
ISO 9660,

CD-ROM.

5.

63


Rock Ridge Group

CD-ROM eXtended Architecture File


Format ( 2, 1)

ISO 9660,
.

POSIX System Use
Sharing Protocol (SUSP) Rock Ridge Interchange
Protocol (RRIP), CD-ROM
,
UNIX.
CD-ROM (XA) -
ISO 9660,
,
CD-ROM, , Photo CD.

:
v , ,
v
CDRFS CD-ROM,
(CD-ROM 1 CD-ROM XA 2 1)
(
).
: - CDRFS.

UDFS
AIX 5.2, UDFS,
, DVD-ROM.
UDFS. UDFS 1.50, 2.00
2.01.
UDFS, ,
cdmount cdromd.conf. UDFS
. mount.

64

6.

, .
:
v -
v . 67
v . 70
v . 70

-
, .
,
. , ,
, . - .

.


.
.
i,
.
.
- ,
i- . , i
. ;
, ,
/home.
.
, .
compress pack , uncompress unpack .
, .
.
:
.
backup
mksysb
cpio
dd

tar
rdump
pax

.
rootvg.
.
.
, ,
. dd .
.
tar.
.
( POSIX) tar cpio.

Copyright IBM Corp. 1999, 2004

65


, ,
. , ,
, . , ,
, ,
, .
, .
.
:
v , .
?
, ? ,
,
? ?
, ,
.
v .
.
,
. ,
,
restore -T tar -t ( ).
, , ,
, .
.
,
, ,
tapechk.
v .
,
. , -
, .
. ,
:
,
, , .

, .
.
,
, .
.
v .
.
fsck.
v , .
.
, .
v - ,
.

66


, , ..
: ( FIFO)
, . ,
.
FIFO i-,
. .
,
( FIFO ).
: ,
, . ,
CPU - .


.
, .
, ,
. -f, backup
/dev/rfd0, .
:
.

backup ,


, ,
.
,
.
. , backup
, .
: ,
.
:
restore
rrestore
cpio
tar
pax

, backup.
.
.
tar.
( POSIX) tar cpio.


:
v
v
, ,
.
.
6.

67

,
, .


. -
, .
.
. ,
, .
,
.

/()

/bin

/dev

/etc

/lib

/usr

/tmp

/var

/home

11. /root. ,
/ (root), . /bin , /dev,
/etc /lib. /usr, /tmp, /var /home.

(/usr, /tmp, /var /home) ,


.
,
, (/bin, /dev, /etc /lib).


, ;
:
v , .
, : / (
), /usr, /tmp, /var ..
v . ,
.
/home , .
,
. ,
/local.
/tmp,
.

68


,
.
, .
:
v , .
.
.
v ,
.
. ,
( CD-ROM)
.

, /home, umount. ,
. ,
.
, .
, ,
, mount.
: /, /usr, /var /tmp.
mount :

. .

vfs

/dev/hd4

jfs

11 10:36

rw,log=/dev/hd8

/dev/hd2

/usr

jfs

11 10:36

rw,log=/dev/hd8

/dev/hd9var

/var

jfs

11 10:36

rw,log=/dev/hd8

/dev/hd

/tmp

jfs

11 10:36

rw,log=/dev/hd8

, ,
,
. 70.

smit mount. ,
, .
.


,
. ,
. .
, .
mksysb rootvg,
. savevg.
.

6.

69


Web- , SMIT smit backfile smit backfilesys,
, . 65.
SMIT , ,
/home. , SMIT
, backup. , SMIT
backup.
, SMIT .
backup AIX 5L Version 5.3 Commands Reference.
backup
. ,
( 0; 1-9).
backup.
backup :
v , , -i.
v > i-
- -. .
: i-
, (UID) (GID) 65535. UID
GID , ,
UID GID.
.

rootvg ,
, BOS, , .
( rootvg)
.
SMIT, Web- .
. -
. -
.
, ,
Web- SMIT mksysb.
backup ,
.
:
1. PowerPC
.
2. SMIT
sysbr bos.sysmgt.

70


SMIT AIX 5L 5.3:
.


.
,
.
- , . - ,
.
,
. ,
,
.

Web- SMIT smit devinst.
v ,
.
v ,
.

SMIT AIX 5L
5.3: .

:
v
v
v rootvg
v ( ).
,
, BOS
AIX 5L 5.3: .



rootvg. ,
, . ,
, .
- ,
. , /tmp /usr/tmp,
/tmp .

.

6.

71



. ,
.


,
, . ,
.
.
SHRINK image.data
yes, , , ,
. /tmp,
, bosboot.
image.data AIX 5L Version 5.3 Files Reference.
ODM
.
,
:
v /etc/objrepos, Cu
v /dev.
( )
BOS AIX 5L 5.3 .

72

7.
- ,
.
. ,
.
.
/etc/profile, .
:
v
v . 74
v . 74


.
, .
, /etc/profile ,
.profile .
:
v /etc/profile
v .profile
v
v
v . 74.

/etc/profile
, - /etc/profile.
, :
v
v (umask)
v
v
profile .
.

.profile
, - .profile. .profile
($HOME) . .profile
, /etc/profile. .profile
, ls -a. .profile
:
v
v
v (, )
Copyright IBM Corp. 1999, 2004

73

v
.profile:
PATH=/usr/bin:/etc:/home/bin1:/usr/lpp/tps4.0/user:/home/gsc/bin::
epath=/home/gsc/e3:
export PATH epath
csh

( PATH epath) C
(csh).
.profile (, , profile) .
. , .chsrc .kshrc
C Korn.



. , ,
.
.
:
#include <time.h>

:
adjtime
ctime, localtime, gmtime, mktime, difftime, asctime,
tzset
getinterval, incinterval, absinterval, resinc, resabs,
alarm, ualarm, getitimer, setitimer
gettimer, settimer, restimer, stime, time
gettimerid
gettimeofday, settimeofday, ftime
nsleep, usleep, sleep
reltimerid

, .
.
.

.
.
.
.
, -
.


7044 270,
,
. ,
. -
,
.
.
AIX
.
,

. .

74

AIX
. .

.


,
. , ,
,
.
bindprocessor
CPU. CPU 0 N-1, N -
. ,
CPU,
AIX .
. , 8-
SMP CPU [0..7].
7 CPU 0 6.
CPU 7, ,
.
: CPU ,
- .
,

- , CPU,
CPU.
,
.
CPU
CPU.
CPU,
, , AIX
. .
,
,
.
, ,
. ,
,
, .


:
1. ,
.
2.
, , AIX
.
7.

75

3. AIX , CPU
.
4. AIX , , CPU,
. - ,
.
5. ,
HAEH. HAEH ,
.
6. .

. ,
. ,
- , - CPU,
,
, .



cpuguard ODM sys0.
enable disable.
AIX 5.2, - enabled ( cpuguard enable).
,
Web- , SMIT chdev. (
AIX disabled.)
: ( disabled),
.
CPU_FAILURE_PREDICTED, , AIX
CPU.


- ,
, CPU.
( )
ha_star.
:
ha_star -C

-C CPU.


ODM procn, n -
(n - ).
ODM, (/).
proc ,
, , . ,
, , , state proc.
:

76

enable

disable

faulty

, enable disable.
AIX, .
, faulty. ODM
proc - . proc
.

proc4 :
# lsattr -EH -l proc4

state enable .
type PowerPC_RS64-III
#

proc4 ,
:
# lsattr -EH -l proc4

state disable
.
type PowerPC_RS64-III
#

proc4
:
# lsattr -EH -l proc4

state faulty
.
type PowerPC_RS64-III
#

proc4 - :
# lsdev -CH -l proc4
.
proc4
#

00-04


CPU . .
errpt -
, errpt :
# errpt

804E987A
1008161399
8470267F
1008161299
CPU
1B963892
1008160299
#

T
I
T

C
O
S


proc4
proc4

CPU

proc4

CPU

7.

77

v ,
CPU CPU CPU .
v ,
CPU.
CPU,
;
.
errpt -
errpt -a:
v CPU_FAIL_PREDICTED
:
,
. ,
, .
:
: -
:CPU_FAIL_PREDICTED
: 1655419A
/: , 30 , 13:42:11
: 53
: 00002F0E4C00
: auntbea
: H
: PEND
: proc25
:
: proc_rspc
: 00-25

CPU

CPU

CPU

CPU



0144 1000 0000 003A
0000 0000 0000 0000
0000 0000 0000 0000
2E31 2D50 312D 4332
0002 0000 0000 0000
0000 0000 0000 0000
0000 0000 0000 0000
0000 0000 0000 0000
... ... ... ... ...

8E00
0000
0000
0000
0000
0000
0000
0000

9100 1842 1100 1999 0930 4019


0000 0000 0000 4942 4D00 5531
0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000

v CPU_DEALLOC_SUCCESS
:
. ,
CPU, .
: CPU .

78

: - :
:
CPU_DEALLOC_SUCCESS
: 804E987A
/: , 30 , 13:44:13
: 63
: 00002F0E4C00
: auntbea
: O
: INFO
: proc24

CPU

CPU -

CPU
0

, proc24 ,
CPU 0.
v CPU_DEALLOC_FAIL
: ,
, . ,
, CPU .
: , CPU,
, .
.
:
2
3

200 (0xC8)

CPU.
PID .

.
( ).
CPU.
N-2 N- ;
,
,
( SMP).
( ODM cpuguard disable).
, ha_star
.

: -
1:
: CPU_DEALLOC_ABORTED
: 8470267F
/: , 30 , 13:41:10
: 50
: 00002F0E4C00
: auntbea
: S
: TEMP
: proc26
7.

79


CPU





CPU -
CPU


0000 0003

6676 6861 6568 3200

, proc26 . 3 ,
.
fvhaeh2,
.
2:
: CPU_DEALLOC_ABORTED
: 8470267F
/: , 30 , 14:00:22
: 71
: 00002F0E4C00
: auntbea
: S
: TEMP
: proc19

CPU





CPU -
CPU


0000 0002

0000 0000 0000 4F4A

, proc19 . 2 ,
CPU ,
CPU SIGCPUFAIL. ,
0x4F4A.
ps (-o THREAD, -o BND) ,
CPU .
3:

80

: CPU_DEALLOC_ABORTED
: 8470267F
/: , 30 , 14:37:34
: 106
: 00002F0E4C00
: auntbea
: S
: TEMP
: proc2

CPU





CPU -
CPU


0000 0004

0000 0000 0000 0000

, proc2 ,
( 4).

7.

81

82

8.
- ,
.
, -
, , .
( ,
) AIX 5L
5.3 - : .

AIX 5L 5.3 - : .
:
v , ,
.
ps , CPU
.
who -u
.
svmon . (.
svmon Performance Toolbox Version 2 and 3 for AIX: Guide and
Reference)
acct .
( . 117.)
v ,
.
nice . (
AIX 5L 5.3 - :
.)
renice .
v .
kill .

Copyright IBM Corp. 1999, 2004

83

84

9.
(WLM)
,
(VMM). WLM
,
.
: WLM
. WLM
.
WLM - .
(, , ,
),
. ,
.
, WLM
.
(,
CPU) (, ,
).
, WLM (. . 117)
WLM, .

WLM
WLM ,
. CPU,
-, . WLM
, .
.

, .

- .

. ,
.

- , .
, , .
,
. ,
, ,
.
, .

Copyright IBM Corp. 1999, 2004

85

- , .
.
, .
,
. ,
, , .
, ,
, .
WLM Web- ,
SMIT .

- ,
.

,
.

.
,
.

.
, setrlimit.

, (
).
.

,
.

.

,
,
. ,
,
.
.

- ,
.

- , ,
,
.
.


. (
) .
, .
.
, ,
. ,

, - .

WLM
. , ,
, .

86

.


.
WLM :
v
.
.
v , , . ,
,
.
v
.
v AIX 5.2 WLM 69 (64 )
64 (61 ).
v ,
, , .
: , .
.


,
. ,
, , .
.
, ,
.
. ( WLM
. 92.)
exec. ,
,
. setuid, setgid, setpri plock.

( ), .


WLM : ( )
. :
v CPU. CPU,
.
v . ,
.
v -.
512 , .
:
. :

9.

87


.

.

.
:
CPU
, CPU .
-
- .

, .


WLM
. :
v .
.
, . , CPU 1
3, , 25% 75%
.
, .
v .
. WLM :
,
. ,
.
,
.
v . . ,
- , . ,
, , .
, .
.
,
. ,
,
.
WLM
. ,
100 . , ,
. WLM
CPU
, .
.
, - , CPU
0%, - 60, 100% CPU.

88

0% 40, 60 ,
- 40%. 60 40
.
, .
CPU . ,
CPU, .
WLM
wlmstat, , .
wlmmon.

WLM
WLM ,
. WLM
.
WLM ,
, .
.
WLM ,
, .
,
.
, WLM
CPU .
cpu. ,
. WLM
.


WLM .
,
. :
v ( ,
/etc/wlm/current) WLM wlmcntrl.
v WLM.
v WLM ( mkclass, chclass rmclass).
v API WLM.

.
, .


WLM :
v wlmstat ( , )
.
v wlmmon .

9.

89

v wlmperf - , Performance
Toolbox. ,
.

API WLM
(API) ,
, :
v ,
v
v
, API WLM -
. ;
. ,
.


AIX
, WLM.
, , ,
. AIX 5.1
64- , WLM, . (
. 117.)
64- 34-
( , ).
.
, WLM.
, , ,
, .
,
:
v ; .
.
v classes
(, ).
.

WLM
WLM
. ,
. -
, .
.
WLM : .
, -
. .

.

90

SMIT,
Web- . API
WLM. , WLM.
16 ;
, (_).
WLM .
,
.
, , : Super.Sub.

64 . ,
:
Default
. . root,
, Default.
Default ,
.
System
( root),
. ,
.
, .
1%.
Shared
,
.
, . ,
, .
Shared
.
.
. ,
. ,
, Shared
, localshm .
Unclassified
,
. WLM
WLM.

(
), Shared,
.
,
.
Unclassified.
, -
. Unclassified .
.
.
, .
9.

91

Unmanaged
. .
. ,
, .
WLM .
WLM ,
100%.

61
. , - Default
( ) Shared ( ).
Default
, . Default
, .
Default ,
.
Shared
,
.
, .
, ,
. Shared,
.
Shared .
; ,
,
. ,
, Shared
, localshm
.

WLM
WLM :

, 16 ,
, (_).

0 9, .

, .
localshm
.
(adminuser, admingroup, authgroup) ( )
.
(authuser, authgroup)
, .
(rset)
CPU, ( ).

92


WLM.
0 9, 0 - . 0 .
,
.
, .
0,
. , ,
0.
, .
.
, , .
.

,
. fork
, .
, ,
fork ,
.
.
,
, , ,
. exec
: setuid, setgid, plock, setpri wlm_set_tag . ,
.
.
- . .
, .
:
v , ,
.
v ,

.
v ,

.
, ,
.

,
.
v , ,

.

9.

93

localshm
localshm , .
, , Shared
. - (yes)
(no). yes,
Shared. no.
.
Unclassified.
, .
, WLM ,
Shared.
, , ,
:
v localshm yes,
. localshm yes,
. localshm yes, - no,
Shared .
v localshm no,
Shared. .
, localshm
yes, .
Shared .
, ,
( ), .


: .
adminuser admingroup
:
v adminuser ( /etc/passwd),
.
v admingroup ( /etc/group),
.
.
.
:
v
v ,

v ,
v WLM .


authuser authgroup .
, ( )
. ( ) ,
( ) ,
.

94

.
.


(rset) . ,
. rset CPU
. , system,
CPU . rset, CPU
CPU, . (
mkrset AIX 5L Version 5.3 Commands Reference.)
: 0
.
CPU, CPU
.

WLM
WLM :
v
. , WLM
( ). .
v ,
.
WLM, ,
SMIT Web- , -
API WLM. , , ,
.


,
WLM. :
v , WLM,
.
v , ,
.
. :
v
v
v
v (, 32bit 64bit)
v .
- , ,
API WLM.

,
. rules.
,
:
9.

95

, (rules)
( ).
16 .
, .
Unclassified, Unmanaged Shared .
.
(-); .
(-) (
/etc/passwd). (,).
(!),
.
Korn. , .
(-) (
/etc/group). (,).
(!), .
Korn.
, .
(-) .
, , .

Korn. (,).
(!),
.
, .
,
.
(-) .
:
v 32bit: 32
v 64bit: 64
v plock: plock
v fixed: (SCHED_FIFO SCHED_RR)

,
(+). 32bit 64bit .
(-) . -
30 . (,).

, , .
fork .
, ,
, , , exec, setuid ( ), setgid
( ), setpri plock.
WLM rules
. WLM
.
, . , ,
, ,
.
, .
, , ,
. ,
, rules:

96

v (-), .
v , ,
, (!).
v , (+),
.
, WLM ,
rules,
. .
.

WLM

Web- , SMIT wlmassign.
API wlm_assign.

. (. . 98.)
.
API ,
WLM. , ,
, , .
API,
, .
, .
.

1:
Process1 superclassA
superclassB ( ). superclassB
WLM . Process1
superclassB.subclassA , .
Process2
superclassA.subclassA superclassA.subclassB ( ,
). Process2 ,
.
superclassB Process1
subclassC, superclassB. Process1
superclassB.subclassC,
.

2:
.
, Process2,
Process2 superclassC. 1 Process2
subclassB superclassA,
. Process2
. , ,
Process2 superclassC (
) - .

9.

97

,
Process1 superclassB. , ,
, Process1
.
, Process1 superclassA,
superclassB.subclassC .
Process1
superclassB, superclassB.subclassC .
Process1 , , .

WLM
WLM ( wlmcntrl -u)
. , .
WLM ,
, , .


,
.
:
v root .
v (,
adminuser admingroup )
, .
v (,
) , (
authuser authgroup
).
, ,
, , .

WLM
WLM ,
, . WLM
,
.
.

.
, .
()
.

.


WLM :
CPU, CPU, .

98

, , .


( 512
-,
), .

WLM , .
v , ,
CPU , 1 . ,
8- 2
CPU, 2/8 = 25% CPU.
WLM ,
.
v , ,
.
WLM, .
, , ,
,
.
v -
. 100%, ,
, .

- .

-, -
20%,
100%.
WLM
,
( iostat). WLM ,

, . WLM
.
, ( ) 1000 ,
70%, , 100 , 7%
. , -
WLM , .

, . WLM
- . ,
-, , ,
- .
AIX 5.2 WLM
. :
.

, .
,
. ; ,
9.

99

. ,
.

,
- .
, (
).
, . ,
, . SIGTERM,
5 , SIGKILL.
90% ,
.


( )
.
. ,
. ,
[, ].
,
. -
, .
- , .
, 100%
, .
, 0 , B C 15, 10 5,
. :
target(A) = 15/30 = 50%
target(B) = 10/30 = 33%
target(C) = 5/30 = 17%
( ),
A C :
target(A) = 15/20 = 75%
target(C) = 5/20 = 25%
,
, .
1 65535.
, .
.

. , ,
.
,
. -.
.
, ,
. ( )
, .

100

, A, B, C D -, 200, 150 100, .


, 50% :
target(A)
target(B)
target(C)
target(D)

=
=
=
=

= 100%
200/450 * = 44% * 50% = 22%
150/450 * = 33% * 50% = 17%
100/450 * = 22% * 50% = 11%

50 ,
50 . ,
, (.
. 104).
: - , .
,
:
v ,
, - .
v .
,
.
v
,
, .
.
, -. ,
WLM 1.
.
shares. :
shares
-:
CPU
=
memory
=
diskIO
=

2
4
3


, WLM
.
.
, .
:

, .
, .
0 100, 0 - .

,
. ,
.
, .
1 100, 100 - .
9.

101


, ,
. ,
. 1 100, 100 - .
,
. , ,
(-), .
(;). (%).
:
v joe acct3 /bin/vi, acctg.
v sue dev /bin/emacs, devlt (
), editors, sue
. devlt. Default.
v /usr/sbin/oracle
oracle dbm DB1
Default. , _DB1,
db1.
limits ,
. :
shares
-:
CPU
=
memory =

0%-50%;80%
10%-30%;50%

- ,
:
diskIO

0%-100%;100%

,
. ,
.
:
v .
v .
v
100.
v 100.

, VMM (LRU),
, .
,
, .
-
.
,
.
.

102

,
100, ,
. WLM , .
. ,
CPU - .

( ).
, ,
,
.
, . ,
,
(
). .
:
.
, .
,
, ,
.
AIX 5.2, :
2. WLM

totalCPU

s, m, h, d, w

230 1s
63

10 s

totalDiskIO

KB, MB, TB, PB, EB

KB

(2 1) * 512/1024
KB

1 MB

totalConnectTime

s, m, h, d, w

263 1 s

5m

totalProcesses

263 1

totalThreads

263 1

totalLogins

263 1

: . s = , m = , h = , d = ,
w = , KB = , MK = , ... ..
:
BadUserClass:
totalCPU = 1m
totalConnectTime = 1h

,
:
v totalThreads, totalProcesses.
v totalThreads, totalProcesses, totalProcesses
totalThreads.
, .
. ,
. ,
9.

103

, .
, (
), .
, -, , .
WLM.
-T [|] wlmcntrl.


WLM
.
, , .
.
. 0
1 ( ).
, WLM ( ):

,
,
.

,
, .

,
. ,
.

.
.
, ,
.

, ,
, .


WLM ( rset)
, . WLM -
. .
SMIT Web-
. WLM root
rset WLM.
WLM
.
,
.

rset
rset
.
.

104

_/_rset. _, _rset 255


, , , ( .).
. _ sys
rset .
rset .
rset , rset, ,
. , ,
rset SMIT Web-
root.
rset , .
rset .
,
. rset,
- .
rset /etc/rsets. ;
rsets SMIT Web- .
WLM, the rset .
, RAD ( ).

AIX 5L 5.3 - : .

WLM
, ,
Web- , SMIT .
,
.
( WLM) /etc/wlm. ,
, WLM.
WLM Config /etc/wlm/Config.
WLM.
description, classes, shares, limits rules. ,
, ,
. , Super Config
/etc/wlm/Config/Super Super.
description, classes, shares, limits rules.
WLM Web-
, smit wlmmanage wlmcntrl.
,
.
/etc/wlm. /etc/wlm/current
. wlmcntrl WLM
.
WLM
(WLM) AIX 5L 5.3 -
: .
.

9.

105


, ,
, .
, ,
. .
, WLM .
, ,
, .
WLM , , , ,
. WLM ,

. , ,
, , ,
. OLTP
, .
Web- , SMIT .
WLM, ,
Web- SMIT.
, .
, .
.
WLM , ,
, .
wlmcheck
SMIT Web- . WLM . WLM
( , WLM)
,
. WLM .
, ,
( -o ps). ,
(
, ) WLM.
,
( ).
WLM ,
. WLM
wlmcntrl, , SMIT
Web- .
WLM
wlmstat. wlmstat
, ( ).

.

,

.

106

.
. ,
.
.
v , ,
. ,
, .

, .
v ,
. ,
, , . ,

.
,
.

WLM, ,
.
.
,
.


WLM .
wlmstat, , WLM ,
,
.
, , WLM.
, ,
.
.

. , WLM
. WLM.
,
, (0% 100%
) (-). WLM
.

WLM
API WLM,
/usr/lib/libwlm.a , WLM
, :
v
v
v
v
v WLM
9.

107

, wlm_set_tag
fork exec.
32- 64- .


- ,
( rules).
, (user), (group),
(application) (type).
,
,
WLM.
, .
, .
,
WLM ,
.

, ,

. .
WLM
.
,
(db_name) TCP, (port_num).
:
v , ,
.
v , , .
v .
,
. ,
, , WLM_TAG=$db_name
WLM_TAG=$db_name_$port_num.
,
; ,
. .
.
. , ,
, , db1 db2.
, dbserv1 dbserv2,
( ) .
.
:

108

*
.


*
dbserv1
dbadm
/usr/sbin/dbserv db1
dbserv2
dbadm
/usr/sbin/dbserv db2

API
API WLM :
v WLM
(wlm_read_classes).
v WLM ,
(, .),
, WLM, CPU,
- (wlm_create_class).
v WLM,
,
(wlm_change_class).
v (wlm_delete_class).
WLM.
, ,
, .
API ,
SMIT Web- :
v
v , root
v , root
( adminuser admingroup ).
WLM WLM
API, .
.
, API WLM (,
), WLM
wlmstat .
, API WLM
, , API,
WLM, .
wlm_delete_class rmclass (
, SMIT Web- ).
, API WLM :
v WLM wlm_set
v WLM
v WLM
v ,
v rset
9.

109

v WLM wlm_load
v wlm_assign
API ,
wlmcntrl wlmassign:
v WLM
v WLM root
v root
v root
( adminuser admingroup)
v root,
( authuser authgroup),
( adminuser admingroup).
wlmassign.

API WLM
API WLM wlm_get_bio_stats
WLM, wlmstat.

API WLM
wlm_check
WLM. API wlm_classify
, .



API . ,
.

WLM
WLM :
v , mkclass, chclass
rmclass. , .
v , WLM wlmcntrl.
v WLM
wlmcheck .
v wlmstat ( ASCII).
, svmon topas),
, WLM.
v ps. ps
, .
v .
SMIT, Web- .

110

, WLM
.

. :
, ; ,
; .


rules Config (
/etc/wlm/Config/rules):
* , WLM
*
*
* .
db1
/usr/bin/oracle*
db2
/usr/bin/oracle*
devlt
dev
VPs
bob,ted
acctg
acct*
System
root
Default
-

_DB1
_DB2
-

rules devlt
/etc/wlm/Config/devlt/rules:
* , WLM
* devlt,
*
*
* .

hackers
jim,liz
hogs
64bit+plock
editors
!sue
/bin/vi,/bin/emacs
build
/bin/make,/bin/cc
Default
-

: (*) rules, .
. ,
.
, .
v joe acct3 /bin/vi, acctg.
v sue dev /bin/emacs, devlt (
), editors,
. devlt.
v /usr/sbin/oracle
oracle dbm DB1
Default. , _DB1,
db1.


, A, B, C D 3, 2, 1, 1, .
A, C D, :
target(A) = 3/5 = 60%
target(C) = 1/5 = 20%
target(D) = 1/5 = 20%
9.

111

, A
50% , 50% .
A 50% .
60%, .
( )
.
( ),
. A 48%,
:
target(A) = 3/5 = 60%, softmax = 50, = 50%
target(C) = 1/2 * (100 - 48)
= 26%
target(D) = 1/2 * (100 - 48)
= 26%
,
:
target(A)
target(B)
target(C)
target(D)

=
=
=
=

3/7
2/7
1/7
1/7

=
=
=
=

42%
28%
14%
14%

CPU
CPU, ,
.
- A B. A
CPU [30% - 100%]. B [20% - 100%].
CPU, WLM

( ). WLM
CPU.
A B 60% 40% ,
CPU A B 60% 40%.
, C. ,
CPU, .
C [20% - 100%] CPU 100%.
A, B C , C CPU,
A B , CPU
30%, 20% 50% A,B C .
A B .
50%
CPU , , . ,
C .
C CPU, A B.
CPU C,
, A B .
( A B)
,
CPU. C CPU,
,
.

112


,
. :
, (PEOPLE);
, (BATCH1);
, (BATCH0).
PEOPLE 20%, 50
1. 20%
.
BATCH1 50%, 50
3.
BATCH0 80%, 50
2.
PEOPLE BATCH1 70.
( BATCH0 )
. ,
. BATCH0
150. WLM
. BATCH0
50% BATCH1, 20% PEOPLE.
BATCH0 3, ,
.


WLM , AIX 5.1,
. wlmstat
.:
# wlmstat
CLASS
Unclassified
Unmanaged
Default
Shared
System
class1
class2

CPU MEM DKIO


0
0
0
0
0 0
0
0
0
0
2 0
2
12
0
0
0 0
0
0 0

WLM ,
. :
# wlmstat
CLASS
Unclassified
Unmanaged
Default
Shared
System
class1
class1.Default
class1.Shared
class1.sub1
class2

CPU MEM DKIO


0
0
0
0
0 0
0
0
0
0
2 0
3
11
7
46
0
0
28
0
0
0
0 0
18
0
0
48
0
0

9.

113

ps. ,
, ps
.

114

10. (SRC)

(SRC)
, SRC.
AIX 5L 5.3 -
: .


(SRC) ,

. - (
), .
, .
SRC .
C.
:
v ,
v
v ,
v ,
v
v (, ).
SRC , ,
.


:

,


,

v ,
v
v ,
v
v
v
v
v

v .
ypserv, ntsd, qdaemon, inetd, syslogd sendmail.
: SRC
.
lssrc -a.

Copyright IBM Corp. 1999, 2004

115


- .
.
TCP/IP, SNA, (NIS)
(NFS).

- , .
. ,
. ,
IPC . ,
, .
.
startsrc ,
.

SRC
- ,
(, tcpip), (, inetd),
(, ftp finger).

SRC
SRC:
srcmstr
startsrc
stopsrc
refresh
traceson
tracesoff
lssrc

116


,
,

,
,
.

11.
,

.
: AIX 5.3 .
AIX 5L Version 5.3
Understanding the Advanced Accounting subsystem
:
v
v
v . 118
v . 119
v . 121
v . 123.




.
( adm), ,
chargefee, .

, ,

.
:
v
v . 118
v . 119
v . 121
v . 123


adm
, .
cron , :
v
v , /
v ,
v
v
.
(tacct)
Copyright IBM Corp. 1999, 2004

117

.
.
, .
, adm
.
, . 122.


:
v
v
v . 119
v . 119
v . 119
.


init login.
login /etc/utmp. , ,
. , , who,
,
. /var/adm/wtmp, login
.
( ) init
/var/adm/wtmp .
, .
utmp.h.
acctwtmp /var/adm/wtmp .
. 119.


, :
v , ,
v
v 64- , ,

v
v
v
v ,
accton , /var/adm/pacct.
: startup, shutacct, dodisk, ckpacct turnacct.

. 119.

118


. dodisk,
cron , /var/adm/acct/nite/dacct
, . dodisk
. ,
diskusg acctdusg.
acctdisk. , , acctmerg
.
dodisk
.
, .
.

. 120.


enq
. enq ,
. qdaemon (
/var/adm/qacct) ,
. .

. 120.


/var/adm/fee chargefee.
acctmerg.
. 120.



.

. :
e+
e-
, 10 + -.
, 1.345e+9 1.345x109 1 345 000 000. ,
1.345e-9 1.345x10-9 0.000000001345.


runacct acctcon1 acctcon2
, , /var/adm/wtmp.
acctcon1
/var/adm/acct/nite(x)/lineuse. acctcon2
/var/adm/logacct. acctmerg
.
11.

119

/var/adm/acct/nite(x)/lineuse
acctcon1 -l.
/var/adm/acct/nite(x)/reboots acctcon1 -o.
lastlogin .


/var/adm/pacct ,
, . acctprc1
(
, , -). acctprc2
,
acctmerg.
,
. acctcms.
, ,
,
( hog factor). acctcms ,
,
.
acctcom , acctcms,
.
. ,
, , , .
, acctcom .


, /var/adm/acct/nite(x)/dacct,
acctmerg.


/var/adm/qacct
acctmerg.


chargefee ,
, , /var/adm/fee
. acctmerg.


acctmerg
, , , .
runacct acctmerg, :
/var/adm/acct/nite(x)/dacct
, .
/var/adm/acct/sum(x)/tacct
tacct. monacct
.
acctmerg ,
.

120


monacct cron :
/var/adm/acct/fiscal

, monacct
/var/adm/acct/sum/tacct. monacct
.



.
.
-X,
( ASCII ). ,
, /var/adm/acct/sumx ,
/var/adm/acct/nitex /var/adm/acct/fiscalx, /var/adm/acct/sum, /var/adm/acct/nite
/var/adm/acct/fiscal.


. ,
:
v :
, , , .
v . , runacct, cron,
,
, .
cron runacct.
cron
crontab.
v .
v adm, , ,
.
v . , acctcom,
.


cron :
runacct
. runacct
cron .
,
. ,
acctmerg , ckpacct
.
ckpacct
pacct.
pacct, runacct
. ckpacct /var/adm/pacct, ,
500 , turnacct switch
. pacct,
/var/adm/pacct x. (x - pacct.)
500, ckpacct
turnacct off.

11.

121

dodisk
acctdisk, diskusg acctdusg
/var/adm/acct/nite/dacct.
.
dodisk
acctdisk, diskusg acctdusg
/var/adm/acct/nite/dacct.
.
monacct
.
sa1

/var/adm/sa/sa dd, dd -
.

sa2

/var/adm/sa/sadd, dd - .
/var/adm/sa/sadd, .

, cron:
startup
startup /etc/rc,
.
shutacct
acctwtmp /var/adm/wtmp
. turnacct off
.

,
adm :
ac

.
BSD.

acctcom
.
.
acctcon1
.
-l -o.
accton
.
chargefee
.
acctmerg.
fwtmp .
last

.
BSD.

lastcomm
.
BSD.
lastlogin
.

122

pac

.
BSD.

prctmp
.
prtacct
.
sa


. BSD.

sadc

, , , ,
, .

sar


. sar .

time

, .

timex , .


: /usr/sbin/acct,
C , ,
/var/adm, , .
adm;
( wtmp pacct) , /var/adm.


/var/adm :
/var/adm/diskdiag
/var/adm/dtmp
/var/adm/fee
/var/adm/pacct
/var/adm/wtmp
/var/adm/Spacct.

,
.
acctdusg.
chargefee
tacct.
.
.

(), runacct.


/var/adm/acct.
.
.
/var/adm/acct/nite(x)
, runacct.
/var/adm/acct/sum(x)
, runacct.
/var/adm/acct/fiscal(x)
, monacct.

11.

123

, runacct
, runacct:
/var/adm/acct/nite(x)/lineuse

/var/adm/acct/nite(x)/daytacct
/var/adm/acct/sum(x)/tacct

/var/adm/acct/sum(x)/cms

/var/adm/acct/sum(x)/daycms
/var/adm/acct/sum(x)/loginlog
/var/adm/acct/sum(x)/rprt mmdd


.
.
3:1,
.
.
,
nite/daytacct; . monacct

.
,
. monacct
. nite/cms.
.
nite/daycms.
.
, runacct.

/var/adm/acct/nite(x)
active

cms
ctacct.
ctmp
daycms
daytacct
dacct
accterr
lastdate
lock1
lineuse
log
log
reboots
statefile
tmpwtmp
wtmperror
wtmperr
wtmp.

124

runacct ,
. active. -
active, runacct .
,
prdaily.
.
.

, prdaily.
.
,
dodisk.
, runacct.
runacct date +%m%d.
runacct.
,
prdaily.
acctcon1.
log
runacct.
wtmp,
.

runacct.
wtmp, wtmpfix.
wtmpfix.
wtmperror
runacct.
wtmp .
runacct.

/var/adm/acct/sum(x)
cms
cmsprev
daycms
lastlogin
pacct.
rprt
tacct
tacctprev
tacct

,
.
,
.
, .
, lastlogin.
pacct . remove
.
prdaily.
.
tacct, .
.

/var/adm/acct/fiscal(x)
cms?
fiscrpt?
tacct?

,
?, .
, prdaily, ,
?, .
, ?,
.


:
wtmp
ctmp
pacct*
Spacct*
daytacct
sum/tacct
ptacct
ctacct
cms
daycms

. wtmp utmp.h.
. ctmp.h.
.
/usr/include/sys/acct.h.
(), runacct.
sys/acct.h.
. tacct.
,
. /usr/include/sys/acct.h.
pacct. tacct.
.
tacct.
, prdaily,
. nite/cms.
, prdaily,
. nite/daycms.

11.

125

126

12. Web-
Web- - -,
.
Web- :
; , ;
, , ;
; ..
. , Web-
, .
Web-
, SMIT.
.
Web- AIX 5L
5.3: Web- .

Copyright IBM Corp. 1999, 2004

127

128

13. (SMIT)
- 12, Web- ,
. 127, (SMIT)
, .
SMIT , ASCII () AIXwindows ().
SMIT ,
. ,
. , SMIT ,

.
SMIT , .
, .
, smit .
SMIT:
v SMIT SMIT ( ).
v SMIT (Ctrl+F1)
, .
, SMIT:
SMIT


SMIT
(ASCII)

SMIT

smit

(AIXwindows)


SMIT

F12

F12

F6

F6

F8

F8

Copyright IBM Corp. 1999, 2004

129

130

14. AIX
IBM AIX Information Center
AIX Information Center
.
Information Center, .
AIX AIX 5L
5.3: .

Copyright IBM Corp. 1999, 2004

131

132

15.
, , ,
, , ,
. /usr/lib/drivers.
,
:
v
v . 134
v . 136
v PCI . 139.
v - (MPIO) . 142


AIX .
, , :
v
ODM. , .
i-.
v ODM.
i- . ,
i- .
v - (MPIO) , ,
ODM ,
. , , .
, MPIO c ,
MPIO.
v ODM AIX ,
. , ,
..
. ,
,
, AIX .
,
, , AIX .
, .
v ODM,
.
v .
AIX :
v RAM
. RAM 25%
, 128 .
RAM i-. AIX 5.2
128 , RAM 32 ( 32768
i-). 512 , RAM
128 131072 i-.
RAM i-, .
.
Copyright IBM Corp. 1999, 2004

133

v i- (rootvg) ,
rootvg . RAM AIX 5.2
5000 AIX. RAM
AIX 5.2 25 000 AIX.
, . ,
, , .
:
1. , ,
.
2. AIX 5L 5.2 5200-03
IDE DVD-RAM.


, .
,
- . , -
. -
; ,
. ,
. ,
.
,
. .
, .
- Multipath (MPIO) AIX 5.2.
MPIO, .
.
. 135.


,
. :
v
v
v
, . ,
.
.
, .
, - .
.
-.
,
. , 8- RS-232 ,
8 ,
RS-232.

134


(ODM).


,
.
, .
.
.
.
- ,
.
.
AIX 5.2, - (MPIO)
(UDID) MPIO,
. UDID .
UDID ,
.
Path Control Manager ,
. MPIO
MPIO AIX 5L 5.3 - :
.

.
, .
, .
, .

,
.
.
. ;
. ,
;
.
, .
, TCP/IP,
.


, ,
, Web- , SMIT
.

15.

135


- CPU , ,
( ),
. .
.
. , , .
.
, .
AA-BB, AA
, BB .
AA-BB-CC AA-BB-CC-DD, AA-BB - ,
, CC , DD
SCSI.
, ,
.


AA-BB, AA
, BB - - .
00 AA , CPU ,
. AA ,
-. AA
- . -.
0 -, 1 - .
-.
BB - .
CPU , - 0,
- 1. -,
0. - (
-), .
00-00 -.
:
00-05
00-12
18-05

5 -,
CPU , .
2 -,
CPU.
5 -.
, 8
- CPU.


00-00-S1-00 00-00-S2-00 , ,
- s1 s2.
00-00-0P-00 ,
-.

136

, ,
, -. ,
AA-BB-CC-DD, AA-BB
.
AA

BB

CC
DD

00 AA , CPU ,
. AA ,
-. -, -
CPU, -.
BB - . CPU
, - 0,
- 1. -,
0. - (
-), .
CC , .
01, 02, 03 04.
DD , ,
.


00-00-S1-00 00-00-S2-00 ,
- s1 s2.
, ,
-.
AA-BB-CC-DD, AA-BB .
AA

BB

CC
DD

00 AA , CPU ,
. AA ,
-. -, CPU,
-.
BB - . CPU
, - 0,
- 1. -,
0. - (
-), .
CC , .
01, 02, 03 04.
DD ,
.

SCSI
SCSI, :
v CD-ROM
v
v -
v
v
v
AA-BB-CC-S,L . AA-BB
SCSI.

15.

137

AA
BB

CC

S,L

00 AA , CPU
, .
BB - .
-. - 0, - 1.
- . SCSI
BB 00.
CC SCSI, .
SCSI, 00.
00 , SCSI , 01
, SCSI .
S,L SCSI (LUN), SCSI.
S SCSI, L LUN.

, , AA-BB. 00
AA , . BB -
. 0,
-. -,
.

,

, ,
AA-BB-CC-DD, AA-BB - .
:
AA
BB

CC
DD

00 AA , CPU
, .
BB - . -.
- 0, - 1.
-, .
CC , . 00, 01, 02 03.
DD (LUN), .
, .


00-00-0D-01 00-00-0D-02, ,
- 0 1.

/ LPF
LPF,
, AA-BB-CC.
:

BB

00 AA , CPU
, .
BB - . -.
- 0, - 1.
-, .

138

AA

CC

CC , .
1 , 01, 2 - 02.

: LPF,
, . ,
.
/ LPF.


AA-BB-CC-DD, AA-BB -
.
:
AA
BB

CC
DD

00 AA , CPU
, .
BB - . -.
- 0, - 1.
-, .
CC , .
01.
DD .
- 00, 01, 02 03.

PCI
PCI PCI
.
. ,
.
:
v
.
v PCI , .
v , ( PCI)
,
.
: PCI


, bootlist.
, .
,
, - .
PCI ,
- ,
. ,
. ,
, .
:
v FRU.
15.

139

v .
v HACMP.

. :
v -.
v , ,
.
v , .

.
. ,
EPOW, DMA
. , ,
, - .

:
v , , ,
.
v .
v ,
.
v .
v .

, . rmdev.
,
, .
:
v PCI , .
v PCI, .
v PCI .

140

: PCI ,
PCI
, ,
. ,
, rootvg,
-, . ,
. rootvg
, chpv . rootvg
MPIO, -,
( ), .
( ) - ,
rmdev -R . .
.
PCI , .
PCI,
, .
.
PCI, ,
AIX 5L 5.3 - :
:
v PCI
v PCI

PCI
PCI .
Ethernet, Token-ring, FDDI ATM.
AIX 5L
5.3 - : .
TCP/IP,
TCP/IP .
, TCP/IP
, netstat.
Ethernet : Ethernet (en X) IEEE 802.3
(etX). X , entX. TCP/IP
. , Ethernet ent0 en0
et0.
Token-Ring Token-ring (trX). X
, tokX. , Token-ring tok0
tr0.
ATM ATM (atX). X ,
atmX. , ATM atm0
at0. , ATM .
ifconfig. rmdev PCI
, .
,
drslot.

15.

141


1. PCI pci1 ,
, :
rmdev

-p pci1

:
rmt0
hdisk1
scsi1
ent0

- (MPIO)
- (MPIO)
, .
(PCM).
MPIO . PCM
. ,
PCM, -
.

ODM

PCM RTL

PCM KE

12. MPIO.
MPIO. MPIO ,
PCM. (KE= , RTL= ).

MPIO ,
(ODM),
, MPIO.

142

SCSI Fibre Channel, MPIO.


AIX 5L 5.2 5200-04,
MPIO iSCSI. AIX 5.3,
Fibre Channel MPIO.
, MPIO
ODM.
AIX PCM PCM RTL PCM KE. PCM RTL -
,
PCM KE ODM , PCM KE. PCM RTL
. PCM RTL,
PM KE.
PCM KE ,
MPIO. PCM KE
. MPIO
.
- PCM KE MPIO.
PCM KE , .
, PCM KE ,
-. PCM KE
, , ,
..
AIX PCM
, :
v -.
v , -
(, ).
v ,
(, failover,
).
PCM, AIX .
PCM, AIX , ,
, -
. ,
, PCM.

MPIO
MPIO ,
. AIX 5.2 5200-01, MPIO
cfgmgr, mkdev , chdev, rmdev lsdev.
MPIO . mkpath, chpath, rmpath
lspath.
MPIO, .
MPIO
AIX 5L 5.3 - : .
MPIO , MPIO
reserve_policy algorithm. reserve_policy
, ,

15.

143

. algorithm - ,
. reserve_policy
MPIO . 145. algorithm
. 146.

MPIO
PCM, AIX , ,
devices.common.IBM.mpio.rte. ,
PCM AIX, MPIO, ,
, ODM, PCM,
.
, AIX PCM, :
odmget -qDvDr=aixdiskpcmke PdDv | grep uniquetype | while read line
do
utype=`echo $line | cut -d" -f2`
dvc=`odmget -q"uniquetype=$utype AND attribute=dvc_support" PdAt`
echo $dvc | grep values | cut -d" -f2
done

, AIX PCM, :
odmget -qDvDr=aixtapepcmke PdDv | grep uniquetype | while read line
do
utype=`echo $line | cut -d" -f2`
dvc=`odmget -q"uniquetype=$utype AND attribute=dvc_support" PdAt`
echo $dvc | grep values | cut -d" -f2
done

, PCM
. PCM AIX :
SCSI (disk/scsi/scsd), MPIO FC ( disk/fcp/mpioosdisk) MPIO
iSCI (disk/iscsi/mpioosdisk). PCM AIX MPIO
FC tape/fcp/mpioost).
MPIO FC MPIO FC
Fibre Channel, . FC MPIO,
ODM,
PCM AIX . ,
, FC MPIO.
MPIO iSCSI iSCSI.
FC iSCSI, ODM,
PCM AIX . ,
,
FC iSCSI.
, MPIO FC,
:
odmget quniquetype=disk/fcp/mpioosdisk PdAt | grep deflt | cut -d" -f2

, FC
MPIO, :
odmget -q "uniquetype=tape/fcp/mpioosdisk AND attribute=mpio_model_map PdAt | grep deflt | cut -d" -f2

, MPIO iSCSI,
:

144

odmget quniquetype=disk/iscsi/mpioosdisk PdAt | grep deflt | cut -d" -f2

.
MPIO :
odmget -qattribute=unique_id PdAt | grep uniquetype | cut -d" -f2

MPIO, PCM AIX


PCM.

MPIO
, MPIO.
Web- , SMIT (lsattr chdev).
MPIO reserve_policy.
PR_key. MPIO .
.
reserve_policy
, .
:
no_reserve
.
, .
single_path_reserve
SCSI2,
.
. SCSI2
(),
.
single_path_reserve,
. , ,
PCM , , -
. single_path_reserve,
BDR, ,
.
, ,
BDR . (AIX PCM
,
.)
PR_exclusive
SCSI3
. PR_key
. PR_key
.
PR_shared
SCSI3
. PR_key .

.
PR_key
,
(PR_exclusive PR_shared).
15.

145


PCM, AIX ,
PCM . , ,
. PCM
.
, PCM, AIX
:
algorithm
- . algorithm
:
failover
- . ,
- .
. ,
.
path priority . 147.
AIX PCM.
round_robin
- .
path priority . 147. ,
.
. , -
.
AIX PCM; AIX PCM round_robin.
hcheck_mode
, .
:
enabled
healthcheck .
failed healthcheck , .
nonactive
( ) healthcheck ,
-, .
failover, healthcheck
-.
round_robin, healthcheck
, round_robin -
.
hcheck_interval
. 0
3600 . 0, .
dist_tw_width
. ,
-,
. dist_tw_width .
, ,
-.
,
.

146

dist_err_percent
, .
-
. dist_err_percent 0
100. 0, .
- 0.
.
.
dist_err_percent, .
AIX PCM:
path priority
.
algorithm - failover, .
.
. - 1.
,
, .
algorithm round_robin,
-. ( )
-, . -
. ,
. ,
.

15.

147

148

16.
.
.
,
, ,
, ,
.
,
.
:
v
v . 161
16,
AIX 5L 5.3 - :
.


,
.
Web- , SMIT ( , lsattr
chdev).
.



, ( ).
, .
,
. 0
. , ,
.


mode=yes ( chdev),
;
. mode=no,
,
. mode=no
. - mode=yes.
mode=no, ,
. ,
.


no ( extfm chdev),
. yes
. .
Copyright IBM Corp. 1999, 2004

149

- no. , 8- 2,2
, 8,5 . 184 K
1,5 .
8- .

.

ret=yes ( chdev, ret),


.
, .
.
, .
ret=no, .
- yes.

#1 #2
#1 ( chdev, density_set_1) ,
/dev/rmt*, /dev/rmt*.1, /dev/rmt*.2
/dev/rmt*.3. #2 ( density_set_2 chdev)
/dev/rmt*.4, /dev/rmt*.5, /dev/rmt*.6 /dev/rmt*.7.
. 161.
0 255. (0)
, ;
. .

. #1
, #2 -
.


, ( chdev,
res_support), res_support=yes
SCSI, . SCSI,
, .
SCSI /.
SCSI ,
/ .


( var_block_size chdev) ,
. SCSI
,
.
0.
SCSI.


compress=yes ( compress chdev),
( ).
,
. no,
( ).
. yes.

150


autoload=yes ( autoload chdev),
, . ,
, ,
, . ,
, -.
yes.


( )
. , ,
. OST.
45.

- /
- / /
( ),
. OST.
144.


( )
, ,
. ,
. -1, errno
EIO. . ,
.

4-
2,0 (4mm2gb)

- 1024.


, .


4-
2,0 , , , ,
#1 #2 ,
.

4-
4,0 (4mm4gb)

- 1024.


, .

#1 #2
;
:
16.

151


DDS
DDS ||||
DDS2
-DDS


.
/ 2,0 .
; 4,0 .
; .


, .


4-
4,0 , , , ,
#1 #2 ,
.

8-
2.3 (8mm)

- 1024. ,
.


, .


, .


8-
2,3 , , , ,
, #1 #2
, .

8-
5,0 ( 8mm5gb)

- 1024. 2.3 ,
,
.


, .


, .

#1 #2
:

140
21

152

5 ( )
5


20
0

2.3
( 5,0 )

140 #1 20
#2. 21 #1 #2
5 .


, .


8-
5,0 , ,
, .

8-
20000 ()

- 1024.


, .


, .

#1 #2
20,0 .
,
. .
:

39
0

20 ( )
( 20.0 )

#1 #2 - 39.


, .


8-
20,0 , ,
, .

16.

153

35
(35gb)

IBM 7205 Model 311 .
32 .
32 K (
/).
:

BACKUP

(
)
32K 51.2K ( )

TAR

10

MKSYSB

. BACKUP

DD

CPIO

32 K 51.2 K
,

.
.

, 512 .


-N64.
MKSYSB
BACKUP.
.


bs=32K.


-C64.

: ,
.
- . 2.6 6.0
, . ,
1024- 32 22
. 32 32
2 .


, .


, .

#1 #2
(
) IBM 7205-311.
() ,
. ()
, .

154

DLTtape III

2.6
6.0
10.0

DLTtapeIIIxt

15.0

DLTtapeIV

20.0
35.0

2,6 ( )
6,0 ( )
20,0 (

)
30.6 (

)
40.0
70,0 (

)

WSM
SMIT
23
24
25

HEX
17h
18h
19h

25

19h

26
27

1Ah
1Bh

: ,
.


. (. , .)
2:1.


, .

1/4
150 (150mb)

- 512. , 0.
.


, .


1/4- (BOT) ,
, . , ,
BOT.
, ,
, .
.

, .

#1 #2
:

16
15
0

QIC-150
QIC-120
(QIC-150) , .

16.

155

16 #1 15
#2.


1/4-
150 , , ,
,
.

1/4-
525 (525mb)

- 512. : 0 (
) 1024.


, .


1/4- (BOT) ,
, . , ,
BOT.
, ,
, .
.

, .

#1 #2
:

17
16
15
0

QIC-525*
QIC-150
QIC-120
(QIC-525) , .

* QIC-525 - , 1024.
17 #1 16
#2.


1/4-
525 , , ,
,
.

156

1/4-
1200 (1200mb-c)

- 512. : 0 (
) 1024.


, .


1/4- (BOT) ,
, . , ,
BOT.
, ,
, .
.

, .

#1 #2
:

21
17
16
15
0

QIC-1000*
QIC-525*
QIC-150
QIC-120
(QIC-1000) , .

* 1024 QIC-525 QIC-1000.


21 #1 17
#2.


1/4-
1200 , , ,
,
.

4-
12000 ()

IBM 12000 MB Tape Drive .
32 .
32 K (
/).
:

16.

157


BACKUP

(
)
32K 51.2K ( )

TAR

10

MKSYSB

. BACKUP

DD

CPIO

32 K, 51.2 K
,

.
.

, 512 .


-N64.
MKSYSB
BACKUP.
.


bs=32K.


-C64.

: ,
.
- .


, .


, .

#1 #2
(
) IBM 12000 MB 4 mm. ()
, .
() ,
.

DDS III
DDS2
DDS3

2.0
4.0
12.0



4.0
8.0
24.0

wsm
smit
19
36
37

(.)
13h
24h
25h

: ,
.


. (. , .)
2:1.


, .

158

1/4-
13000 ()

- 512. : 0 (
) 1024.


, .


1/4- (BOT) ,
, . , ,
BOT.
, ,
, .
.

, .

#1 #2
:

33
34
21
17
16
15
0

QIC-5010-DC*
QIC-2GB*
QIC-1000*
QIC-525*
QIC-150
QIC-120
(QIC-5010-DC)*

* 1024 QIC-525, QIC-1000, QIC-5010-DC QIC-2GB.


#1 33, #2 - 34.


1/4-
13000 , ,
, .

1/2- 9-
( 9trk)

, 1024.


, .

16.

159

#1 #2
:

3
2
0

6250 (bpi)
1600 bpi
.

#1 3, #2 - 2.


1/2- 9
, , , ,
,
.

1/2- 3490e ( 3490e)



- 1024. ,
.
,
.
:
. ,
:
.


, .

, .

()
. ,
AUTO,
yes.

SCSI (
ost)

512,
. - 512 1024. 8- 4-
1024; 512,
. 0
.


, .

160


, .

#1 #2
0.
.


- no.
, yes. ,
no.


0. 1/4-
(QIC) .
SCSI.


ost.

- /
ost.


SCSI,
,
, .


rmt.
, ,
. /dev/rmt*, /dev/rmt*.1, /dev/rmt*.2, ... /dev/rmt*.7. rmt* -
, , rmt0, rmt1 ..
, , ,
/ .

--

--


: #1 #2.
. ,
#1
, #2 -
, ,
#1, ,
, #2 - ,
. .
, ,
, , .
, .
,
.
, .

. ,
.

16.

161

rmt .

/dev/rmt*

#1

/dev/rmt*.1

#1

/dev/rmt*.2

#1

/dev/rmt*.3

#1

/dev/rmt*.4

#2

/dev/rmt*.5

#2

/dev/rmt*.6

#2

/dev/rmt*.7

#2

, , rmt2.
, - , - . ,
, #1.
, .
1. /dev/rmt2.3
2. /dev/rmt2.1
3. /dev/rmt2
?
v /dev/rmt2.3,
, , .
, / ,
. , ,
/dev/rmt2.1,
.
v /dev/rmt2.1,
, .
, .
v /dev/rmt2,
.
,
. .
rmt tctl.

162

A.
BSD
,
BSD UNIX 4.3 System V.
AIX.
:
v AIX BSD -
v AIX BSD . 164
v BSD 4.3 . 164
v BSD 4.3 . 167
v BSD 4.3 . 168
v - BSD 4.3 . 169
v - BSD 4.3 .
169
v Cron - BSD 4.3 . 172
v
v
v
v
v
v

BSD 4.3 . 172


BSD 4.3, SVR4 . 173
- BSD 4.3 . 174
BSD 4.3 . 175
BSD 4.3 . 176
- BSD 4.3 . 176

v man - BSD
4.3 . 178
v NFS NIS ( Yellow Pages) - BSD 4.3
. 178
v BSD 4.3 . 179
v - BSD
4.3 . 182
v BSD 4.3 . 182
v - BSD 4.3 . 184
v UUCP - BSD 4.3 . 184.

AIX BSD -

, BSD 4.3,
:
v AIX BSD . 164
v BSD 4.3 . 164
BSD 4.3 . 167
BSD 4.3 . 168
- BSD 4.3 . 169
- BSD 4.3 .
169
Cron - BSD 4.3 . 172
Copyright IBM Corp. 1999, 2004

163

BSD 4.3 . 172


BSD 4.3, SVR4 . 173
- BSD 4.3 . 174
BSD 4.3 . 175
BSD 4.3 . 176
- BSD 4.3 . 176
man - BSD
4.3 . 178
NFS NIS ( Yellow Pages) - BSD
4.3 . 178
BSD 4.3 . 179
-
BSD 4.3 . 182
BSD 4.3 . 182
- BSD 4.3 . 184
UUCP - BSD 4.3 . 184.

AIX BSD
:
v root .
v ,
. , .
, (xterm
).
v AIX. :
(SMIT). SMIT
. SMIT
.
13, (SMIT), . 129.
(ODM). ODM
ODM. ODM
.
ODM 15, , . 133.
(SRC). SRC
.
. 115.

BSD 4.3


BSD 4.3. ,
AIX BSD - . 163.


BSD 4.3 .
, ( )
. ;
. BSD 4.3

164

(dbm).
dbm, , , dbm .

, - . - ,
. , .

dbm. , , /etc/passwd, /etc/group /etc/inittab,
, .
ODM.
ODM Web-
(SMIT). ,
ODM. ODM
:
v odmget
v odmshow.
ODM ODM:
v odmadd
v
v
v
v

odmcreate
odmdrop
odmchange
odmdelete.
: ODM ,
. ODM
ODM , Web-
SMIT.


, ,
. .
, , ODM,
/etc/objrepos.
/dev .
, , ,
. , ,
Devices Web-
(SMIT).
ODM.


.
. BSD 4.3,
. , BSD 4.3,
.
, .

:
A. BSD

165

v
v
v
v
v
v

crfs
varyonvg
varyoffvg
lsvg
importvg
exportvg.

, BSD 4.3:
v
v
v
v
v

mkfs
fsck
fsdb
mount
umount.

BSD 4.3
- BSD 4.3 . 174.
BSD 4.3 /etc/fstab.
/etc/filesystems.



150 , BSD 4.3.
-
BSD 4.3 . 169.


.
BSD 4.3. RAM
.
.
, .
.
RAM
, .


BSD 4.3 AT&T UNIX SVR4
, ,
/etc/passwd. , /etc/passwd .
SVR4 /etc/passwd, /etc/shadow.
/etc/shadow root
(, /bin/login).
/etc/security/passwd.
, /etc/security user limits.
(,
rlogin telnet) , (,
).

166


AIX BSD 4.3 .
,
/etc/qconfig.
, ,
BSD 4.3,
BSD 4.3 , BSD 4.3.

Bourne, C Korn.
Bourne - /bin/bsh. /bin/sh - /bin/ksh.
.
AIX setuid setgid .
:
1. , /bin/sh.
, , /bin/sh -
Bourne.
2. , Bourne Korn , Korn
Bourne.

BSD 4.3
, /usr/lib/acct,
, /usr/lib/sa, ,
AT&T System V Release 4 (SVR4),
BSD 4.3.
/usr/lib/acct.
/usr/lib/acct/startup. ,
lastcomm(1) .
BSD 4.3:
last(1)
lastcomm (1)
acct(3)
ac(8)
accton (8)
sa(8)

,





.


System V Interface Definition (SVID) Issue II:
acctcms (1)
acctcom (1)
acctcon1 (1)
acctcon2 (1)

A. BSD

167

acctdisk (1)
acctmerg (1)
accton (1)
acctprc1 (1)
acctprc2 (1)
acctwtmp (1)
chargefee(1)
ckpacct(1)
diskusg (1)
dodisk (1)
fwtmp(1)

lastlogin(1)
monacct (1)
prctmp (1)
prdaily (1)
prtacct (1)
runacct (1)
shutacct (1)
startup (1)
turnacct (1)
wtmpfix(1)

diskusg (1)


, acct(3)
acctprc1(1)



/usr/adm/pacct


( wtmp) ASCII.
: wtmp /var/adm.


, acctcon1 (1)






wtmp.

BSD 4.3
tar cpio . tar,
, tar BSD 4.3.
tar -B ( ).
cpio AT&T .
dump
restore. , backup :
backup -0uf -

dump BSD 4.3 :


dump 0uf -

, restore :
restore -mivf

restore BSD 4.3 :


restore ivf

, BSD 4.3 rdump rrestore.


,
- (). , :
rdump -0 -f orca:/dev/rmt0 /dev/hd2

BSD 4.3, :
rdump 0f orca:/dev/rmt0 /dev/hd2

168

backup :
backup -0f /dev/rmt0 /dev/hd2

BSD 4.3 dump :


dump 0f /dev/rmt0 /dev/hd2

SCSI

SCSI .
,
SCSI IBM.
Adding an unsupported device to the system AIX 5L Version 5.3 Kernel
Extensions and Device Support Programming Concepts, . 65.

-
BSD 4.3
BSD 4.3 init .
init .
/etc/ttys.
System V init . init
, /etc/inittab.
, System V.
/etc/inittab , telinit
:
chitab(1)
lsitab(1)
mkitab(1)
rmitab(1)

/etc/inittab
/etc/inittab
/etc/inittab
/etc/inittab.

, /etc/inittab,
telinit q.

-
BSD 4.3
,
.
bosboot (1)
bootlist (1)
cfgmgr(1)
chcons (1)
chdev(1)
chdisp (1)
checkcw(1)
checkeq(1)

.
.
/etc/methods.
,
.
.
, (LFT).
troff.
, memorandum.
A. BSD

169

checkmm(1)
checknr (1)
chfont(1)
chfs(1)
chgroup (1)
chgrpmem (1)
chhwkbd (1)
chitab(1)
chkbd(1)
chkey(1)
chlang
chlicense (1)

chlv(1)
chnamsv (1)
chprtsv (1)
chps(1)
chpv(1)
chque(1)
chquedev (1)
chssys (1)
chtcb(1)
chtz
chuser(1)
chvfs(1)
chvg(1)
chvirprt (1)
crfs (1)
crvfs(1)
exportvg (1)
extendvg (1)
grpck(1)
importvg(1)
lsallq (1)
lsallqdev (1)
lsdisp(1)
lsfont(1)
lsfs(1)
lsgroup(1)
lsitab(1)
lskbd(1)
lslicense (1)
lslpp (1)
lsnamsv (1)
lsprtsv (1)
lsps
lsque(1)
lsquedev (1)
lssrc(1)

170

, memorandum.
nroff troff.
, .
.
.
.
LFT ( ),
ODM.
/etc/inittab.
,
(LFT) .
.
LANG, /etc/environment;
.
: .
,
-u.
-f ( on off).

TCP/IP

.
.
.
.
.
.
.
.
/etc/vfs.
.
.
.
/etc/vfs.
.
.
.
.
.
.
, .
.
.
.
/etc/inittab.

(LFT).

.
.
, .
, .
.
.
.
, .

lsuser(1)
lsvfs(1)
mkcatdefs (1)
runcat(1)
mkdev(1)
mkfont (1)
mkfontdir (1)
mkgroup (1)
mkitab(1)
mklv(1)
mklvcopy (1)
mknamsv (1)
mknotify (1)
mkprtsv (1)
mkps(1)
mkque(1)
mkquedev (1)
mkserver (1)
mkssys(1)
mksysb
mkszfile
mktcpip (1)
mkuser (1)
mkuser.sys (1)
mkvg(1)
mkvirprt (1)
odmadd(1)
odmchange (1)
odmcreate (1)
odmdelete (1)
odmdrop (1)
odmget(1)
odmshow (1)
pwdck(1)
redefinevg
reducevg (1)
reorgvg (1)
restbase (1)
rmdel(1)
rmdev(1)
rmf(1)
rmfs(1)
rmgroup(1)
rmitab(1)
rmlv(1)
rmlvcopy (1)
rmm(1)
rmnamsv (1)
rmnotify (1)
rmprtsv (1)
rmps(1)

.
/etc/vfs.
.
mkcatdefs gencat.
.
, .
fonts.dir .
.
/etc/inittab.
.
.
TCP/IP.
.
TCP/IP.
.
.
.
.
.

rootvg .
rootvg
.
, TCP/IP.
.
.
.
.
.
.
(.c) (.h) ,
ODM, .
.
.
odmadd.
.
.

.
.
.
.
.
(SCCS).
.
.
.
.
/etc/inittab.
.
.
.
TCP/IP.
.
.
.
A. BSD

171

rmque(1)
rmquedev (1)
rmserver (1)
rmssys (1)
rmuser (1)
rmvfs (1)
rmvirprt (1)
savebase (1)
swapoff (1)
swapon(1)
syncvg (1)
usrck (1)
varyoffvg (1)
varyonvg (1)

.
.
.
.
.
/etc/vfs
.
ODM .
.
.
.
.
.
.

Cron - BSD 4.3


cron, , cron System V
Release 2. cron /etc/inittab.

BSD 4.3
BSD 4.3 :
v .
v .
v /dev .

:
v .
v .
v /dev .
v /etc/objrepos ,
.
,
. /etc/methods.
( cfgmgr)
.
,
/etc/objrepos.
cfgmgr , /etc/objrepos.
(cfgmgr).
:
/* */
_
{

(stdout)

172

_(stdout)
}
/* */
/* stdout */
_(stdout)
{

{

(! /* */ )


(! /* */ )
{

_(stdout)
}
}
}

BSD 4.3, SVR4

, BSD 4.3, SVR4


.

BSD 4.3

SVR4

L-Devices

Devices

Devices

L-dialcodes

Dialcodes

Dialcodes

L.cmds

Permissions

Permissions

L.sys

Systems

Systems

USERFILE

Permissions

Permissions

aliases

mail/namefiles

aliases

aliasesDB/DB

fstab

vfstab

filesystems

ftpusers

ftpusers

ftpusers

gettytab

dbm

group

group

group

hosts

hosts

hosts

hosts.equiv

hosts.equiv

hosts.equiv

inetd.conf

inetd.conf

inetd.conf

map3270

map3270

motd

motd

motd

mtab

mnttab

named.boot

named.boot

named.boot

named.ca

named.ca

named.hosts

named.data (. )

named.local

named.local

named.pid

named.pid

(odm/dbm)

named.pid

A. BSD

173


BSD 4.3

SVR4

named.rev


named.rev

networks

networks

networks

passwd

passwd

passwd

printcap

qconfig

qconfig

protocols

protocols

remote

remote

remote

resolv.conf

resolv.conf

resolv.conf

sendmail.cf

sendmail.cf

sendmail.cf

sendmail.cfDB

services

services
shells

shells

syslog.conf

syslog.conf

syslog.pid

syslog.pid

termcap

terminfo

terminfo

ttys

ttys

odm

utmp

utmp

utmp

vfont

vgrindefs

vgrindefs

wtmp

stab

types

(odm/dbm)

wtmp

wtmp

: named.ca, named.hosts, named.local named.rev


named.boot.
.

-
BSD 4.3
,
, ,
.
/etc/filesystem.
.

/etc/filesystems /etc/fstab
BSD 4.3 /etc/fstab.
SVR4
/etc/vfstab.

174


/etc/filesystems. /etc/filesystems
crfs, chfs rmfs.
BSD 4.3 check,
/etc/filesystems. check True, False .
, /etc/filesystems check=2.
fsck, . check
/etc/fstab.
/etc/filesystems .


.
.
mount umount
BSD 4.3 SVR4. ,

:
mount unmount

BSD
4.3


SVR4

mount all

mount -a

mountall

umount all

umount -a

umountall

5, , .
39.

BSD 4.3
BSD 4.3,
:
v which
v whereis
v what
v file.
fast find find, BSD
4.3. AIX .
ffind:
#!/bin/bsh
PATH=/bin
for dir in /bin /etc /lib /usr
do
find $dir -print | egrep $1
done

ffind:
A. BSD

175

ffind -

BSD 4.3
:
chps(1)
lsps(1)
mkps(1)
rmps(1)
swapoff(1)
swapon(1)


.
.

- BSD
4.3
,
BSD 4.3, , ,
. ,
BSD 4.3 .


BSD 4.3

SMIT, ODM BSD 4.3.
BSD 4.3
/etc/rc.net:
# Part II - Traditional Configuration

SRC,
/etc/rc.net, hostname, ifconfig route
.
SRC,
smit setbootup_option rc, BSD.
/etc/rc.bsdnet.
/etc/rc.bsdnet, , hostname,
ifconfig route .

ifconfig netstat
ifconfig :
mtu

176

mtu (MTU),
( ), MTU, .
Ethernet Token-Ring
Ethernet mtu, 1500.

allcast
allcast Token-Ring. allcast
Token-Ring. allcast
(-allcast) , Token-Ring.
netstat -v. netstat -v
, , ,
.


:
securetcpip

gated
no

securetcpip ,
. TCP/IP, tftp,
rcp, rlogin rsh. , .netrc.
gated MIB SNMP
no , :
dogticks
ifwatchdog
subnetsarelocal
,
ipsendredirects
,
ipforwarding
,
tcp_ttl TTL TCP
udp_ttl TTL UDP
maxttl

TTL RIP

ipfragttl
TTL IP
lowclust
mbuf
lowmbuf
mbuf
thewall , mbuf mbuf

iptrace
ipreport

arpt_killc
,
(ARP)
iptrace Internet .
ipreport , .
:
iptrace -i en0 /tmp/iptrace.log
# iptrace
kill `ps ax | grep iptrace | awk { print $1 }`
ipreport /tmp/iptrace.log | more


gethostbyname gethostbyaddr libc DNS, NIS
( Yellow Pages) /etc/hosts. /etc/resolv.conf ,

A. BSD

177

. ,
NIS, . NIS ,
/etc/hosts.

BSD 4.3
/etc/rc.tcpip,
/etc/rc.local. /etc/rc.tcpip /etc/inittab, /etc/rc.
(SRC), TCP/IP
. , TCP/IP SRC,
smit setbootup_option rc, BSD.
BSD 4.3,
:
v (SYSLOG)
v UNIX.

tn3270
tn3270 telnet,
3270 /etc/map3270 TERM.
, tn3270 , BSD.
Esc-, tn3270, telnet tn,
TNESC .

man -
BSD 4.3
man-k, apropos whatis.
catman-w.
man /usr/man/cat?.
nroff /usr/man/man?. ,
nroff .
:
1. man .
catman.
/usr/man/cat?, nroff (
/usr/man/man?).
2. man nroff,
.

NFS NIS ( Yellow Pages) -


BSD 4.3
(NFS) (NIS)
/etc/rc.nfs. NFS NIS /etc/rc.tcpip
portmap. /etc/rc.nfs /etc/inittab.
/etc/rc.nfs,
/etc/inittab /etc/rc.tcpip.

178

NIS, root +:: (,


, ) /etc/passwd system +:: /etc/group.
,
NIS.
NFS Web- ( wsm )
SMIT smit nfs. Web- SMIT
( Yellow Pages) NIS. NFS NIS
/etc /usr/etc.
NFS arch.
, IBM RS/6000 (CPU)
power, - ibm6000.

BSD 4.3
,
BSD 4.3.


root /bin/passwd
root.
/bin/passwd:
# passwd cslater
"cslater"
root
cslater:
cslater:
:
#

BSD 4.3 root.


BSD 4.3 :
# passwd cslater
:
:
#

BSD 4.3
BSD 4.3.
/etc/passwd :
pwdck -y ALL

/etc/security/limits .
usrck, /etc/passwd
/etc/group, usrck
.
: /etc/security/limits ,
65536 . usrck
. 65536
usrck.
, grpck
usrck.
A. BSD

179


lsuser, mkuser ,
chuser rmuser. Web-
SMIT.
.
:
. ,
/etc/security/passwd, -
/etc/security/user, - /etc/passwd.
vipw,
mkpasswd. , ,
BSD 4.3. :
1. BSD 4.3 /etc/shadow.
2. :
chmod 000 /etc/shadow

3. /etc vipw:
-------------------------------------------------------#!/bin/bsh
#
# vipw. pwdck. usrck.
#
PATH=/bin:/usr/bin:/etc:/usr/ucb # ,
#
#
if [ -f /etc/ptmp ]; then
echo "/etc/ptmp . - vipw?"
exit 1
fi
if [ ! -f /`which "$EDITOR" | awk { print $1 }` ] ; then
EDITOR=vi
fi
cp /etc/shadow /etc/ptmp
if (cmp /etc/shadow /etc/ptmp) ; then
$EDITOR /etc/ptmp
else
echo shadow ptmp
exit 1
fi
if (egrep "^root:" /etc/ptmp >/dev/null) ; then
cp /etc/ptmp /etc/shadow ; cp /etc/ptmp /etc/passwd
chmod 000 /etc/passwd /etc/shadow
pwdck -y ALL 2>1 >/dev/null # 114
rc=$?
if [ $rc -eq 114 ]; then
chmod 644 /etc/passwd
rm -f /etc/passwd.dir /etc/passwd.pag
mkpasswd /etc/passwd
# /etc/security/limits ftp
#
else
pwdck -y ALL
fi
else
echo root ptmp
fi
rm /etc/ptmp
-----------------------------------------------------------

180

4. vipw mkpasswd, ,
Web- , SMIT, mkuser, chuser rmuser
mkpasswd. :
mkpasswd /etc/passwd

/etc/passwd.dir /etc/passwd.pag.
: IFS trap ,
setuid. vipw passwd
, .

.
5. /usr/ucb passwd:
----------------------------------------------------#!/bin/ksh
#
# /etc/security/passwd
# /etc/shadow
#
IFS=" "
PATH=/bin
trap "exit 2" 1 2 3 4 5 6 7 8 10 12 13 14 15 16 17 18 21 22 \
23 24 25 27 28 29 30 31 32 33 34 35 36 60 61 62
if [ -n "$1" ]; then
USERNAME=$1
else
USERNAME=$LOGNAME
fi
if [ -f /etc/ptmp ]; then
echo
exit 1
fi
trap "rm /etc/ptmp; exit 3" 1 2 3 4 5 6 7 8 10 12 13 \
14 15 16 17 18 21 22 23 24 25 27 28 29 30 31 \
32 33 34 35 36 60 61 62
if (cp /etc/security/passwd /etc/ptmp) ; then
chmod 000 /etc/ptmp else
rm -f /etc/ptmp exit 1
fi
if ( /bin/passwd $USERNAME ) ; then
PW=` awk BEGIN { RS = "" }
$1 == user { print $4 } user="$USERNAME:" \
/etc/security/passwd `
else
rm -f /etc/ptmp
exit 1
fi
rm -f /etc/ptmp
awk -F: $1 == user { print $1":"pw":"$3 ":"$4":"$5":"$6":"$7 }
$1 != user { print $0 } user="$USERNAME" pw="$PW" \
/etc/shadow > /etc/ptmp
chmod 000 /etc/ptmp
mv -f /etc/ptmp /etc/shadow
---------------------------------------------------------

6. passwd :
chmod 4711 /usr/ucb/passwd

7. , PATH /usr/ucb
/bin.

A. BSD

181

-
BSD 4.3
.
:
lsattr -E -l

, True, :
chdev -l -a =

: .
40.
, ,
. :
hdev -l sys0 -a maxuproc=100

100.
.
:
lsattr -E -l sys0

maxmbuf mbuf.
vmstat iostat,
systat .

BSD 4.3
AIX 5.1 : BSD 4.3 System
V. System V , , System
V Release 4. BSD 4.3.
SMIT .
.
/usr/lpd. , ,
BSD 4.3
. , lpd.
/etc/hosts.lpd, , /etc/host.equiv.

BSD 4.3,
BSD 4.3, , BSD 4.3.
/etc/printcap, BSD 4.3, .
.

printcap.
/etc/qconfig
. ODM.
mkvirprt ( ).

182

lp0 viking,
/etc/printcap BSD 4.3:
lp0| ,
viking:Z
:lp=:rm=viking:rp=lp:st=/usr/spool/lp0d


/etc/qconfig:
lp0:
device = dlp0
host = viking
rq = lp
dlp0:
backend = /usr/lib/lpd/rembak

.

:
cancel(1)
chquedev(1)
chvirprt(1)
disable(1)
enable(1)
hplj(1)
ibm3812(1)
ibm3816(1)
ibm5587G(1)
lp(1)
lpr(1)
lprm(1)
lpstat(1)
lptest(1)
lsallqdev (1)
lsvirprt(1)
mkque(1)
mkquedev(1)
mkvirprt(1)
pac(1)
piobe(1)
pioburst(1)
piocmdout(3)
piodigest(1)
pioexit(3)
pioformat(1)
piofquote(1)
piogetstr(3)
piogetvals(3)
piomsgout(3)






troff HP LaserJetII
K
troff IBM 3812 Mod 2 Pageprinter
troff IBM 3816 Pageprinter
troff IBM 5587G
32x32/24x24





,




/

,



,
PostScript
,


A. BSD

183

pioout(1)
piopredef(1)
proff(1)
qadm(1)
qconfig(4)
qstatus(1)
restore(3)
rmque(1)
rmquedev(1)
rmvirprt(1)
splp(1)
xpr(1)

.






.

- BSD 4.3
, BSD 4.3
/etc/ttys HUP init.
ODM,
, init
/etc/inittab.
SMIT Web- .
-
/dev. ,
, , . SMIT
( s1)
00-00-S1, sa0 s1. ( s2)
00-00-S2, sa1 s2.
penable pdisable.

termcap terminfo
, System V, terminfo
/usr/lib/terminfo/?/*. BSD 4.3 :
captoinfo (1)
termcap terminfo
tic (1) terminfo.
terminfo.
tic.
termcap: /lib/libtermcap/termcap.src.

UUCP - BSD 4.3


(BNU) System V,
HDB UUCP.
Dialers(4)
Maxuuxqts(4)
Permissions(4)

184

, BNU
BNU uuxqt
BNU

Poll(4)
Systems(4)
rmail(1)
uucheck(1)
uuclean(1)
uucleanup(1)
uucpadm(1)
uudemon.admin(1)
uudemon.cleanu(1)
uudemon.hour(1)
uudemon.poll(1)
uulog(1)
uupoll(1)
uuq(1)
uusnap(1)
uustat(1)

, BNU
,

, BNU
, BNU
BNU
BNU
BNU
BNU
BNU

BNU
, BNU

BNU
BNU
BNU

BNU


BNU.

BSD 4.3 uuencode uudecode.


HDB uugetty .
, BNU
AIX 5L 5.3 - : .

A. BSD

185

186

B.
, .
IBM , ,
. , ,
IBM. , IBM
, , .
IBM ,
, IBM . ,
, .
IBM ,
.
. :
IBM Director of Licensing
IBM Corporation
North Castle Drive
Armonk, NY 10504-1785
U.S.A.
,
: INTERNATIONAL BUSINESS MACHINES CORPORATION
" ",
- , , ,
, ,

.
, .
.
,
. IBM / ,
, .
, :
(i)
( ) (ii) ,
:
IBM Corporation
Dept. LRAS/Bldg. 003
11400 Burnet Road
Austin, TX 78758-3498
U.S.A.
, ,
, .
, ,
IBM IBM Customer Agreement,
IBM International Program
License Agreement .
Copyright IBM Corp. 1999, 2004

187

, DBCS, IBM
:
IBM World Trade Asia Corporation
Licensing
2-31 Roppongi 3-chome, Minato-ku
Tokyo 106, Japan
IBM
, - .
,
. IBM
,
.
.
Web-, IBM, ,
IBM .
IBM; .
,
. , ,
.
.


International Business Machines
Corporation / :
AIX
AIX 5L
IBM
RS/6000
UNIX - The Open Group, .
,
.

188


.
.profile, 73
/ ()
/etc/profile, 73
/export, 44
/var, 43

J
40

A
AIX
BSD
176

L
LVM 13

B
BSD 163, 167, 178, 179, 182, 184

163, 164
cron 172
NFS NIS (Yellow Pages 178
UUCP 184
169
169
179
175
182
182
176
168
173
172
167
174
AIX
176
163
man 178

M
man, 4
BSD
MPIO 142

cron

BSD 172
cron,
117

178

N
NBPI 55
NFS NIS
BSD
NIS 178

178

S
SCSI,
137
strict, 26
super strict, 26

T
tty ()

137

U
UUCP
BSD

184

I
i- 55

53
(NBPI)
55
55
i-, 56
idbgen 74

JFS ( )
56
55
i- 53
59
53
JFS2 (
)
55, 57

55

Copyright IBM Corp. 1999, 2004

VGDA ( ) 18
VGSA ( ) 18
VMM 33

W
Web-

127

189

Yellow Pages 178


BSD


138

138

178

33
(VMM)
33
(LVM) 13
18

57


49

169

57

18


118
,
.profile, 73
/etc/profile, 73

(SMIT)

52

129

63


116

19
18
20
19
14
31
19
18

19

74
29

138
LPF,
138

63

190

6
6
8
RAM 9
BSD
6

/usr/share 43
SPOT 45
(SPOT) 45

47


chhwkbd 170
136
136
SCSI, 137
tty 137
136
,
138
, 138
138

LPF 138
139
136
/ 136


BSD 169

116
115



16


30
16
, 28
29
21
29
31

25


139

48
/etc/filesystem 48

47

49

49
47
46
47

47

115

73


BSD 182
136

BSD 182

35
35
AIX
BSD 176
37
33, 34
37
35
JFS (
)
57

73
73

118

120
83

149, 151, 152, 153, 154, 155, 156,


157, 159, 160
149
161

(VGDA) 18
(VGSA) 18
59
30
, 119

Range 25


BSD 179
i- 55
53

. 33

- 142
57
, 28
, (kproc) 59
70
63
67
69
, 65
65
70
70

69
BSD 168
65

67
66
67

67


BSD 176

191

59
61
53

5
74
74
73
74

(MWC) 23

73
23
29
27
25

14
19
16
16
17
13
23
27
25
17
14
18

116


BSD 184
47


PCI 139

21
20
133
134
136
133
135
134


BSD 172
119
119


119

192

()
()
118

120
118
119
120

122
121
121
117

120
119

119

120
121
, 119, 120

118
BSD 167

runacct, 124
123
123
123
125

118, 119

120
118
120
119

122
121
117

120
119

119

120
121
,
120
119

118

runnacct, 124
123
123
123
125


62
(/) 40

i- 53
58
39

/ () 40
/export, 44
/usr, 41
/var, 43
/usr/share 43
39
(/) 40
45

BSD 174
46
47
39
59
59

70

DVD-ROM 51

(JFS) 51
- 51

(JFS2) 51
(NFS) 51
58
53

58
59
58


BSD 173, 175
47

15
15

14

52
57

63

55
55
i- 53
63
74


18

19

i- (NBPI)

55

193

194


AIX 5L 5.3
:

SC23-4908-01
. ,
, , ,
. , ,
.
IBM
IBM, - IBM IBM.
+7(095)9402000.
IBM, IBM
, , -
.
:

.
:
v , .
v : aix6koub@austin.ibm.com
IBM, , :

e-mail


SC23-4908-01

IBM Corporation
Information Development
Department H6DS-905-6C006
11501 Burnet Road
Austin, TX

SC23-4908-01

SC23-4908-01