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

Red Hat Enterprise Linux 6

Red Hat
Enterprise Linux 6

Rdiger Landmann
David Cantrell
Hans De Goede
Jon Masters

Red Hat Enterprise Linux 6


Red Hat Enterprise Linux 6

1.0

Editor

Rdiger Landmann
David Cantrell
Hans De Goede
Jon Masters
Rdiger Landmann

r.landmann@redhat.com
dcantrell@redhat.com
hdgoede@redhat.com
jcm@redhat.com
r.landmann@redhat.com

Copyright 2010 Red Hat, Inc. and others.


The text of and illustrations in this document are licensed by Red Hat under a Creative Commons
AttributionShare Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available
at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this
document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert,
Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity
Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux is the registered trademark of Linus Torvalds in the United States and other countries.
Java is a registered trademark of Oracle and/or its affiliates.
XFS is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States
and/or other countries.
MySQL is a registered trademark of MySQL AB in the United States, the European Union and other
countries.
All other trademarks are the property of their respective owners.
1801 Varsity Drive
Raleigh, NC 27606-2072 USA
Phone: +1 919 754 3700
Phone: 888 733 4281
Fax: +1 919 754 3701

anaconda Red Hat


Enterprise Linux 6 32- 64- x86, 64-
POWER IBM System z. VNC,
PXE, . , ,
,
Red Hat Enterprise Linux 6.


xv
1. ................................................................................................ xv
1.1. ........................................................................... xv
1.2. ................................................................... xvi
1.3. ....................................................................... xvii
2. ......................................................................... xvii
2.1. ? ............................................................................................... xvii
2.2. ! ............................................................................... xviii
3. ........................................................................................................... xviii

xix
1. ? ....................................................................................... xix
2. ..................................................................... xix
3. ........................................................................ xix
4. ....................................................................................... xx
5. ...................................................................................................... xx
1. Red Hat Enterprise Linux

2.
2.1. DVD .....................................................................................
2.2. USB- ................................................................
2.3. .........................................................
2.3.1. UEFI .........................................................................

5
5
6
7
8

I. x86, AMD64 Intel 64

3. x86
3.1. ? ......................................................................
3.2. ...........................................................................
3.3. RAID .................................................................
3.3.1. RAID ...................................................................................
3.3.2. RAID ................................................................................
3.3.3. FireWire USB .......................................................................................
3.4. ? ...........................................................
3.5. ...................................................................................
3.6. .....................................................................................

11
11
11
11
11
12
12
12
12
13

4.
4.1. ........................................................................
4.1.1. FTP- HTTP- .....................................................
4.1.2. NFS- ...................................................................
4.2. ..........................................................

15
15
16
16
17

5.

19

6. Intel AMD
6.1. ............
6.2. .................................
6.2.1. ...........
6.2.2. .............................................................
6.2.3. RAM- .....................
6.3. .....................................................
6.3.1.
..................................................................................................
6.3.2. ........

21
21
22
22
23
26
27
27
28
iii


6.3.3.
........................................................................................................... 28
6.3.4. PXE- ................................... 29
6.4. ............................. 29
7.
33
7.1. ............................................................................ 34
7.1.1. x86, AMD64 Intel 64..... 34
7.1.2. ..................................................... 36
7.2. .................................................................................................. 38
7.3. ........................................................................ 39
7.4. PXE .................................................................... 39
8.
8.1. .......................................................................................
8.1.1. .........................................................
8.2. .....................................................................................................
8.3. ...............................................................................................
8.3.1. DVD ....................................................................................
8.3.2. ....................................................................
8.3.3. ..............................................................
8.3.4. NFS .......................................................................
8.3.5. FTP HTTP .......................................................
8.4. .........................................................................................

41
41
43
43
44
44
45
46
47
48
49

9. Anaconda
51
9.1. ....................................................................................... 51
9.2. ................................................................................... 51
9.2.1. ...................................................... 52
9.2.2. ..................................................... 52
9.3. .............................................................................................. 53
9.4. ...................................................................................... 53
9.5. ........................................................................................ 54
9.5.1. .......................................................... 55
9.6. ...................................................................................... 61
9.6.1. .......................................................... 62
9.7. ................................................................................ 71
9.8. root ....................................................................................... 72
9.9. ............................................................................... 74
9.10. ....................................................................... 76
9.11. .............................................................. 77
9.11.1. ............................................................................... 77
9.11.2. ..................................... 78
9.11.3. .................................................. 78
9.12. .......................................................................... 80
9.13. .................................................................................... 82
9.14. ..................... 83
9.14.1. ........................................................ 85
9.14.2. ........................................................................... 86
9.14.3. RAID .............................................................. 89
9.14.4. LVM .......................................................... 92
9.14.5. ......................................................... 95
9.15. ...................................................................... 99
9.16. x86, AMD64 Intel 64 .......................... 100
9.16.1. .................................................... 103

iv

9.16.2. .......................................................................
9.16.3. ....................................................
9.17. .....................................................................................
9.17.1. ......................................
9.17.2. .....................................
9.18. .........................................................................................
9.19. ..................................................................................

104
105
105
107
108
111
111

10. Intel AMD


10.1. Red Hat Enterprise Linux ..............................................
10.1.1. RAID-? .....................................
10.1.2. Signal 11 ................................................................................
10.2. ..................................................................
10.2.1. ................
10.3. ......................................................................
10.3.1. Red Hat Enterprise
Linux ..........................................................................................................
10.3.2. .........................................................
10.3.3. ..........................................................
10.3.4. ..........................................
10.3.5. ............................................
10.3.6. Python ...................................................................................
10.4. ...........................................................................
10.4.1. GRUB x86? ............
10.4.2. ....................................................
10.4.3. X Window (GUI) ...............................................
10.4.4. X
................................................................................................
10.4.5. ..........................................................
10.4.6. .......................................
10.4.7. ..........................................................................
10.4.8. httpd Sendmail .........................................

113
113
113
113
114
114
115

II. POWER IBM

115
115
119
119
119
119
120
120
121
122
122
122
123
124
124
125

11. POWER
11.1. ? ...................................................................
11.2. IBM eServer System p ...........................................................
11.3. RAID ..............................................................
11.3.1. RAID ...............................................................................
11.3.2. RAID .............................................................................
11.3.3. FireWire USB ....................................................................................
11.4. ? .......................................................
11.5. ..................................................................................

127
127
127
128
128
128
128
128
129

12.
12.1. ....................................................................
12.1.1. FTP- HTTP- ..................................................
12.1.2. NFS- ...............................................................
12.2. ......................................................

131
131
132
132
134

13. IBM POWER


13.1. ........
13.2. .............................
13.2.1. ........

137
137
138
138
v


13.2.2. ......................................................... 139
13.2.3. RAM- .................. 142
13.3. .................................................. 143
13.3.1.
................................................................................................ 144
13.3.2. .... 144
13.3.3.
.......................................................................................................... 144
13.3.4. PXE- ............................... 145
13.4. ......................... 145

vi

14.
14.1. ...............................................................................................
14.2. .....................................................................
14.3. PXE .................................................................

149
150
151
151

15.
15.1. ....................................................................................
15.1.1. .....................................................
15.2. .................................................................................................
15.3. ............................................................................................
15.3.1. ...............................................................................
15.3.2. ................................................................
15.3.3. ..........................................................
15.3.4. NFS ...................................................................
15.3.5. FTP HTTP ...................................................
15.4. ......................................................................................

153
153
155
155
156
156
157
158
158
159
160

16. anaconda
16.1. ....................................................................................
16.2. ................................................................................
16.3. Linux ...................................................
16.4. HMC vterm ............................................................................
16.5. ..........................................................................................
16.6. .....................................................................................
16.6.1. .......................................................
16.7. ..................................................................................
16.8. ...................................................................................
16.8.1. .......................................................
16.9. .............................................................................
16.10. root .................................................................................
16.11. ..........................................................................
16.12. ...................................................................
16.13. ..........................................................
16.13.1. ...........................................................................
16.13.2. .................................
16.14. .......................................................................
16.15. ................................................................................
16.16. .................
16.16.1. .....................................................
16.16.2. .......................................................................
16.16.3. RAID ...........................................................
16.16.4. LVM .......................................................
16.16.5. .....................................................
16.17. ...................................................................

161
161
161
162
163
163
163
164
170
170
172
181
182
184
186
187
187
188
189
191
192
194
195
198
201
204
205

16.18. ...................................................................................
16.18.1. ....................................
16.18.2. ...................................
16.19. .......................................................................................
16.20. ................................................................................

206
208
209
212
212

17. IBM POWER


17.1. Red Hat Enterprise Linux ..............................................
17.1.1. Signal 11 ................................................................................
17.2. ..................................................................
17.2.1. ................
17.3. ......................................................................
17.3.1. Red Hat Enterprise
Linux ..........................................................................................................
17.3.2. .........................................................
17.3.3. ..........................................................
17.3.4. IBM
POWER ..........................................................................................................
17.3.5. Python ...................................................................................
17.4. ...........................................................................
17.4.1. IPL *NWSSTG ...........................................
17.4.2. ....................................................
17.4.3. X Window (GUI) ...............................................
17.4.4. X
................................................................................................
17.4.5. ..........................................................
17.4.6. ..........................................................................
17.4.7. httpd Sendmail .........................................

213
213
213
214
214
214

III. IBM System z


18. System z
18.1. .................................................................................
18.2. System z ..........................................................................
18.2.1. .........................................................................
18.2.2. ....................................................................
18.2.3. ....................................................................
18.2.4. ....................................................................
18.3. X11 VNC .......................................................
18.3.1. X11 ...................................................
18.3.2. X11 .......................................................
18.3.3. VNC .................................................................
18.3.4. VNC .........................................
18.3.5. ...................................................................

214
215
218
218
218
219
219
219
220
221
221
221
221
223
225
225
226
227
227
228
228
228
229
229
230
230
230

19.
233
19.1. .................................................................... 233
19.1.1. FTP- HTTP- .................................................. 233
19.1.2. NFS- ............................................................... 234
19.2. ...................................................... 235
19.2.1. ..... 235
20.
239
20.1. z/VM .......................................................................................... 239
20.1.1. z/VM ............................... 240
vii


20.1.2. DASD ......................................................
20.1.3. SCSI-,
FCP ................................................................................................................
20.1.4. DVD SCSI, FCP ............................
20.2. ...................................................................
20.2.1. FTP ......................................................................
20.2.2. DVD HMC SE ..............................................................
20.2.3. DASD ......................................................
20.2.4. SCSI-,
FCP ................................................................................................................
20.2.5. DVD SCSI, FCP ............................

241
241
242
242
243
243
243
244
244

21. .
245
21.1. ...................................................................................................... 248

viii

22. .
22.1. ..........................................................................
22.2. ....................................................................................
22.2.1. .....................................................
22.3. .................................................................................................
22.4. ............................................................................................
22.4.1. DVD ................................................................................
22.4.2. ................................................................
22.4.3. ..........................................................
22.4.4. NFS ...................................................................
22.4.5. FTP HTTP ...................................................
22.5. ......................................................................................
22.6. ..........................................

249
249
249
251
251
252
252
253
254
254
255
256
256

23. . Anaconda
23.1. ...............................................................
23.2. ....................................................................................
23.3. .............................................
23.4. ...................................................................
23.5. ..........................................................................................
23.6. .....................................................................................
23.6.1. .......................................................
23.7. ...................................................................................
23.7.1. .......................................................
23.8. .............................................................................
23.9. root ...................................................................................
23.10. ..........................................................................
23.11. ...................................................................
23.12. ..........................................................
23.12.1. .................................
23.13. .......................................................................
23.14. ................................................................................
23.15. .................
23.15.1. .....................................................
23.15.2. .......................................................................
23.15.3. RAID ...........................................................
23.15.4. LVM .......................................................
23.15.5. .....................................................
23.16. ...................................................................
23.17. ...................................................................................

257
257
257
257
257
258
259
260
266
267
276
277
279
280
282
282
283
285
286
288
289
292
295
298
298
299

23.17.1. ....................................
23.17.2. ...................................
23.18. .......................................................................................
23.19. ................................................................................
23.19.1. z/VM .........................................................................
23.19.2. LPAR ................................................................................
23.19.3. ..........................................................................

301
302
305
305
305
306
306

24. IBM System z


24.1. Red Hat Enterprise Linux ..............................................
24.1.1. Signal 11 ................................................................................
24.2. ......................................................................
24.2.1. Red Hat Enterprise
Linux ..........................................................................................................
24.2.2. .........................................................
24.2.3. ............................................
24.2.4. Python ...................................................................................
24.3. ...........................................................................
24.3.1. XDMCP ................................
24.3.2. ..........................................................
24.3.3. ..........................................................................
24.3.4. httpd Sendmail .........................................

307
307
307
307

25. System z
25.1. DASD .........................................................................................
25.1.1. DASD ..........................................................
25.1.2. DASD ..........
25.1.3. DASD .....................................
25.2. LUN FCP ...................................................................................
25.2.1. LUN FCP .....................................................
25.2.2. LUN FCP ................................
25.3. ...................................................................
25.3.1. qeth ...............................................................
25.3.2. LCS ...............................................................
25.3.3. ...............................
25.3.4. .........

315
315
315
316
317
320
320
321
323
324
329
331
332

26.
26.1. .............................................................................
26.2. z/VM ..............................................................................
26.3. ......................................................................................
26.4. VNC X11 ..................................................................................
26.5. ...................................................................................
26.6. ....................................................................................
26.7. ........................................................................................
26.8. ..........................................................................................

335
335
336
336
340
340
341
341
342

27. IBM System z


27.1. IBM System z .............................................................................
27.2. IBM Redbooks System z ..........................................................................
27.3. - .........................................................................................

343
343
343
344

IV.

307
307
311
311
312
312
312
313
313

345

28.
347
28.1. ............................................. 347
ix


28.1.1. .......................................................................................
28.1.2. .......................................................................
28.1.3. Anaconda ........................................................................
28.1.4. ....................................................................
28.1.5. ....................................................
28.2. .....................................
28.2.1. VNC ................................
28.2.2. VNC
........................................................................................................................
28.2.3. Telnet ..............................
28.3. ................................
28.3.1. ..................................................
28.4. ..............................................................................
28.5. ........................................................
28.5.1.
.................................................................................................
28.6. .............................................................
28.6.1. .......................................................
28.6.2. ....................................................
28.6.3. ..........................................................................

347
348
348
348
349
349
350
350
351
351
351
352
353
354
355
355
355
355

29.
29.1. ....................................................................
29.2. GRUB ...................................................................
29.3. ........................................................................................

357
357
357
358

30.
30.1. .........................................................................
30.2. PXE- ................................................................................
30.3. PXE- .................................................................................
30.4. TFTPD ...........................................................................................................
30.4.1. tftp ..........................................................................
30.5. DHCP .............................................................................
30.6. ...................................................................
30.7. PXE- ..........................................................................

359
359
359
359
361
361
361
361
361

31. VNC
31.1. VNC ...................................................................................................
31.2. VNC Anaconda ..............................................................................
31.2.1. ....................................................................................
31.2.2. ...........................................................................
31.3. VNC ...........................................................................
31.3.1. ...............................................................................
31.3.2. VNC ................................................
31.3.3. ...........................................................
31.4. ..............................................................................

363
363
363
363
364
364
364
365
366
366

32. -
32.1. -? ......................................................................
32.2. -? ...............................................................
32.3. ............................................................................
32.4. ....................................................................................
32.4.1. ..............................................................
32.5. ..............................................................................................
32.6. , ..........................................................
32.6.1. ...............................................................................................

367
367
367
367
368
389
390
391
391

32.7. , ....................................................
32.7.1. .............................................................................................
32.8. .............................................................................
32.8.1. .........................................
32.8.2. ......................................................
32.9. ............................................................................
32.10. - ..........................................................................

392
393
394
394
395
395
396

33.
33.1. .....................................................................................
33.2. ............................................................................................
33.3. ...................................................................................
33.4. ...............................................................................
33.4.1. .............................................................................
33.5. .............................................................................................
33.6. ............................................................................................
33.7. .....................................................................
33.7.1. SELinux .............................................................................
33.8. .......................................................................................
33.9. ..............................................................................................
33.10. , ........................................................
33.11. , ...................................................
33.11.1. chroot ..............................................................................
33.11.2. ........................................................
33.12. ......................................................................................

401
401
402
403
404
405
409
410
410
411
411
412
413
414
415
415
415

V.

417

34. Firstboot
34.1. ............................................................................
34.2. .................................................................
34.2.1. ...................................................................................
34.2.2. RHN ............................................................................
34.2.3. .............................................................................
34.2.4. .............................................................................
34.2.5. ....................................................
34.3. .................................................................................
34.3.1. ................................................................
34.4. .................................................................................................
34.5. Kdump ...........................................................................................................

419
419
420
421
422
423
424
425
426
428
429
430

35.
35.1. ....................................................................................
35.1.1. ......................................................................
35.2. ...............................................................................
35.3. ........................................
35.3.1. ....................

433
433
433
435
436
437

36.
36.1. ..................................................................................
36.1.1. .............................................................
36.1.2. ....................................................
36.1.3. ........................................................
36.1.4. ............................................................
36.2. POWER ..................................................

441
441
441
442
444
445
445
xi


36.2.1. SCSI ...... 445
37.
447
37.1. ? .................................................................. 447
37.2. ......................................................................... 448
38. Red Hat Enterprise Linux x86
38.1. Red Hat Enterprise Linux ......
38.2. : Red Hat Enterprise Linux
................................................................................................................................
38.2.1. : Red Hat Enterprise Linux Microsoft Windows ..........
38.2.2. : Red Hat Enterprise Linux
Linux ..............................................................................................................
38.3. Red Hat Enterprise Linux Microsoft Windows MSDOS .......................................................................................................................

451
451
452
453
457
460

39. Red Hat Enterprise Linux IBM System z


463
39.1. z/VM LPAR ................... 463
VI.
A.
A.1. : ..................................................................
A.1.1. , .....................................................
A.1.2. : ............................
A.1.3. .............................................................
A.1.4. Red Hat Enterprise Linux .........................
A.1.5. ..............................................................
A.1.6. ..................................
A.1.7. ....................................................
A.1.8. ? ..............................................................

465
467
467
467
469
471
471
476
476
477
477

B. iSCSI
479
B.1. iSCSI anaconda ................................................................................. 479
B.2. iSCSI ................................................................. 480
C.
481
C.1. ? .............................. 481
C.2. dm-crypt/LUKS ........................... 481
C.2.1. LUKS ......................................................................................... 481
C.2.2.
? .................................................................................................... 482
C.2.3. ..................................................................... 482
C.3. Anaconda ............................. 482
C.3.1. ? .................. 483
C.3.2. ............................................................... 483
C.3.3. .............................. 483
C.4. ...... 483
C.4.1. ............................................................. 483
C.4.2. : .................... 483
C.4.3. dm-crypt/LUKS ......................................... 484
C.4.4.
................................................................................................. 484
C.4.5.
........................................................................... 485
C.4.6. /etc/crypttab ......................... 485
xii

C.4.7. /etc/fstab ...........................................................


C.5. ..................................................................
C.5.1.
.............................................
C.5.2.
........................................................................................................................
C.5.3. ..............................

486
486
486
487
487

D. LVM

489

E. GRUB
E.1. ..............................................................
E.2. GRUB ..............................................................................................................
E.2.1. GRUB x86 .........................................................
E.2.2. GRUB .............................................................................
E.3. GRUB .............................................................................................
E.4. GRUB .......................................................................................
E.4.1. ..................................................................................
E.4.2. ...........................................................
E.4.3. GRUB ..................................................
E.5. GRUB .........................................................................................
E.5.1. ............................................................
E.6. GRUB ..............................................................................................
E.7. GRUB ....................................................................
E.7.1. ...........................................................
E.7.2. ..........................................................
E.8. ..........................................
E.9. ...............................................................................
E.9.1. ...............................................................
E.9.2. ....................................................................
E.9.3. ................................................................

491
491
491
491
492
492
493
493
494
495
495
496
496
498
498
498
500
500
500
500
501

F. ,
F.1. .............................................................................................
F.2. ...........................................................................
F.2.1. BIOS .....................................................................................................
F.2.2. ..............................................................................................
F.2.3. .....................................................................................................
F.2.4. /sbin/init .......................................................................
F.2.5. ..........................................................................
F.3. .............................
F.4. SysV Init ..........................................................................
F.4.1. ..............................................................................
F.4.2. ................................................................
F.5. ........................................................................................

503
503
503
503
504
505
505
508
509
509
509
510
511

G. busybox

513

H.

523

I.

525

527

xiii

xiv


1.
.
1

PDF Liberation .
HTML-,
. . Red Hat Enterprise
Linux 5 Liberation .

1.1.
, .

, ,
, . :
my_next_bestselling_novel
, cat
my_next_bestselling_novel Enter
.
, ,
.
. :
Enter .
Ctrl+Alt+F2 .
Ctrl+Alt+F1 , X-Windows.
,
.
, , ,
. :
filesystem , file
, dir . .

, , ,
, , . :

.
,
.

https://fedorahosted.org/liberation-fonts/

xv


gedit,
.
, .
.
,
.
.
, ,
.

. ,
,
. :
SSH
ssh _@_. ,
example.com, john,
: ssh john@example.com.
mount -o remount _
. , /home
: mount -o remount /home.
, rpm q . -.
, ,
, , .
, .
:
Publican DocBook.

1.2.
.
, , :
books
books_tests

Desktop
Desktop1

documentation
downloads

drafts
images

mss
notes

photos
scripts

stuff
svgs

svn

:
package org.jboss.book.jca.ex1;
import javax.naming.InitialContext;
public class ExClient
{
public static void main(String args[])

xvi


throws Exception
{
InitialContext
Object
EchoHome
Echo

iniCtx
ref
home
echo

=
=
=
=

new InitialContext();
iniCtx.lookup("EchoBean");
(EchoHome) ref;
home.create();

System.out.println("Created Echo");
System.out.println("Echo.echo('Hello') = " + echo.echo("Hello"));
}
}

1.3.
, , .

. ,
, , , ,
.

, , .
, , ,
, .
.

, ,
.

2.
2.1. ?
, ,
Red Hat (http://access.redhat.com).
:
Red Hat;
Red Hat;
.
Red Hat ,
. https://

xvii


www.redhat.com/mailman/listinfo.
, .

2.2. !

, . Bugzilla http://
bugzilla.redhat.com/, Red Hat Enterprise Linux.
: doc-Installation_Guide.
,
. , ,
.

3.
Fedora ( 2009 Red Hat, Inc.),
Fedora http://docs.fedoraproject.org/installguide/.

xviii


Red Hat Enterprise Linux.
HTML PDF http://www.redhat.com/docs/.

, , ,
Red Hat Enterprise Linux
, . DVD
Red Hat Enterprise Linux, http://www.redhat.com/docs/ /usr/share/
doc/redhat-release-notes-6<>/ ( <> Server,
Client, Desktop).

1. ?
I, .

2.
:
I, x86, AMD64 Intel 64 , II, POWER IBM
III, IBM System z
Red Hat Enterprise Linux 6 32
64- Intel, AMD, IBM POWER IBM System z.
IV,
Red Hat Enterprise Linux,
, VNC,
.
V, ,
, .
Red Hat Enterprise
Linux, Red Hat Enterprise Linux.
VI, ,
,
Red Hat Enterprise Linux.

3.

.
,
.
Red Hat Enterprise Linux 6
64- x86 IBM System z POWER.
Red Hat Enterprise Linux 6 64-
x86 Red Hat Enterprise
xix


Linux 6 http://docs.redhat.com/.
PowerVM IBM System p IBM http://publib-b.boulder.ibm.com/
abstracts/sg247940.html. III, IBM System z
Red Hat Enterprise Linux 6 z/VM System z.

4.
Red Hat Enterprise
Linux, . Red Hat Enterprise Linux
.

5.
Red Hat Enterprise Linux https://access.redhat.com/knowledge/
docs/manuals/.
, ,
Red Hat Enterprise Linux,
.
HTML PDF http://www.redhat.com/docs/.

, , ,
Red Hat Enterprise Linux
, . DVD
Red Hat Enterprise Linux, http://www.redhat.com/docs/ /usr/share/
doc/redhat-release-notes-6<>/ ( <> Server,
Client, Desktop).

xx

Red Hat Enterprise Linux


Red Hat DVD Red Hat Enterprise
Linux 6 Red Hat.
(https://
access.redhat.com/downloads).
, Red Hat Enterprise Linux 6
.
1.

https://access.redhat.com/login.
.

2.

3.

Red Hat
Enterprise Linux.

4.

Red Hat Enterprise Linux .


, ,
. server,
Red Hat Enterprise Linux, desktop .

1. Red Hat Enterprise Linux


5.

Red Hat Enterprise Linux ISO- DVD ( 3


4 ).

1.1.
Red Hat Enterprise Linux.
.

. boot.iso, 150 .
Red Hat Enterprise Linux ,
CD, DVD USB-,
(. 2.3,
).
,
.
Red Hat Network :
DVD ( 2.1, DVD).
USB- (. 2.2, USB).
2

(. 2.3,
).
(. 4.1,
(x86), 12.1,
(POWER), 19.1, (IBM System z));
(. 4.2,
(x86), 12.2,
(POWER), 19.2, (IBM
System z));
PXE (Pre-boot eXecution Environment) PXE (. 30, ).



:
DVD;
USB-;
CD/DVD ;
USB- .

, .
2.1.

DVD

USB

CD/DVD

USB

x86 32-
BIOS


DVD x86


DVD x86

boot.iso

boot.iso

x86 32-
UEFI

AMD64 Intel 64
BIOS


DVD x86_64
( 64-)
x86 (32-)


DVD x86_64
( 64-)
x86 (32-)

boot.iso

boot.iso

AMD64 Intel 64
UEFI


DVD x86_64

efiboot.img
( DVD
x86_64)

POWER (
64-)


DVD ppc

boot.iso

System z


DVD s390

2.1. DVD
DVD- CD/DVD.

,
,
, , ,
.
,
, ,
.
, - Windows XP Windows Vista
, Windows
. , Windows,
5

2.
Windows 7,
CD/DVD, Nero Burning ROM Roxio Creator.
Linux Brasero K3b.
1.

ISO- DVD Red Hat Enterprise Linux 6 ( 1,


Red Hat Enterprise Linux).

2.

, DVD-.
. -.
, .

3.

. ,
Ctrl
, DVD
CD DVD. ,
. ,
, (Windows).

4.

. , , Brasero
.
.

5.

6.


. , ISO GNOME Linux,
.

2.2. USB-
USB-
USB-
.

Red Hat Enterprise Linux c USB- 32- x86,


AMD64 Intel 64 BIOS USB.
POWER, AMD64 Intel 64 UEFI, Red
Hat Enterprise Linux USB- (. 2.3,
).
Red Hat Enterprise Linux,
Linux UNIX.


USB- . ,
.


1.

USB- .

2.

.
, /dev/disk/by-label
findfs:
su -c 'findfs LABEL="MyLabel"'

USB- ,
dmesg. /dev/sdc.
3.

:
dd if=/.iso of=

DVD USB-.
:
dd if=~/Download/RHEL6-Server-i386-DVD.iso of=/dev/sdc

2.3.
CD, DVD USB-
, ,
.
:
Red Hat Enterprise Linux ;
Red Hat Enterprise Linux ;
(. 32.8.1,
);
, anaconda
DVD.
32 x86, AMD64, Intel 64 POWER.
AMD64 Intel 64 UEFI (. 2.3.1,
UEFI).
32 x86, AMD64 Intel 64 BIOS, POWER:
1.

boot.iso (. 1, Red Hat Enterprise Linux).

2.

boot.iso CD/DVD- (. 2.1,


DVD) USB- dd (. 2.2,
USB-). 200 ,
USB- .

2.

2.3.1. UEFI
Red Hat CD/DVD
c UEFI. , Red Hat Enterprise Linux 6
USB-, , linux
askmethod DVD (.
3.5, ).
USB- UEFI efidisk.img
images/ DVD Red Hat Enterprise Linux 6.
1.

DVD Red Hat Enterprise Linux 6 (. 1, Red


Hat Enterprise Linux).

2.

root:
su -

3.

:
mkdir /mnt/dvdiso

4.

:
mount DVD.iso /mnt/dvdiso -o loop

DVD.iso , RHEL6-Server-x86_64-DVD.iso.
5.

efidisk.img USB-:
dd if=/mnt/dvdiso/images/efidisk.img of=/dev/

:
dd if=/mnt/dvdiso/images/efidisk.img of=/dev/sdc

6.

:
umount /mnt/dvdiso

I. x86, AMD64 Intel


64
Red Hat Enterprise Linux 32 64- Intel AMD
Red Hat Enterprise Linux
. IV,
.


x86
3.1. ?
37, ,
.

3.2.
,
. Red Hat Enterprise Linux 6
, .
, ,
100%.
:

http://hardware.redhat.com/hcl/

3.3. RAID
Intel BIOS RAID
Intel BIOS RAID Red Hat Enterprise Linux 6
mdraid dmraid. ,
Intel ISW mdraid, dmraid. ,
mdraid dmraid.
Intel BIOS RAID.
/etc/fstab, /etc/crypttab ,
, Red Hat Enterprise Linux 6.
,
UUID. UUID
blkid.

3.3.1. RAID
RAID (Redundant Array of Independent Disks)
. ,
RAID. Red Hat Enterprise Linux
RAID .
Red Hat Enterprise Linux RAID, .

11

3. x86

3.3.2. RAID
RAID Red Hat Enterprise Linux.
RAID- ,
(. 9.14,
).

3.3.3. FireWire USB


FireWire USB
Red Hat Enterprise Linux. ,
.


FireWire USB .
.

3.4. ?
()
Red Hat Enterprise Linux . Red Hat Enterprise Linux
.
,
A, .
, Red Hat Enterprise Linux,
, (Windows, OS/2
Linux). x86, AMD64 Intel 64 Red Hat Enterprise Linux
(/ swap).

1


Red Hat Enterprise Linux
, , ,
Red Hat Enterprise Linux.
9.14.5,
.
, , ,
Red Hat Enterprise Linux, A,
.

3.5.
? :
DVD
DVD Red Hat Enterprise Linux,
DVD-ROM, (. 8.3.1, DVD).
12


,
, linux askmethod linux
repo=cdrom::/), CD/DVD
(. 8.3, ).

ISO- Red Hat Enterprise Linux
. CD ( linux askmethod
linux repo=hd::/)
(. 8.3, ). 8.3.2,
.
NFS
NFS- ISO-
Red Hat Enterprise Linux. CD (
linux askmethod linux repo=nfs: ::/)
NFS (. 8.3,
). 8.3.4, NFS
. , NFS-
.
URL
HTTP FTP.
CD ( linux askmethod, linux
repo=ftp://:@/ linux repo=http:///)
URL (. 8.3, ).
8.3.5, FTP HTTP HTTP FTP.
DVD
askmethod, DVD (.
8.2, ).

DVD
DVD Red Hat Enterprise Linux
,
.

3.6.
Red Hat Enterprise Linux .
DVD- Red Hat Enterprise Linux,
Red Hat Enterprise Linux 6,
DVD DVD. 2,
DVD-.
CD/DVD BIOS (. 7.1.1,
x86, AMD64 Intel 64).
Red Hat Enterprise Linux DVD,
, CD
USB-. ,
13

3. x86
. 2.3,
.
, PXE (Preboot Execution
environment). 30, .
.

14


4.1.

, DVD- ,
.

CD/DVD- USB-.
(NFS, FTP, HTTP) Red Hat Enterprise Linux
.
.
NFS, FTP HTTP, ,
,
DVD.

Red Hat Enterprise Linux


. DVD, ,
NFS- ISO.
(
DVD-). ,
boot:

linux mediacheck

,
FTP, HTTP NFS. , /var/www/inst/rhel6
http://network.server.com/inst/rhel6.
,
(, /var/isos), /. //
FTP, NFS HTTP. , ,
HTTP /var/www/html/rhel6.

ISO, DVD.
DVD,
dd if=/dev/dvd of=//RHEL6.iso

dvd DVD.

15

4.
DVD Linux,
, , (.
4.1.1, FTP- HTTP-, 4.1.2, NFS).

4.1.1. FTP- HTTP-


DVD ,
FTP HTTP.
: ,
, .

4.1.2. NFS-
,
install.img, product.img ,
, .
1.

. Linux
mv //RHEL6.iso ///

2.

SHA256 .
. , Linux :
$ sha256sum .iso

64 .
,
Red Hat Network (. 1, Red Hat Enterprise Linux).
3.

images/ . :

mount -t iso9660 /path/to/RHEL6.iso /mnt/point -o loop,ro


cp -pr /mnt/point/images /path/images/
umount /mnt/point

4.

, images/ install.img,
. images/ product.img,
, (.
9.17, ).

5.

/etc/exports ,
NFS.
:
// ip.. (ro)

:
// * (ro)

16


6.

NFS ( Red Hat Enterprise Linux /sbin/service


nfs start). NFS , (/sbin/service
nfs reload).

7.

NFS-,
Red Hat Enterprise Linux. NFS
NFS.

Red Hat Enterprise Linux


. DVD, ,
NFS- ISO.
(
DVD-). ,
boot:

linux mediacheck

4.2.

ext2, ext3, ext4
FAT. ,
.
Windows
, Linux fdisk.

LVM
ISO- LVM.

Red Hat Enterprise Linux ,


DVD .
:
ISO DVD;
install.img ;
product.img .
(.
8.3, ).
CD/DVD- USB-.

17

4.
:
1, Red Hat Enterprise Linux
DVD Red Hat Enterprise Linux. DVD-,
:

1.

dd if=/dev/dvd of=//RHEL6.iso

dvd DVD.
2.

.
ISO ,
Red Hat Enterprise Linux, ,
USB.

3.

SHA256 .
. , Linux :
$ sha256sum .iso

64 .
,
Red Hat Network (. 1, Red Hat Enterprise Linux).
4.

images/ . :

mount -t iso9660 /path/to/RHEL6.iso /mnt/point -o loop,ro


cp -pr /mnt/point/images /path/images/
umount /mnt/point

5.

, images/ install.img,
. images/ product.img,
, (.
9.17, ).

Red Hat Enterprise Linux


. DVD, ,
NFS- ISO.
(
DVD-). ,
boot:

linux mediacheck

18


: http://
hardware.redhat.com/hcl/.

. ,
(. 3.2, ),
.
,
.
, , :
, , . :
Seagate ST3320613AS 320 SATA0, Western Digital WD7500AAKS 750 SATA1.
.
Red Hat Enterprise Linux
, :
. : /boot sda1, / sda2, /home
sdb1. .
:
, .
iSCSI :
. : Netgear GA311.
.
IP, DHCP BOOTP

IP-
IP- (DNS)
- ,
.
:
FTP, HTTP NFS- (. 8.3.5,
FTP HTTP, 8.3.4, NFS).
iSCSI, :
iSCSI.
CHAP, , (. 9.5.1.1,
).
:

19

5.
, DHCP-,
.

20


Intel AMD
Red Hat Enterprise Linux .
, , ,
. Red Hat
. ISO- RPM.
. ,
DVD
.
(. 35.1.1, ).
. ,
,
.
.
1. , :
a. ;
b. USB.
2.
:
a. CD;
b. DVD.
2.1, DVD
.
3. RAM- PXE-.
,
.
, Red Hat
,
, .
, .
, .

6.1.

:

.
,
. ,
RAM- (. 6.2.3,
RAM-).
21

6. Intel AMD

,
,
. ,
.
, .
.
RAM-.

6.2.

Red Hat
ISO-. ,
, ,
RAM-:


USB

CD
DVD
RAM-
PXE

( 6.2.1, , 6.2.2,
, 6.2.3,
RAM-). USB-.

6.2.1.

6.2.1.1.

( USB-).
,
(.iso). dd.iso:

22

6.1. USB-

, . ,
.
6.3.2,
6.3.3,
,
.
OEMDRV,
(. 6.3.1,
).

6.2.2.
(CD DVD) .

23

6. Intel AMD

6.2.2.1. CD/DVD-
, GNOME
CD/DVD
,
. ,
.
, .
, .
,
, , .

1.

, Red Hat
.

6.2. *.iso

24


2.

.
:

6.3. CD/DVD Creator


3.

. ,
.

CD/DVD- , ,
rhdd3 rpms:

25

6. Intel AMD

6.4. CD/DVD-
.iso, ,
. , .
6.3.2,
6.3.3,
,
.

6.2.3. RAM-

, ,
.

Red Hat Enterprise Linux


RAM- . RAM-
, . ,
, PXE-.
30, PXE-.
PXE- :
1.

PXE-.
Red Hat. .iso.

2.

/tmp/initrd_update.

3.

dd.img.

26


4.

/tmp/initrd_update
find . | cpio --quiet -c -o | gzip -9 >/tmp/initrd_update.img

5.

/tmp/initrd_update.img ,
. /tftpboot/pxelinux/. , /tftpboot/
pxelinux/r6/ Red Hat Enterprise Linux 6 Client.

6.

/tftpboot/pxelinux/pxelinux.cfg/default
RAM-:
label -dd
kernel /vmlinuz
append initrd=/initrd.img,/dd.img

.
6.3.4, PXE-
RAM- .
6.1. RAM-

PXE- driver_update.iso. PXE-
/tftpboot/pxelinux/r6.
, , :
$
$
$
$

cp driver_update.iso /tmp/initrd_update/dd.img
cd /tmp/initrd_update
find . | cpio --quiet -c -o | gzip -9 >/tmp/initrd_update.img
cp /tmp/initrd_update.img /tftpboot/pxelinux/r6c/dd.img

/tftpboot/pxelinux/pxelinux.cfg/default :
label r6c-dd
kernel r6c/vmlinuz
append initrd=r6c/initrd.img,r6c/dd.img

6.3.
:
;
;
;
PXE- .

6.3.1.

, ,
OEMDRV.
27

6. Intel AMD
(. 6.2.1.1,
).

6.3.2.

1.

.
(,
),
:

6.5.
(. 6.4,
).

2.

6.3.3.


, .

28

PXE-
1.

linux dd.
.

6.6.
2.

.
.
(, DVD), .
, ,
(. 6.4,
).

6.3.4. PXE-
1.

BIOS .
.
.

2.

PXE . ,
/tftpboot/pxelinux/pxelinux.cfg/default PXE
r6c-dd, r6c-dd Enter.

6.2.3, RAM- 30,



PXE.
.

6.4.

,
. ,
, .

29

6. Intel AMD

6.7.
,
.
CD, DVD USB, .
(
),
.

30

6.8.
:

6.9. ISO-
,
USB-.
CD DVD, .
31

6. Intel AMD
( ),
,
. . , ,

.

32


UEFI 32- x86
Red Hat Enterprise Linux 6 UEFI 32- x86.

UEFI AMD64 Intel 64


, UEFI BIOS
,
. ,
BIOS UEFI.
Red Hat Enterprise Linux 6 2.2 UEFI.
UEFI 2.3, Red Hat Enterprise
Linux 6 , . http://
www.uefi.org/specs/agreement/ UEFI.


DVD Red Hat Enterprise Linux.
1.

FireWire USB-, (.
3.3.3, FireWire USB).

2.

3.

4.

. .

5.


.
.
,
.
, ,
BIOS.
BIOS x86, AMD64 Intel 64,
, . , ,
BIOS.
BIOS .
C, A A, ( ,
[C] [A] ). , DVD
, C A ( ) .
DVD, ,
.
33

7.
BIOS.
.

:
, Ctrl +Alt+Del
.
.
.

7.1.
UEFI 32- x86
Red Hat Enterprise Linux 6 UEFI 32- x86.

UEFI AMD64 Intel 64


, UEFI BIOS
,
. ,
BIOS UEFI.
Red Hat Enterprise Linux 6 2.2 UEFI.
UEFI 2.3, Red Hat Enterprise
Linux 6 , . http://
www.uefi.org/specs/agreement/ UEFI.

, . 3,
x86 ,
. DVD Red
Hat Enterprise Linux .


, ,
. 6,
Intel AMD .

7.1.1. x86, AMD64


Intel 64
( ,
):
34Red Hat Enterprise Linux DVD, DVD
DVD Red Hat Enterprise Linux.

x86, AMD64 Intel 64


.
CD/DVD.
USB-, USB-.
PXE- , . 30,
.
2.3,
CD USB-.
.

.
.
,
.
, ,
BIOS.
BIOS x86, AMD64 Intel 64,
, . , ,
BIOS.
BIOS .
C, A A, ( ,
[C] [A] ). , DVD
, C A ( ) .
DVD, ,
.
BIOS.
.
boot:,
. , ,
.
, .
:

boot:. ,
.
,
,
, .
Enter . ,
.
, .
(. 28,
).
35

7.

7.1.2.
DVD ,
, .
Red Hat Enterprise Linux.
x86, AMD64 Intel 64,
.

28, ,
.

linux text

linux repo= . :

linux repo=cdrom:

linux repo=ftp://:@URL

linux repo=http://URL

linux repo=hd:

linux repo=nfs:::/

linux repo=nfsiso:::/

cdrom CD/DVD-ROM, ftp FTP, http


HTTP, hd ISO- , nfs , NFS,
nfsiso ISO-, NFS.
ISO SHA256, ,

linux mediacheck

DVD ISO-
OK. DVD Red Hat
36


Enterprise Linux ( ).
Red Hat Enterprise Linux,
ISO-. DVD, ISO-,
, .
:

linux console=<>

linux text console=<>

: linux text console=ttyS0.


,
UTF-8. UNIX Linux Kermit UTF-8.
Windows- Kermit '95 . ,
UTF-8, ,
.
utf8. :

linux console=ttyS0 utf8

7.1.2.1.
. , ,
Anaconda USB-, :

linux updates

linux text updates

.
rhupdates/
.
Enter.
, .
(. 9.16,
x86, AMD64 Intel 64).
28, .

37

7.

7.2.
, .
60 , .
, Enter, ,
Enter.
Tab.

7.1.
28, .
:

, . Red Hat Enterprise Linux
.

Red Hat Enterprise Linux ,
.
,
.

, .
Red Hat Enterprise Linux ,
.
, .
38



.
,
.

7.3.
Red Hat Enterprise Linux
NFS, FTP HTTP.
,
DVD.

.
7.1.

DVD

DVD,

USB-

USB-, DVD,

CD , USB

3.5,
.

7.4. PXE

PXE , PXE,
(. 30, ).
. BIOS,
Network Boot Boot Services.
Red Hat Enterprise Linux
.
PXE-:
1.

, .
.

2.

3.

. , .

, , BIOS
. ,
BIOS PXE.
.

39

7.

PXE-
C eth0
. ,
, , PXE. ,
pxelinux.cfg/* :
IPAPPEND 2
APPEND ksdevice=bootif

,
BIOS PXE. :
ksdevice=link

,
.

40

8.1.

Red Hat Enterprise Linux .
Red Hat Enterprise Linux ,
VNC (. 31, VNC). anaconda ,
,
VNC, . ,
.
,
- , xdriver=vesa (.
28, ).

, anaconda ,
(), (.
8.1, URL 8.2,
).

, ,
. ,
. , ,
.

41

8.

8.1. URL

8.2.
:
.
, .
, , ,
.
- .
* () ( ).
, .
42


, .
,
.
, .
, . ,
, ;

. #,
.
;
, .
.
.
, Tab Enter.
, .
,
.
,
. 8.1, URL
OK, 8.2,
.

8.1.1.
.
, , .
Tab Alt-Tab .
, .
, (, Tab)
Enter. ,
Enter. ,
. .
F12, .
OK.

, -
, .

8.2.
(. 8.3,
), Tab OK Enter, .
.
.

.
43

8.
(. 9.17.2,
).

8.3.
, .

8.3.

, (.
8.4, ), Tab OK
Enter.

8.4.

8.3.1. DVD
Red Hat Enterprise Linux DVD, .
, DVD.
44


DVD,
IDE ( ATAPI).


.
(. 9.15, ).

SCSI DVD , SCSI.


.
; SCSI- .
DVD , .
,
. - ,
- .
(. 9.3, ).

8.3.2.
(
).
, Red Hat Enterprise Linux.
repo=hd.

8.5.
ISO- . IDE, SATA, SCSI, USB
/dev/sd. , /dev/sda,
, /dev/sda1.
, .
:
45

8.
8.1. ISO

VFAT

D:\

D:\Downloads\RHEL6

/Downloads/RHEL6

ext2, ext3, ext4

/home

/home/user1/RHEL6

/user1/RHEL6

ISO ( ) , /.
, .
, c /home/, /home/
new/, /new/.

/
/ .

OK (. 9, Anaconda).

8.3.3.
. ,
askmethod repo= Red Hat
Enterprise Linux FTP, HTTP, NFS.
.
TCP/IP.
IP . IP-
DHCP .
DHCP . DHCP
, DSL-, ,
.
DHCP, IP
(DHCP).
IP-, , Enter.
IPv4 IPv6.

46

NFS

8.6. TCP/IP
.
8.3.4, NFS NFS.
8.3.5, FTP HTTP
FTP- HTTP- .

8.3.4. NFS
NFS , NFS.
repo=nfs.
IP NFS-. ,
eastcoast example.com, eastcoast.example.com
NFS-.
. (. 4.1,
), ////.
NFS.
Red Hat Enterprise Linux
mount nfs.
NFS- Red Hat Enterprise Linux,
, . ,
.
, Red Hat
Enterprise Linux.

47

8.

8.7. NFS
NFS- ISO- DVD Red Hat Enterprise Linux,
.
9, Anaconda .

8.3.5. FTP HTTP

http:// ftp://.

URL ,
HTTP FTP, Red Hat Enterprise Linux.
repo=ftp repo=http.
IP- FTP/HTTP, ,
, /images . :
/mirrors/redhat/rhel-6/Server/i386/
- , , , .
,
.
,
:
{ftp|http}://<>:<>@<>[:<>]/<>/
:
http://install:rhel6pw@name.example.com/mirrors/redhat/rhel-6/Server/i386/

48

8.8. URL
9, Anaconda .

8.4.
.
, .
, .
.
DVD .

49

50

Anaconda

anaconda.

9.1.


.

anaconda .
:
;
.
,
. , ,
.
:
(LVM, RAID, FCoE, zFCP, iSCSI);
;
;
;
Firstboot.
,
(. 35.3,
).

9.2.
(GUI, Graphical User Interface)
, , , , ,
.
. ,
Tab ,
, + - , Enter
. Alt+X (X ,
) .

51

9. Anaconda

x86, AMD64 Intel 64


, .
,
boot:

linux text

7.2, Red Hat Enterprise Linux,


8.1, .
,
Red Hat Enterprise Linux,
LVM.
, ,
,
.

9.2.1.
Anaconda .
Shift+Print Screen Anaconda
/root/anaconda-screenshots.
- autostep --autoscreenshot
(. 32.3, ).

9.2.2.
Red Hat Enterprise Linux ,
.
, .
,
.
,
.
.
Red Hat Enterprise Linux ,
. 9.1, ,
,
.
(
6 ) ,
.
9.1. ,

Ctrl+Alt+F1

52

Ctrl+Alt+F2

Ctrl+Alt+F3


(
)

Ctrl+Alt+F4

Ctrl+Alt+F5

9.3.
.

9.4.
(, )
(. ).
, .

53

9. Anaconda

9.1.
Red Hat Enterprise Linux .
, latin1,
. , ,
', E.
(, Alt-Gr) E.
.

,
.
system-config-keyboard .
root,
root.

9.5.
Red Hat Enterprise Linux .
.

54

9.2.

Red Hat Enterprise Linux:
.

Red Hat Enterprise
Linux:
(SAN, Storage Area Networks);
(DASD, Direct Access Storage Devices);
RAID-;
.
,
iSCSI (Internet Small Computer System Interface) FCoE (Fiber Channel over Ethernet).
, anaconda
. 9.6,
.

9.5.1.
anaconda .

55

9. Anaconda

9.3. .

9.4. . .

56

9.5. . SAN.
:

, (, ).
RAID
, RAID-.

,
SCSI- Fibre Channel.
SAN
.
iSCSI FCoE , (.
9.5.1.1, ).
,
WWID (World Wide Identifier), , LUN (Logical
Unit Number).

9.6.
, (,
, LUN, WWID) .
57

9. Anaconda
anaconda
, .
,
. ,
WWID, , , , .

9.7.
. ,
, ,
.
Red Hat Enterprise Linux
.
, .
. ,
,
, /etc/fstab.


Anaconda , .
Red Hat Enterprise Linux
.

, . 9.10,
.

9.5.1.1.
iSCSI (. B, iSCSI) FCoE (Fibre
Channel over Ethernet) SAN (Storage Area Network).

9.8.

58

9.5.1.1.1.
,
.

9.9.
DHCP ,
.
IP (DHCP). IPv4,
/ , .
OK, .

9.5.1.1.2. iSCSI
ISCSI , ISCSI
. IP ISCSI
. ISCSI CHAP
(Challenge Handshake Authentication Protocol), CHAP.
( ) CHAP
. , .

59

9. Anaconda

9.10. ISCSI
, ,
. ISCSI
.

9.5.1.1.3. FCoE
FCoE SAN FCoE SAN .
, FCoE,
.

9.11. FCoE
DCB (Data Center Bridging) Ethernet
Ethernet- .
DCB , DCB.
60

9.6.

., _.
DHCP (Dynamic Host Configuration Protocol)
.
.


. ,
.

9.12.
Red Hat Enterprise Linux ,
. .


.
.
-.

61

9. Anaconda

9.6.1.

Red Hat Enterprise Linux 6
, .
,
Red Hat Enterprise Linux DVD .


.

,
.
system-config-network .
root,
root.
. Red Hat Enterprise Linux 6,
NetworkManager.

, .
NetworkManager , DSL, ,
VNP-. NetworkManager
.
.
.

62

9.13.
, ,
, , , ,
.
, .
.

9.6.1.1.
.
.
.
.

9.6.1.2.
MAC-
( ) .

63

9. Anaconda

9.14.

9.6.1.3. 802.1x
802.1x
. 802.1X
. :

:
TLS (Transport Layer Security);
TLS (TTLS EAP-TTLS);

64


EAP (PEAP) (Protected Extensible Authentication Protocol).

.

X.509, DER (Distinguished
Encoding Rules) PEM (Privacy Enhanced Mail).
CA
CA, DER (Distinguished
Encoding Rules) PEM (Privacy Enhanced Mail).

, DER (Distinguished
Encoding Rules), PEM (Privacy Enhanced Mail) PKCS#12 (Personal Information Exchange
Syntax Standard).

, . ,
.

65

9. Anaconda

9.15. 802.1x

9.6.1.4. IPv4
IPv4 .
, DHCP.
(DHCP)
IPv4 DHCP.

66


(DHCP)
IPv4, DHCP,
.

IPv4 .
Link-Local
169.254/16.

.
10.42.x.1/24. DHCP DNS
, NAT (Network Address Translation)
.

IPv4 .
, ,
IP- , .
. DNS ,
, ,
.
ID DHCP.
.
IPv4 ,
IPv6. , IPv4 ,
IPv6 .

67

9. Anaconda

9.16. IPv4

9.6.1.4.1. IPv4
Red Hat Enterprise Linux IP-
. , .

68

9.17. IPv4
, IP-, ,
.
,
.
,
.

9.6.1.5. IPv6
IPv6 IPv6 .
, DHCP.

IPv6 .

IPv6 DHCP.
,
IPv6, DHCP, DNS
.

IPv6 .
Link-Local
fe80::/10.
, ,
IP- , .
. DNS ,
69

9. Anaconda
, ,
.
ID DHCP.
.
IPv6 ,
IPv4. , IPv6 ,
IPv4 .

9.18. IPv6

9.6.1.5.1. IPv6
Red Hat Enterprise Linux IP- .
, .
70

9.19. IPv6
, IP-, ,
.
,
.

9.7.
, .
.
, NTP .
:
, , ;
X .
.

71

9. Anaconda

9.20.
Red Hat Enterprise Linux,
UTC. Red Hat Enterprise Linux
UTC. UNIX.
.

Windows
UTC, Microsoft
Windows. , Microsoft
BIOS , , UTC,
Red Hat Enterprise Linux.

,
.
system-config-date .
root,
root.
, timeconfig.

9.8. root
root
. root Microsoft Windows
72

root
, .
root .

root ( )
; root
.

9.21. root
root ,
. - ,
su root.
- .

root, su - Enter.
root Enter.

root .
root.
1

root Red Hat Enterprise Linux.


root . root

73

9. Anaconda
root 6 ,
. ; ,
.
, ,
. , , qwerty, password, root, 123456
.
(: Aard387vark
420BMttNT). , . ,
, .

, ,
.

root ,
root.
system-config-users.
root, root.
root.
. . ,
.

9.9.
(. 9.5,
), anaconda ,
,
.
, .

.

, ,
.

74

9.22.
: ,
, ,
.
, ,
. ,
.

.
, ,
,
.


,
Red Hat Enterprise Linux,
.
anaconda .
, ,
,
(. 9.12, ).

, .
75

9. Anaconda

9.10.
,
. ,
.
, .
, , ,

.

9.23.
, RAID
.

clearpart --initlabel (. 32, -).



: ,
.

76

9.11.

Anaconda Red Hat Enterprise Linux 6,
Red Hat Red
Hat Enterprise Linux ( , Red Hat
Enterprise Linux 4 Red Hat Enterprise Linux 5).
,
. , Red Hat
.

Red Hat Enterprise Linux .


,
. .
, ,
. ,
.
,
.

9.11.1.
Red Hat Enterprise Linux,
. ,
.

9.24.
77

9. Anaconda


, Red Hat Enterprise
Linux, . , .

9.11.2.

Red Hat /home


(. 9.12, ).

, ,
, Red Hat Enterprise Linux,
. , :
rpm -qa --qf '%{} %{}-%{} %{} ' > ~/old-pkglist.txt

,
.
:
su -c 'tar czf /tmp/etc-`date +%F`.tar.gz /etc'
su -c 'mv /tmp/etc-*.tar.gz /home'

, /home,
Apache, FTP, SQL .
, .


, /
home. ,
(D/DVD ).

35.2,
.

9.11.3.
Red Hat Enterprise Linux
, . E, GRUB
.
78

9.25.
Linux,
, Red Hat Enterprise Linux.
.
Red Hat Enterprise Linux.
GRUB Red Hat Enterprise Linux 32 64-
x86. Red Hat Enterprise Linux ,
BootMagic, System Commander Microsoft Windows.
.
.
, ,
,
.
GRUB,
.
, . 9.16,
x86, AMD64 Intel 64,
. ,
.

79

9. Anaconda

9.12.

. ,
,
. ,
.



, . ,
Linux,
. VNC.
, ,
LVM .

: RAID
RAID-, , BIOS
. /boot/
RAID, . RAID .
/boot/ RAID-.
,
/boot/.

,
. ,
. A,
.

80

9.26.

.
.
,
, .
.
:

(
, Windows VFAT NTFS).


. , ,
Red Hat Enterprise Linux, , .
, Red Hat
Enterprise Linux .

Linux
Linux,
Linux. ( VFAT FAT32) .

81

9. Anaconda

,
Red Hat Enterprise Linux,
.

,
, . ,
.
, , ,
.


.
, Red Hat
Enterprise Linux (. 3.4, ?).

, (. 9.14,
).
.
/boot (.
C, ).
, ,
. ,
. , .

:
Red Hat Enterprise Linux
.
,
.

9.13.
, .
LUKS (Linux Unified Key Setup).
C, .

82

9.27.
, , .
.



. .
- ,
(. C.3.2, , C.3.3,
).

9.14.

9.17, , ,
.
,
( ) .
, ,
Red Hat Enterprise Linux.
, Red Hat Enterprise Linux. , ,
.
, , A,
9.14.5, .
.
Anaconda .

83

9. Anaconda

9.28. x86, AMD64 Intel 64


. ,
RAID, .
(, /dev/hda LogVol00),
( ).

. ,
.
, RAID,
(. 9.9, ).
. ,
.
:

, .
(M)
, .
./RAID/
( , ),
RAID , .

.
(, ext4). ,
(LVM) RAID.
84

, .
, , , .

:

, RAID

, RAID

, RAID

9.14.1.
,
RAID.
.

9.29.
, RAID, LVM
:
85

9. Anaconda

9.14.2,
.
(. A,
) .
RAID
9.14.3, RAID .
RAID ,
RAID.
RAID.
RAID RAID RAID.
RAID.
RAID RAID .
RAID.
LVM
9.14.4, LVM .
LVM .
LVM .
.
LVM .
.

9.14.2.
. (.
9.30, ).

. A,
.

86

9.30.
: . ,
/, /boot /boot ..
. ,
.
: (. 9.14.2.1,
).
: . ,
. , .
, anaconda
.
(M): .
200 ; , 200 .
: ,
,
.
(),
.
.
87

9. Anaconda
: ,
. ,
(. A.1.3, ).
: .
.
. C,
.
OK: , O .
: .

9.14.2.1.
Red Hat Enterprise Linux .
.

,
RAID-
LVM.
swap .
(swap), .
Red Hat
Enterprise Linux.
RAID RAID- RAID. RAID
RAID Red Hat Enterprise Linux.
(LVM) (LVM),
LVM. LVM
. LVM
Red Hat Enterprise Linux.

ext4 ext3 ,
,
, ,
. ext4
, .
ext3 ext2
.
2
, fsck .
ext2 Unix ( , ,
..) 255 .
xfs ,
16 (~16
), 8 (~8 )
. XFS ,

88

RAID
,
.
vfat Linux, FAT
Microsoft Windows.
Btrfs ,
, ext2, ext3 ext4.
. Btrfs
,
,
.
Btrfs ,
. Btrfs,
btrfs (. 28, ).

Btrfs
Red Hat Enterprise Linux 6 Btrfs.
Btrfs , , ,
.

9.14.3. RAID
RAID- (Redundant
Arrays of Independent Disks)
,
. Red Hat Enterprise Linux
RAID-.
RAID-, RAID.
, RAID RAID-.
RAID
, RAID-.
, .
(. 9.14.2,
). ,
RAID.

89

9. Anaconda

9.31. RAID-
RAID
RAID
RAID. ,
RAID.

90

RAID

9.32. RAID
.
Anaconda RAID,
, md0 md15.
,
RAID.
RAID RAID
:
RAID 0 . RAID 0


. , RAID 0 . ,
. RAID 0
RAID.
RAID 1
.
. RAID 1 RAID.
RAID 4 ,
.
- .
,
.
RAID 4 RAID.
RAID 5
. RAID 5
RAID 4, RAID 5
. RAID 5
RAID.
RAID 6 RAID 5,
. RAID 5
RAID.
91

9. Anaconda
RAID 10 ( RAID RAID)
. , , RAID 10 RAID
, .
RAID 0.
RAID 10 RAID.
RAID
RAID- .
.

9.33. RAID

9.14.4. LVM
LVM
LVM .
LVM, Alt+F2, ,
lvm. Alt+F1 .

LVM (Logical Volume Management)


, LUN.
,
. , ,
92

LVM
. ,
LVM ,
.
LVM Red Hat
Enterprise Linux. , LVM
.
LVM
, LVM .
, LVM.
(. 9.14.2,
). ,
(LVM).

9.34. LVM
LVM
, LVM
.

93

9. Anaconda

9.35. LVM
,
, ,
, .
,
. , , ,
5
8 .
, 5
8 . , , 4
, .

, LVM. ,
.
, .

94

9.36.

9.14.5.
9.14.5.1. x86, AMD64 Intel 64
-, x86, AMD64
Intel 64 :
swap
/boot
/
(swap) ( 256 )
. ,
.

.
,
. ,
,
.
9.2.

4 16

16 64

64 256

16

256 512

32

95

9. Anaconda
,
.
, .
/boot/ (250 )
/boot/ ( Red Hat
Enterprise Linux) . 250
.


GRUB Red Hat Enterprise Linux 6 ext2, ext3, ext4
(). Btrfs, XFS, VFAT
/boot.

1024 ( ), ,
, /boot/, ,
/.

RAID-, , BIOS
. /boot/ ,
RAID-, , .

(3.0-5.0 )
/. ( /
boot) .
3.0 ,
5.0 , .

/root
/ , . /root
, .

;
. , /home
, . 9.14.5.1.1,
.
96


(/)
. 9.14,
.
,
.
. , /foo 500 ,
/foo, /
500 .
9.3.

250

/usr

250 ,

/tmp

50

/var

384

/home

100

/boot

250


.
. D,
LVM
.

, ,
.

9.14.5.1.1.
, Linux
. ,
.
,
/home.
Red Hat Enterprise Linux /home .
, ,
. /
home.
10 /boot.
250 ,
.

97

9. Anaconda


GRUB Red Hat Enterprise Linux 6 ext2, ext3, ext4
(). Btrfs, XFS, VFAT
/boot.

/var , - Apache.
. , ,
/var, ,
.

PackageKit /var/cache/yum/.
/var/, ,
( 3 ) .

/usr Red Hat Enterprise Linux.


4 .
, Red Hat Enterprise Linux
, .

/usr
/usr /
, (, SCSI)
.

, LVM .

.

Red Hat Enterprise Linux. , MySQL
/var/lib/mysql, ,
.

80 1 . , 10
.

98

9.1.
9.4.

/boot

250 , ext3

swap

2 , swap

LVM

LVM


:
9.5. : LVM

13 , ext4

/var

4 , ext4

/home

50 , ext4

9.15.
.
.

9.37.
, , .

99

9. Anaconda


.

Red Hat Enterprise Linux.
.
, .
, .
.
.
(, ),
,
Red Hat Enterprise Linux .

9.16. x86, AMD64


Intel 64
.
,
. , ,
.

GRUB (GRand Unified Bootloader)


, ,
(, Windows). Red Hat Enterprise
Linux 6 , GRUB,
3
GRUB 2. Red Hat GRUB Red Hat
Enterprise Linux 6 .

GRUB
GRUB .
. GRUB ,
Shift.

http://www.gnu.org/software/grub/grub-legacy.en.html

100

x86, AMD64 Intel 64

9.38.
,
GRUB. 9.17, .
, .
Linux, Red Hat Enterprise Linux. Linux
GRUB.
.

GRUB
GRUB .

GRUB ( MBR)
, .
, /dev/sda.

- GRUB,
(,
). ,
!

, Red Hat Enterprise Linux


GRUB . GRUB ,
.
101

9. Anaconda
, ,
.

GRUB.
, , .
GRUB .

GRUB .

GRUB .
, ,
.
.

, ,
.
GRUB -
, e.
.

,
.
, .
, , ,
. ,
. -
, , CD, DVD USB
BIOS.
.

GRUB
,
, GRUB .

, GRUB.
.

,
.
.
102


GRUB . ,
/boot/grub/grub.conf.
,
Red Hat Enterprise Linux GRUB.
GRUB , grub-md5-crypt.
man grub-md5-crypt.

GRUB QWERTY
GRUB , GRUB QWERTY
. ,
, , .

, ,
,
.

9.16.1.
, , ,
. :
(MBR, Master Boot Record)
, MBR , System Commander.
MBR , BIOS
.
MBR, GRUB ,
Red Hat Enterprise Linux
.
,
. .
GRUB, Red Hat Enterprise Linux.

GRUB
GRUB ,
.
GRUB .

103

9. Anaconda

9.39.

RAID-, , BIOS
RAID-. MBR RAID. MBR ,
/boot/.

Red Hat Enterprise Linux, MBR.


, .
, SCSI- SCSI IDE, , , SCSI.

, , BIOS
1024 .
Linux /boot 1024 .
Linux 1024 .
parted 1024 528 .
:

http://www.pcguide.com/ref/hdd/bios/sizeMB504-c.html

9.16.2.
Red Hat Enterprise Linux
. ,
Red Hat Enterprise Linux
.
, Red Hat Enterprise Linux .
:
x86, AMD64 Intel 64
(CD, DVD, USB, PXE) linux rescue.
36,
.
104


Red Hat
Enterprise Linux.

9.16.3.
Red Hat Enterprise Linux GRUB,
. , LILO, SYSLINUX,
Acronis Disk Director Suite.

Red Hat .

9.17.
.
, ,
Red Hat Enterprise Linux .
Red Hat Enterprise Linux.


.
.
.

105

9. Anaconda

9.40.
Red Hat Enterprise Linux ,
. , .

:

Red Hat Enterprise Linux.

MySQL PostgreSQL.
-
- Apache.

OpenOffice.org,
( GIMP) .

Red Hat
Enterprise Linux.

Red Hat Enterprise Linux.



.

106


, (.
9.18, ).
(. 9.40,
).
, .
, .

9.17.1.

. ,
. Red Hat Enterprise Linux
.
.
:
ClusteredStorage
Red Hat.
HighAvailability
( ).
LoadBalance
Linux.
Red Hat Enterprise Linux 6
Red Hat Enterprise Linux 6.
Cluster Suite Red Hat Enterprise Linux 6 (https://access.redhat.com/knowledge/
docs/manuals/) .

9.41.
,
.
107

9. Anaconda
,
.



(, DVD) .


, URL.
URL , repodata.

. .



, .
.

9.17.2.

Red Hat Enterprise Linux ,
. ,
.

, .
, . ,
.

108

9.42.
Red Hat Enterprise Linux
. .
,
(, X Window ), ,
.
, .
.
, .
. ,
.
, Red Hat Enterprise Linux
.
.
,
.

109

9. Anaconda

9.43.
.
, .
.
.
,
/ .
Red Hat Enterprise Linux
.

9.17.2.1.
Red Hat Enterprise Linux :
syslog
SMTP (Simple Mail Transfer Protocol)
NFS (Network File System)
SSH (Secure SHell)
mDNS (multicast DNS)
:
HTTP (HyperText Transfer Protocol)
CUPS (Common UNIX Printing System)
VNC (Virtual Network Computing)
Red Hat Enterprise Linux
.
, .
Red Hat Enterprise Linux NFS, HTTP VNC,
.
Red Hat Enterprise Linux ,
, , ,
. SSH Red Hat Enterprise Linux .
, , NFS
NFS.
110

9.18.
.
.

.

9.44.
Red Hat Enterprise Linux
.

9.45.
/root/install.log.
. Red Hat Enterprise Linux
CD-ROM .

9.19.
! Red Hat Enterprise Linux .
.
, .
. Red Hat Enterprise Linux
. , login:
( X Window X).
Red Hat Enterprise Linux 5 ( )
FirstBoot, .
, , Red Hat Network
. FirstBoot ,
Red Hat Enterprise Linux.

111

112


Intel AMD
.
anaconda /tmp. :
/tmp/anaconda.log
anaconda
/tmp/program.log
, anaconda
/tmp/storage.log

/tmp/yum.log
yum
/tmp/syslog

/tmp/anacdump.txt.
RAM- .
scp.

10.1. Red Hat Enterprise Linux


10.1.1. RAID-?
, ,
, .
BIOS RAID-.
(, GRUB:)
. .
, , /boot
RAID-, .
RAID- .
(GRUB LILO) MBR ,
RAID-. ,
/boot/.
, .

10.1.2. Signal 11
signal 11, , ,
.
113

10. Intel AMD


signal 11 , ,
.
signal 11,
. , Red
Hat Enterprise Linux .
,
.
,
. , ,
.
. ,
BIOS. ,
, .
, -. Anaconda
DVD ISO, . Red Hat
,
, -.
, boot: yaboot:

linux mediacheck

http://www.bitwizard.nl/sig11/

10.2.
10.2.1.


. ,
,
. ,
.

.
xdriver=vesa.
resolution=.
. ,
driver=. , ,
Bugzilla ,
. 28,
.

114


, nofb.
, .

10.3.
10.3.1. Red Hat
Enterprise Linux
, ,
Red Hat Enterprise Linux, ,
SCSI-.
,
, (. 6,
Intel AMD).
Red Hat :
http://hardware.redhat.com/hcl/

10.3.2.
anaconda ,
:

115

10. Intel AMD

10.1.

116

10.2.

117

10. Intel AMD


, :

.

10.3.
Bugzilla
Bugzilla.
Bugzilla. .

10.4. Bugzilla

scp.
, , .

10.5.

118

10.3.3.
(. 9.12,
) , :
hda .
.
.
,
.
EZ-BIOS
(
).

.

10.3.4.
swap, / () ,
, , , .
1024 , /boot, /
.

10.3.5.
,
, , .
:
/
<swap>

; anaconda .

10.3.6. Python
Red Hat Enterprise Linux
Python .
/tmp/
:

Traceback (innermost last):


File "/var/tmp/anaconda-7.1//usr/lib/anaconda/iw/progress_gui.py", line 20, in run
rc = self.todo.doInstall ()
File "/var/tmp/anaconda-7.1//usr/lib/anaconda/todo.py", line 1468, in doInstall
self.fstab.savePartitions ()
File "fstab.py", line 221, in savePartitions

119

10. Intel AMD


sys.exit(0)
SystemExit: 0
Local variables in innermost frame:
self: <fstab.GuiFstab instance at 8446fe0>
sys: <module 'sys' (built-in)>
ToDo object: (itodo ToDo p1 (dp2 S'method'
p4 (dp5 S'progressWindow' p6
<failed>

p3

(iimage

CdromInstallMethod

, /tmp/
. ,
.
,
anaconda,
:

http://fedoraproject.org/wiki/Anaconda/Updates/ru

Red Hat naconda.


https://access.redhat.com/login
. anaconda
.
, anaconda:

http://fedoraproject.org/wiki/Anaconda

. Red Hat
Bugzilla

http://bugzilla.redhat.com/bugzilla/

, - ,
:

http://www.redhat.com/apps/activate/

10.4.
10.4.1. GRUB
x86?
- ,
root, /boot/grub/grub.conf .
, splashimage grub.conf.
#.

https://fedoraproject.org/wiki/Anaconda/Updates/ru

120


Enter .
GRUB b, .
grub.conf .
,
grub.conf.

10.4.2.
X Window,
, X Window startx.
Enter,
.
,
.
, /etc/inittab,
runlevel. .
.
. ,
su root.
gedit /etc/inittab,
gedit. /etc/inittab .
, :
# Default runlevel. The runlevels used are:
#
0 - halt (Do NOT set initdefault to this)
#
1 - Single user mode
#
2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#
3 - Full multiuser mode
#
4 - unused
#
5 - X11
#
6 - reboot (Do NOT set initdefault to this)
# id:3:initdefault:

,
id:3:initdefault: 3 5.

3 5.

id:5:initdefault:

, Ctrl+Q. ,
, . .
121

10. Intel AMD


, .

10.4.3. X Window (GUI)


X ( X Window), ,
.
X, Red Hat
Enterprise Linux, .
, X Window,
GNOME, KDE .
35.3,
.

10.4.4. X

, ,
.
,
df -h

df . df
man df.
90%, . /home/
/tmp/ .
. X .

10.4.5.
firstboot,
, Ctrl+Alt+F2, root.
root, , linux
single.
x86, GRUB,
GRUB e, .
.
, kernel, e .
kernel:

single

Enter .
GRUB, b, .
122


#, passwd
root . shutdown -r now
.
, root .
su -, root.
passwd <_> .
, .
:

http://hardware.redhat.com/hcl/

10.4.6.
.
, cat /proc/meminfo.
, .
, /boot/grub/grub.conf :

mem=xxM

xx .
/boot/grub/grub.conf
:

# NOTICE: You have a /boot partition. This means that


# all kernel paths are relative to /boot/
default=0
timeout=30
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Enterprise Linux Client (2.6.27.19-170.2.35.el5.i686)
root (hd0,1)
kernel /vmlinuz-2.6.27.19-170.2.35.fc10.i686 ro root=UUID=04a07c13-e6bf-6d5ab207-002689545705 mem=1024M
initrd /initrd-2.6.27.19-170.2.35.fc10.i686.img

, grub.conf, .
GRUB, e.
.
, kernel, e .
kernel

mem=xxM

xx .
Enter .
123

10. Intel AMD


GRUB, b, .
xx . Enter.

10.4.7.
, ,
.
system-config-printer .
root, root.

10.4.8. httpd Sendmail


Apache- httpd Sendmail , /
etc/hosts
127.0.0.1

124

localhost.localdomain

localhost

II. POWER IBM



Red Hat Enterprise Linux IBM POWER
Red Hat Enterprise Linux . IV,

.

64- POWER
Red Hat Enterprise Linux ppc (32 ) ppc64 (64 ).
Red Hat Enterprise Linux 6 64- POWER (ppc64).


POWER
11.1. ?
37, ,
.

11.2. IBM eServer System p


real-base
, real-base c00000.
:
DEFAULT CATCH!, exception-handler=fff00300

IBM eServer System p ,


, .
, .
, -
. HVSI,
T2.

. HMC
, , SCSI Ethernet.
HM .
IBM
http://publib.boulder.ibm.com/infocenter/eserver/v1r3s/index.jsp?topic=/iphbi/iphbikickoff.htm
SCSI SCSI,
. SCSI
. SCSI AIX i5/OS
.
http://
publib.boulder.ibm.com/infocenter/eserver/v1r3s/index.jsp?topic=/iphbi/iphbirelated.htm.
HMC
. SMS
.

127

11. POWER

11.3. RAID
Intel BIOS RAID
Intel BIOS RAID Red Hat Enterprise Linux 6
mdraid dmraid. ,
Intel ISW mdraid, dmraid. ,
mdraid dmraid.
Intel BIOS RAID.
/etc/fstab, /etc/crypttab ,
, Red Hat Enterprise Linux 6.
,
UUID. UUID
blkid.

11.3.1. RAID
RAID (Redundant Array of Independent Disks)
. ,
RAID. Red Hat Enterprise Linux
RAID .
Red Hat Enterprise Linux RAID, .

11.3.2. RAID
RAID Red Hat Enterprise Linux.
RAID- ,
(. 16.16,
).

11.3.3. FireWire USB


FireWire USB
Red Hat Enterprise Linux. ,
.


FireWire USB .
.

11.4. ?
()
Red Hat Enterprise Linux . Red Hat Enterprise Linux
.
,
A, .
128


, Red Hat Enterprise Linux,
, .

1


Red Hat Enterprise Linux
, , ,
Red Hat Enterprise Linux.
16.16.5, ,
.

11.5.
DVD- Red Hat Enterprise Linux,
Red Hat Enterprise Linux 6,
DVD DVD. 2,
DVD-.
Red Hat Enterprise Linux DVD,
, CD.
,
. 2.3,
.

129

130


12.1.
eHEA
eHEA ,
(16 ),
.
Ethernet- IBM eHEA
.

, DVD- ,
.

CD/DVD- USB-.
(NFS, FTP, HTTP) Red Hat Enterprise Linux
.
.
NFS, FTP HTTP, ,
,
DVD.

Red Hat Enterprise Linux


. DVD, ,
c ISO NFS.
, ,
DVD. ,
yaboot:

linux mediacheck

131

12.

,
FTP, HTTP NFS. , /var/www/inst/rhel6
http://network.server.com/inst/rhel6.
,
(, /var/isos), /. //
FTP, NFS HTTP. , ,
HTTP /var/www/html/rhel6.

ISO, DVD.
DVD,
dd if=/dev/dvd of=//RHEL6.iso

dvd DVD.
DVD Linux,
, (.
12.1.1, FTP- HTTP-, 12.1.2, NFS).

12.1.1. FTP- HTTP-


DVD ,
FTP HTTP.
: ,
, .

12.1.2. NFS-
,
install.img, product.img ,
, .
1.

. Linux
mv //RHEL6.iso ///

2.

SHA256 .
. , Linux :
$ sha256sum .iso

64 .
,
Red Hat Network (. 1, Red Hat Enterprise Linux).
3.
132

images/ . :

NFS-

mount -t iso9660 /path/to/RHEL6.iso /mnt/point -o loop,ro


cp -pr /mnt/point/images /path/images/
umount /mnt/point

4.

, images/ install.img,
. images/ product.img,
, (.
16.18, ).

5.

/etc/exports ,
NFS.
:
// ip.. (ro)

:
// * (ro)

6.

NFS ( Red Hat Enterprise Linux /sbin/service


nfs start). NFS , (/sbin/service
nfs reload).

7.

NFS-,
Red Hat Enterprise Linux. NFS
NFS.

Red Hat Enterprise Linux


. DVD, ,
NFS- ISO.
(
DVD-). ,
boot:

linux mediacheck

133

12.

12.2.

ext2, ext3, ext4
FAT. ,
.
Windows
, Linux fdisk.

LVM
ISO- LVM.

Red Hat Enterprise Linux ,


DVD .
:
ISO DVD;
install.img ;
product.img .
(.
15.3, ).
CD/DVD- USB-.
:
1.

1, Red Hat Enterprise Linux


DVD Red Hat Enterprise Linux. DVD-,
:
dd if=/dev/dvd of=//RHEL6.iso

dvd DVD.
2.

.
ISO ,
Red Hat Enterprise Linux, ,
USB.

3.

SHA256 .
. , Linux :
$ sha256sum .iso

134


64 .
,
Red Hat Network (. 1, Red Hat Enterprise Linux).
4.

images/ . :

mount -t iso9660 /path/to/RHEL6.iso /mnt/point -o loop,ro


cp -pr /mnt/point/images /path/images/
umount /mnt/point

5.

, images/
install.img. images/ product.img,
, (. 9.17,
).

Red Hat Enterprise Linux


. DVD, ,
NFS- ISO.
(
DVD-). ,
boot:

linux mediacheck

135

136


IBM
POWER
Red Hat Enterprise Linux .
, , ,
. Red Hat
. ISO- RPM.
. ,
DVD
.
(. 35.1.1, ).
. ,
,
.
.
1. , :
a. ;
b. USB.
2.
:
a. CD;
b. DVD.
2.1, DVD
.
3. RAM- PXE-.
,
.
, Red Hat
,
, .
, .
, .

13.1.

:

.
,
. ,
137

13. IBM POWER


RAM- (. 13.2.3,
RAM-).

,
,
. ,
.
, .
.
RAM-.

13.2.

Red Hat
ISO-. ,
, ,
RAM-:


USB

CD
DVD
RAM-
PXE

( 13.2.1, ,
13.2.2, , 13.2.3,
RAM-).

13.2.1.

13.2.1.1.

( USB-).
,
(.iso). dd.iso:

138

13.1. USB-

, . ,
.
13.3.2,
13.3.3,
,
.
OEMDRV,
.
dlabel=on (. 13.3.1,
).

13.2.2.
(CD DVD) .

139

13. IBM POWER

13.2.2.1. CD/DVD-
, GNOME
CD/DVD
,
. ,
.
, .
, .
,
, , .

1.

, Red Hat
.

13.2. *.iso

140


2.

.
:

13.3. CD/DVD Creator


3.

. ,
.

CD/DVD- , ,
rhdd3 rpms:

141

13. IBM POWER

13.4. CD/DVD-
.iso, ,
. , .
13.3.2,
13.3.3,
,
.

13.2.3. RAM

, ,
.

Red Hat Enterprise Linux


RAM- . RAM-
, . ,
, PXE-.
30, PXE-.
PXE- :
1.

142

PXE-.
Red Hat. .iso.


2.

/tmp/initrd_update.

3.

dd.img.

4.

/tmp/initrd_update
find . | cpio --quiet -c -o | gzip -9 >/tmp/initrd_update.img

5.

/tmp/initrd_update.img ,
. /tftpboot/pxelinux/. , /tftpboot/
pxelinux/r6/ Red Hat Enterprise Linux 6 Client.

6.

/tftpboot/pxelinux/pxelinux.cfg/default
RAM-:
label -dd
kernel /vmlinuz
append initrd=/initrd.img,/dd.img

.
13.3.4, PXE-
, RAM- .
13.1. RAM-

PXE- driver_update.iso. PXE-
/tftpboot/pxelinux/r6.
, , :
$
$
$
$

cp driver_update.iso /tmp/initrd_update/dd.img
cd /tmp/initrd_update
find . | cpio --quiet -c -o | gzip -9 >/tmp/initrd_update.img
cp /tmp/initrd_update.img /tftpboot/pxelinux/r6c/dd.img

/tftpboot/pxelinux/pxelinux.cfg/default :
label r6c-dd
kernel r6c/vmlinuz
append initrd=r6c/initrd.img,r6c/dd.img

13.3.
:
;
;
;
PXE- .

143

13. IBM POWER

13.3.1.

, ,
OEMDRV.
(. 13.2.1.1,
).

13.3.2.

1.

.
(,
),
:

13.5.
Use a driver disk (. 13.4,
).

2.

13.3.3.


, .

144

PXE-
1.

linux dd.
.

13.6.
2.

.
.
(, DVD), .
, ,
(. 13.4,
).

13.3.4. PXE-
1.

BIOS .
.
.

2.

PXE . ,
/tftpboot/pxelinux/pxelinux.cfg/default PXE
r6c-dd, r6c-dd Enter.

13.2.3, RAM- 30,



PXE. ,
.

13.4.

,
. ,
, .

145

13. IBM POWER

13.7.
,
.
CD, DVD USB, .
(
),
.

146

13.8.
:

13.9. ISO-
,
USB-.
CD DVD, .
147

13. IBM POWER


( ),
,
. . , ,

.

148


ramdisk.image.gz
yaboot .
:
Cannot load ramdisk.image.gz: Claim failed for initrd memory at 02000000 rc=ffffffff

, real-base c00000. real-base


OpenFirmware, printenv. setenv
.

IBM System p DVD, SMS (System Management Services)


.
SMS (System Management Services),
, 1.

, 1.

14.1. SMS
, ,
CD/DVD ( SCSI). , .
,
.
149

14.
, , DVD.
YABOOT, boot:.
Enter .
, images/netboot/ppc64.img DVD.

14.1.
, .
60 , .
, Enter, ,
Enter.
Tab.

14.2.
28, .
:

, . Red Hat Enterprise Linux
.

Red Hat Enterprise Linux ,
.
,
.
150



, .
Red Hat Enterprise Linux ,
.
, .

.
,
.

14.2.
Red Hat Enterprise Linux
NFS, FTP HTTP.
,
DVD.

.
14.1.

DVD

DVD,

USB-

USB-, DVD,

CD , USB

3.5,
.

14.3. PXE

PXE , PXE,
(. 30, ).
. BIOS,
Network Boot Boot Services.
Red Hat Enterprise Linux
.
PXE-:
1.

, .
.

2.

3.

. , .

, , BIOS
. ,
BIOS PXE.
.
151

14.

PXE-
C eth0
. ,
, , PXE. ,
pxelinux.cfg/* :
IPAPPEND 2
APPEND ksdevice=bootif

,
BIOS PXE. :
ksdevice=link

,
.

152

15.1.

Red Hat Enterprise Linux .
Red Hat Enterprise Linux ,
VNC (. 31, VNC). anaconda ,
,
VNC, . ,
.
,
- , xdriver=vesa (.
28, ).

, ,
(), (. 15.1,
URL 15.2,
).

15.1. URL

153

15.

15.2.
:
.
, .
, , ,
.
- .
* () ( ).
, .
, .
,
.
, .
, . ,
, ;

. #,
.
;
, .
.
.
, Tab Enter.
, .
,
.
,
. 15.1, URL

154


OK, 15.2,
.

15.1.1.
.
, , .
Tab Alt-Tab .
, .
, (, Tab)
Enter. ,
Enter. ,
. .
F12, .
OK.

, -
, .

15.2.
(. 15.3,
), Tab OK Enter, .
.
.

.
,
(. 16.18.2, ).

155

15.

15.3.
, .

15.3.
(. 15.4, ),
Tab OK Enter, .

15.4.

15.3.1.
15.3.1.1. DVD
Red Hat Enterprise Linux DVD, .
, DVD.
DVD,
IDE ( ATAPI).
156


SCSI DVD , SCSI.
.
; SCSI- .
DVD ,
. , ,
. , - .
(. 16.5, ).

15.3.2.
(
).
, Red Hat Enterprise Linux.
repo=hd.

15.5.
ISO- . IDE, SATA, SCSI, USB
/dev/sd. , /dev/sda,
, /dev/sda1.
, .
:
15.1. ISO

VFAT

D:\

D:\Downloads\RHEL6

/Downloads/RHEL6

ext2, ext3, ext4

/home

/home/user1/RHEL6

/user1/RHEL6

ISO ( ) , /.
, .
157

15.
, c /home/, /home/
new/, /new/.

/
/ .

OK (. 16, anaconda).

15.3.3.
TCP/IP.
IP . IP-
DHCP .

15.6. TCP/IP
15.3.4, NFS NFS.
15.3.5, FTP HTTP
FTP HTTP .

15.3.4. NFS
NFS , NFS.
repo=nfs.
IP NFS-. ,
eastcoast example.com, eastcoast.example.com
NFS-.
. (. 12.1.2,
NFS-), ////,
_/.
NFS.
Red Hat Enterprise Linux
mount nfs.
158

FTP HTTP
NFS- Red Hat Enterprise Linux,
, . ,
.
, Red Hat
Enterprise Linux.

15.7. NFS
NFS- ISO- DVD Red Hat Enterprise Linux,
.
16, anaconda .

15.3.5. FTP HTTP

http:// ftp://.

URL ,
HTTP FTP, Red Hat Enterprise Linux.
repo=ftp repo=http.
IP- FTP/HTTP, ,
, /images . :
/mirrors/redhat/rhel-6/Server/ppc64/
- , , , .
,
.
,
:
{ftp|http}://<>:<>@<>[:<>]/<>/
:
http://install:rhel6pw@name.example.com/mirrors/redhat/rhel-6/Server/ppc64/
159

15.

15.8. URL
16, anaconda .

15.4.
.
, .
, .
.
DVD .

160

anaconda

anaconda.

16.1.
,
. , ,
.
:
(LVM, RAID, FCoE, zFCP, iSCSI);
;
;
;
Firstboot.

16.2.
(GUI, Graphical User Interface)
, , , , ,
.
. ,
Tab ,
, + - , Enter
. Alt+X (X ,
) .
,
(, ), VNC
.
. 28,
.

161

16. anaconda

,
. ,
yaboot: :

linux text

14.1, Red Hat Enterprise Linux,


15.1, .
,
Red Hat Enterprise Linux,
LVM.
, ,
,
.

16.3. Linux
System p ,
. System p
(. 16.4, HMC
vterm).
Red Hat Enterprise Linux ,
.
, .
,
.
,
.
.
, Red Hat Enterprise Linux
. , ,
. 16.1, ,
,
.
(
6 ) ,
.
16.1. ,

Ctrl+Alt+F1

Ctrl+Alt+F2

Ctrl+Alt+F3


(
)

162

HMC vterm

Ctrl+Alt+F4

Ctrl+Alt+F5

Ctrl+Alt+F6

16.4. HMC vterm


HMC vterm IBM System p . ,
HMC .
vterm ;
. ,
(. 16.3, Linux).

16.5.
,
Red Hat Enterprise Linux 6.

16.6.
Red Hat Enterprise Linux .
.

163

16. anaconda

16.1.

Red Hat Enterprise Linux:
.

Red Hat Enterprise
Linux:
(SAN, Storage Area Networks);
(DASD, Direct Access Storage Devices);
RAID-;
.
,
iSCSI (Internet Small Computer System Interface) FCoE (Fiber Channel over Ethernet).
, anaconda
. 16.8,
.

16.6.1.
anaconda .

164

16.2. .

16.3. . .

165

16. anaconda

16.4. . SAN.
:

, (, ).
RAID
, RAID-.

,
SCSI- Fibre Channel.
SAN
.
iSCSI FCoE, (. 16.6.1.1,
).
,
WWID (World Wide Identifier), , LUN (Logical
Unit Number).

16.5.
, (,
, LUN, WWID) .
166


anaconda
, .
,
. ,
WWID, , , , .

16.6.
. ,
, ,
.
Red Hat Enterprise Linux
.
, .
. ,
,
, /etc/fstab.


Anaconda , .
Red Hat Enterprise Linux
.

, . 16.12,
.

16.6.1.1.
iSCSI (. B, iSCSI) FCoE (Fibre
Channel over Ethernet) SAN (Storage Area Network).

16.7.

167

16. anaconda

16.6.1.1.1.
,
.

16.8.
DHCP ,
.
IP (DHCP). IPv4,
/ , .
OK, .

16.6.1.1.2. iSCSI
ISCSI , ISCSI
. IP ISCSI
. ISCSI CHAP
(Challenge Handshake Authentication Protocol), CHAP.
( ) CHAP
. , .

168

16.9. ISCSI
, ,
. ISCSI
.

16.6.1.1.3. FCoE
FCoE SAN FCoE SAN .
, FCoE,
.

16.10. FCoE
DCB (Data Center Bridging) Ethernet
Ethernet- .
DCB , DCB.
169

16. anaconda

16.7.
(, ),
(. 16.11, ).
, .

16.11.

,
.
system-config-keyboard .
root,
root.

16.8.

., _.
DHCP (Dynamic Host Configuration Protocol)
.
.

170


. ,
.

16.12.
Red Hat Enterprise Linux ,
. .


.
.
-.

171

16. anaconda

16.8.1.

Red Hat Enterprise Linux 6
, .
,
Red Hat Enterprise Linux DVD .


.

,
.
system-config-network .
root,
root.
. Red Hat Enterprise Linux 6,
NetworkManager.

, .
NetworkManager , DSL, ,
VNP-. NetworkManager
.
.
.

172

16.13.
, ,
, , , ,
.
, .
.

16.8.1.1.
.
.
.
.

16.8.1.2.
MAC-
( ) .

173

16. anaconda

16.14.

16.8.1.3. 802.1x
802.1x
. 802.1X
. :

:
TLS (Transport Layer Security);
TLS (TTLS EAP-TTLS);

174


EAP (PEAP) (Protected Extensible Authentication Protocol).

.

X.509, DER (Distinguished
Encoding Rules) PEM (Privacy Enhanced Mail).
CA
CA, DER (Distinguished
Encoding Rules) PEM (Privacy Enhanced Mail).

, DER (Distinguished
Encoding Rules), PEM (Privacy Enhanced Mail) PKCS#12 (Personal Information Exchange
Syntax Standard).

, . ,
.

175

16. anaconda

16.15. 802.1x

16.8.1.4. IPv4
IPv4 .
, DHCP.
(DHCP)
IPv4 DHCP.

176


(DHCP)
IPv4, DHCP,
.

IPv4 .
Link-Local
169.254/16.

.
10.42.x.1/24. DHCP DNS
, NAT (Network Address Translation)
.

IPv4 .
, ,
IP- , .
. DNS ,
, ,
.
ID DHCP.
.
IPv4 ,
IPv6. , IPv4 ,
IPv6 .

177

16. anaconda

16.16. IPv4

16.8.1.4.1. IPv4
Red Hat Enterprise Linux IP-
. , .

178

16.17. IPv4
, IP-, ,
.
,
.
,
.

16.8.1.5. IPv6
IPv6 IPv6 .
, DHCP.

IPv6 .

IPv6 DHCP.
,
IPv6, DHCP, DNS
.

IPv6 .
Link-Local
fe80::/10.
, ,
IP- , .
. DNS ,
179

16. anaconda
, ,
.
ID DHCP.
.
IPv6 ,
IPv4. , IPv6 ,
IPv4 .

16.18. IPv6

16.8.1.5.1. IPv6
Red Hat Enterprise Linux IP- .
, .
180

16.19. IPv6
, IP-, ,
.
,
.

16.9.
, .
.
:
, , ;
X .
.

181

16. anaconda

16.20.
Red Hat Enterprise Linux,
UTC. Red Hat Enterprise Linux
UTC. UNIX.
.

,
.
system-config-date .
root,
root.
, timeconfig.

16.10. root
root
. root Microsoft Windows
, .
root .

182

root

root ( )
; root
.

16.21. root
root ,
. - ,
su root.
- .

root, su - Enter.
root Enter.

root .
root.

root Red Hat Enterprise Linux.


root . root
, ,
.

183

16. anaconda
root 6 ,
. ; ,
.
, ,
. , , qwerty, password, root, 123456
.
(: Aard387vark
420BMttNT). , . ,
, .

, ,
.

root ,
root.
system-config-users.
root, root.
root.
. . ,
.

16.11.
(. 16.6,
), anaconda ,
,
.
, .

.

184

16.22.
: ,
, ,
.
, ,
. ,
.

.
, ,
,
.


,
Red Hat Enterprise Linux,
.
anaconda .
, ,
,
(. 16.14, ).

, .
185

16. anaconda

16.12.
,
. ,
.
, .
, , ,

.

16.23.
, RAID
.

clearpart --initlabel (. 32, -).



: ,
.

186

16.13.

Anaconda Red Hat Enterprise Linux 6,
Red Hat Red
Hat Enterprise Linux ( , Red Hat
Enterprise Linux 4 Red Hat Enterprise Linux 5).
,
. , Red Hat
.

Red Hat Enterprise Linux .


,
. .
, ,
. ,
.
,
.

16.13.1.
Red Hat Enterprise Linux,
. ,
.

16.24.
187

16. anaconda


, Red Hat Enterprise
Linux, . , .

16.13.2.

Red Hat /home


(. 9.12, ).

, ,
, Red Hat Enterprise Linux,
. , :
rpm -qa --qf '%{} %{}-%{} %{} ' > ~/old-pkglist.txt

,
.
:
su -c 'tar czf /tmp/etc-`date +%F`.tar.gz /etc'
su -c 'mv /tmp/etc-*.tar.gz /home'

, /home,
Apache, FTP, SQL .
, .


, /
home. ,
(D/DVD ).

35.2,
.

188

16.14.

. ,
,
. ,
.



, . ,
Linux,
. VNC.
, ,
LVM .

: RAID
RAID-, , BIOS
. /boot/
RAID, . RAID .
/boot/ RAID-.
,
/boot/.

,
. ,
. A,
.

189

16. anaconda

16.25.

.
.
,
, .
.
:

(
, Windows VFAT NTFS).


. , ,
Red Hat Enterprise Linux, , .
, Red Hat
Enterprise Linux .

Linux
Linux,
Linux. ( VFAT FAT32) .

190



,
Red Hat Enterprise Linux,
.

,
, . ,
.
, , ,
.


.
, Red Hat
Enterprise Linux (. 11.4, ?).

, (. 16.16,
).
.
/boot (.
C, ).
, ,
. ,
. , .

:
Red Hat Enterprise Linux
.
,
.

16.15.
, .
LUKS (Linux Unified Key Setup).
C, .

191

16. anaconda

16.26.
, , .
.



. .
- ,
(. C.3.2, , C.3.3,
).

16.16.

16.17, ,
,
.
,
( ) .
, ,
Red Hat Enterprise Linux.
, .
, , A,
16.16.5, .
(/) , /boot/,
PReP .
Anaconda .

192

16.27. IBM System p


. ,
RAID, .
(, /dev/hda LogVol00),
( ).

. ,
.
, RAID,
(. 16.11, ).
. ,
.
:

, .
(M)
, .
./RAID/
( , ),
RAID , .

.
(, ext4). ,
(LVM) RAID.
193

16. anaconda

, .
, , , .

:

, RAID

, RAID

, RAID

16.16.1.
,
RAID.
.

16.28.
, RAID, LVM
:
194



9.14.2,
.
(. A,
) .
RAID
23.15.3, RAID .
RAID ,
RAID.
RAID.
RAID RAID RAID.
RAID.
RAID RAID .
RAID.
LVM
16.16.4, LVM .
LVM .
LVM .
.
LVM .
.

16.16.2.
.
(. 16.29, ).

. A,
.

195

16. anaconda

16.29.
: . ,
/, /boot /boot ..
. ,
.
: (. 16.16.2.1,
).
: . ,
. , .
, anaconda
.
(M): .
200 ; , 200 .
: ,
,
.
(),
.
.

196


: ,
. ,
(. A.1.3, ).
: .
.
. C,
.
OK: , O .
: .

16.16.2.1.
Red Hat Enterprise Linux .
.

,
RAID-
LVM.
swap .
(swap), .
Red Hat
Enterprise Linux.
RAID RAID- RAID. RAID
RAID Red Hat Enterprise Linux.
(LVM) (LVM),
LVM. LVM
. LVM
Red Hat Enterprise Linux.

ext4 ext3 ,
,
, ,
. ext4
, .
ext3 ext2
.
2
, fsck .
ext2 Unix ( , ,
..) 255 .
xfs ,
16 (~16
), 8 (~8 )
. XFS ,

197

16. anaconda
,
.
vfat Linux, FAT
Microsoft Windows.
Btrfs ,
, ext2, ext3 ext4.
. Btrfs
,
,
.
Btrfs ,
. Btrfs,
btrfs (. 28, ).

Btrfs
Red Hat Enterprise Linux 6 Btrfs.
Btrfs , , ,
.

16.16.3. RAID
RAID- (Redundant
Arrays of Independent Disks)
,
. Red Hat Enterprise Linux
RAID-.
RAID-, RAID.
, RAID RAID-.
RAID
, RAID-.
, .
(. 16.16.2,
). ,
RAID.

198

RAID

16.30. RAID-
RAID
RAID
RAID. ,
RAID.

199

16. anaconda

16.31. RAID
.
Anaconda RAID,
, md0 md15.
,
RAID.
RAID RAID
:
RAID 0 . RAID 0


. , RAID 0 . ,
. RAID 0
RAID.
RAID 1
.
. RAID 1 RAID.
RAID 4 ,
.
- .
,
.
RAID 4 RAID.
RAID 5
. RAID 5
RAID 4, RAID 5
. RAID 5
RAID.
RAID 6 RAID 5,
. RAID 5
RAID.
200

LVM
RAID 10 ( RAID RAID)
. , , RAID 10 RAID
, .
RAID 0.
RAID 10 RAID.
RAID
RAID- .
.

16.32. RAID

16.16.4. LVM
LVM
LVM .
LVM, Alt+F2, ,
lvm. Alt+F1 .

LVM (Logical Volume Management)


, LUN.
,
. , ,
201

16. anaconda
. ,
LVM ,
.
LVM Red Hat
Enterprise Linux. , LVM
.
LVM
, LVM .
, LVM.
(. 16.16.2,
). ,
(LVM).

16.33. LVM
LVM
, LVM
.

202

LVM

16.34. LVM
,
, ,
, .
,
. , , ,
5
8 .
, 5
8 . , , 4
, .

, LVM. ,
.
, .

203

16. anaconda

16.35.

16.16.5.
-,
:
(swap) ( 256 )
. ,
.

.
,
. ,
,
.
16.2.

4 16

16 64

64 256

16

256 512

32

,
.
, .
PPC PReP
YABOOT, POWER Red Hat Enterprise
Linux. ,
PReP.
IBM System p: PReP
4-8 10 .

204


/boot/ ( 250 ) (
Red Hat Enterprise Linux) .

(250 ).

RAID-, , Red Hat Enterprise Linux 6


RAID IPR. RAID-
, Open Firmware RAID.
/boot/ , RAID-, ,
.

(3.0-5.0 )
/. ( /
boot) .
3.0 ,
5.0 , .

/root
/ , . /root
, .

PackageKit /var/cache/yum/.
/var/, ,
( 3 ) .

16.17.
.
.

16.36.
, , .

205

16. anaconda


.

Red Hat Enterprise Linux.
.
, .
, .
.
(, ),
,
Red Hat Enterprise Linux .

16.18.
.
, ,
Red Hat Enterprise Linux .
Red Hat Enterprise Linux.


.
.
.

206

16.37.
Red Hat Enterprise Linux ,
. , .

:

Red Hat Enterprise Linux.

MySQL PostgreSQL.
-
- Apache.

OpenOffice.org,
( GIMP) .

Red Hat
Enterprise Linux.

Red Hat Enterprise Linux.



.

207

16. anaconda
, (.
16.19, ).
(. 16.37,
).
, .
, .

16.18.1.

. ,
. Red Hat Enterprise Linux
.
.
:
ClusteredStorage
Red Hat.
HighAvailability
( ).
LoadBalance
Linux.
Red Hat Enterprise Linux 6
Red Hat Enterprise Linux 6.
Cluster Suite Red Hat Enterprise Linux 6 (https://access.redhat.com/knowledge/
docs/manuals/) .

16.38.
,
.
208


,
.



(, DVD) .


, URL.
URL , repodata.

. .



, .
.

16.18.2.

Red Hat Enterprise Linux ,
. ,
.

64-
, 64 ,
.

, .
, . ,
.

209

16. anaconda

16.39.
Red Hat Enterprise Linux
. .
,
(, X Window ), ,
.
, .
.
, .
. ,
.
, Red Hat Enterprise Linux
.
.
,
.

210

16.40.
.
, .
.
.
,
/ .
Red Hat Enterprise Linux
.

16.18.2.1.
Red Hat Enterprise Linux :
syslog
SMTP (Simple Mail Transfer Protocol)
NFS (Network File System)
SSH (Secure SHell)
mDNS (multicast DNS)
:
HTTP (HyperText Transfer Protocol)
CUPS (Common UNIX Printing System)
VNC (Virtual Network Computing)
Red Hat Enterprise Linux
.
, .
Red Hat Enterprise Linux NFS, HTTP VNC,
.
Red Hat Enterprise Linux ,
, , ,
. SSH Red Hat Enterprise Linux .
, , NFS
NFS.
211

16. anaconda

16.19.
.
.

.

16.41.

:

16.42.

16.20.
! Red Hat Enterprise Linux .
.
, .
. Red Hat Enterprise Linux
. , login:
( X Window X).
Red Hat Enterprise Linux 5 ( )
FirstBoot, .
, , Red Hat Network
. FirstBoot ,
Red Hat Enterprise Linux.

212

IBM
POWER
.
anaconda /tmp. :
/tmp/anaconda.log
anaconda
/tmp/program.log
, anaconda
/tmp/storage.log

/tmp/yum.log
yum
/tmp/syslog

/tmp/anacdump.txt.
IBM System p :
http://www14.software.ibm.com/webapp/set2/sas/f/lopdiags/info/LinuxAlerts.html

RAM- .
scp.

17.1. Red Hat Enterprise Linux


17.1.1. Signal 11
signal 11, , ,
.
signal 11 , ,
.
signal 11,
. , Red
Hat Enterprise Linux .
,
.
,
. , ,
.
. ,
BIOS. ,
, .
213

17. IBM POWER


, -. Anaconda
DVD ISO, . Red Hat
,
, -.
, boot: yaboot:

linux mediacheck

http://www.bitwizard.nl/sig11/

17.2.
17.2.1.


. ,
,
. ,
.
resolution= (. 28,
).


, nofb.
, .

17.3.
17.3.1. Red Hat
Enterprise Linux
, ,
Red Hat Enterprise Linux, ,
SCSI-.
,
(. 13,
IBM POWER).
Red Hat :
214


http://hardware.redhat.com/hcl/

17.3.2.
anaconda ,
:

17.1.

215

17. IBM POWER

17.2.

216


, :

.

17.3.
Bugzilla
Bugzilla.
Bugzilla. .

17.4. Bugzilla

scp.
, , .

17.5.

217

17. IBM POWER

IBM System p
IBM System p
.

17.3.3.
(. 16.14, )
, :
hda .
.
.
,
.

.

17.3.4.
IBM POWER
,
, , .
:
/
<swap>
PReP.
/boot/.

; anaconda .

17.3.5. Python
Red Hat Enterprise Linux
Python .
/tmp/
:

Traceback (innermost last):


File "/var/tmp/anaconda-7.1//usr/lib/anaconda/iw/progress_gui.py", line 20, in run
rc = self.todo.doInstall ()
File "/var/tmp/anaconda-7.1//usr/lib/anaconda/todo.py", line 1468, in doInstall
self.fstab.savePartitions ()
File "fstab.py", line 221, in savePartitions
sys.exit(0)

218


SystemExit: 0
Local variables in innermost frame:
self: <fstab.GuiFstab instance at 8446fe0>
sys: <module 'sys' (built-in)>
ToDo object: (itodo ToDo p1 (dp2 S'method'
p4 (dp5 S'progressWindow' p6
<failed>

p3

(iimage

CdromInstallMethod

, /tmp/
. ,
.
,
anaconda,
:

http://fedoraproject.org/wiki/Anaconda/Updates/ru

Red Hat naconda.


https://access.redhat.com/login
. anaconda
.
, anaconda:

http://fedoraproject.org/wiki/Anaconda

. Red Hat
Bugzilla

http://bugzilla.redhat.com/bugzilla/

, - ,
:

http://www.redhat.com/apps/activate/

17.4.
17.4.1. IPL *NWSSTG
IPL *NWSSTG,
, PReP .

17.4.2.
X Window,
, X Window startx.

https://fedoraproject.org/wiki/Anaconda/Updates/ru

219

17. IBM POWER


Enter,
.
,
.
, /etc/inittab,
runlevel. .
.
. ,
su root.
gedit /etc/inittab,
gedit. /etc/inittab .
, :
# Default runlevel. The runlevels used are:
#
0 - halt (Do NOT set initdefault to this)
#
1 - Single user mode
#
2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#
3 - Full multiuser mode
#
4 - unused
#
5 - X11
#
6 - reboot (Do NOT set initdefault to this)
# id:3:initdefault:

,
id:3:initdefault: 3 5.

3 5.

id:5:initdefault:

, Ctrl+Q. ,
, . .
, .

17.4.3. X Window (GUI)


X ( X Window), ,
.
X, Red Hat
Enterprise Linux, .
, X Window,
GNOME, KDE .
220

X
35.3,
.

17.4.4. X

, ,
.
,
df -h

df . df
man df.
90%, . /home/
/tmp/ .
. X .

17.4.5.
firstboot,
, Ctrl+Alt+F2, root.
root, , linux
single.
#, passwd
root . shutdown -r now
.
, root .
su -, root.
passwd <_> .
, .
:

http://hardware.redhat.com/hcl/

17.4.6.
, ,
.
system-config-printer .
root, root.

17.4.7. httpd Sendmail


Apache- httpd Sendmail , /
etc/hosts
221

17. IBM POWER

127.0.0.1

222

localhost.localdomain

localhost

III. IBM System z



( IPL, Initial Program Load) Red Hat Enterprise
Linux IBM System z.

18. System


System z
18.1.
Red Hat Enterprise Linux 6 System z9
IBM.
, IBM System z,
(LPAR, Logical Partitions) z/VM.
System z https://www-03.ibm.com/systems/ru/
z/.
Red Hat Enterprise Linux,
:
(
z/VM).
. ,
z/VM z/VM ,
.
(. 23.15.5, ).
. Red Hat Enterprise Linux 6 IBM System z
:
(OSA, Open Systems Adapter);
HiperSockets;
LCS (LAN channel station) OSA.
:
1

. DASD SCSI
(, 2 ,
5 ).
.
DASD SCSI.
, Red Hat Enterprise Linux, ,
.
23.15.5,
.
. Linux 1 . ,
, 512
.

225

18. System z

18.2. System z
Red Hat Enterprise Linux System z
. System z
, DVD-. ,
:
1.

(IPL)
IPL (Initial Program Load)
.

2.


(SSH VNC) .
,
.

3.


, .

4.


anaconda, Red Hat Enterprise
Linux.

18.1.

226

18.2.1.
IPL
.
Red Hat Enterprise Linux 6 System z. Linux,
(kernel.img) RAM- (initrd.img)
generic.prm, .
.
IPL . ,
Linux z/VM,
z/VM. Linux ,
(HMC, Hardware Management Console)
(SE, Service Element) .
Linux z/VM,
:
z/VM (. 20.1.1, z/
VM).
:
HMC FTP (. 20.2.1,
FTP);
DVD HMC (. 20.2.2, DVD HMC SE).
z/VM, LPAR :
DASD (. 20.1.2, DASD z/VM 20.2.3,
DASD LPAR);
SCSI, FCP (. 20.1.3,
SCSI-, FCP z/VM 20.2.4,
SCSI-, FCP LPAR);
DVD SCSI, FCP (. 20.1.4, DVD SCSI,
FCP z/VM 20.2.5, DVD SCSI,
FCP LPAR).
DASD SCSI,
FCP ( DVD SCSI), , zipl.
Linux System z. ,
Red Hat Enterprise Linux 6.

18.2.2.
,
.
linuxrc (. 21,
. ).

227

18. System z

18.2.3.

. System z DVD
. :
FTP, HTTP, NFS. (FTP, HTTP NFS)
(. 19.1,
).
(DASD SCSI, FCP).
(. 19.2,
).
DVD SCSI, FCP. DVD
.
.

(. 22, .
).

18.2.4.
anaconda ,
.

VNC () X11.
.

,
VNC X11 .

IBM System z (. 26.6,
).
,
X11
display= (. 26.4, VNC X11).
Red Hat Enterprise Linux 6 .
, SCSI FCP,
, .
(. 23, . Anaconda.)

18.3. X11 VNC


anaconda
VNC X Window (X11).
X11 SSH X11 .
, X11
X11, X11
VNC.
228

X11
VNC (. 28.2,
).
, X11 SSH
vnc .
18.1, SSH
SSH anaconda.
18.1. SSH

SSH

SSH
X11

VNC

vnc

SSH c/
X11

VNC

SSH X11 X11

display=IP__:
SSH
X11

X11

18.3.1. X11
Linux
SSH X11.
SSH, X11.
, X Linux.
X11 .
, OpenSSH
ssh -X install@linuxvm.example.com

linuxvm.example.com IP- ,
. -X X11.

18.3.2. X11
X11 X11 IP-
System z . ,
X11 VNC.

DNS .
display=workstationname:0.0 (
workstationname , Linux).
display
SSH- root.
install, .
display .
xauth X11
X11. cookie- root.
xauth.
, Linux X11
xhost:
229

18. System z

xhost +linuxvm

linuxvm IP- Linux.


linuxvm X11.
, display=
. z/VM
.

18.3.3. VNC
VNC.
Linux,
X11 SSH.
VNC. VNC vnc vncpassword
(. 26.4, VNC X11).
SSH ,
VNC VNC. VNC
Linux (. 31, VNC),
.

18.3.4. VNC
Linux VNC,
, vnc vncpassword vncconnect.
.
VNC vncviewer
. Red Hat Enterprise Linux -listen:
vncviewer -listen

31, VNC .

18.3.5.

,
.
.
System z ,
z/VM (. 26.3,
) ks= ( ).
cmdline RUNKS=1 SSH (. 26.6, ).
32.3, .

18.3.5.1. anaconda-ks.cfg
Red Hat Enterprise Linux
/root/anaconda-ks.cfg,
230

231

232


19.1.

, ,
.

(. 20, ).
(NFS, FTP, HTTP) Red Hat Enterprise Linux
.
.
NFS, FTP HTTP, ,
, LPAR
(, POWER x86 Linux).

,
FTP, HTTP NFS. , /var/www/inst/rhel6
http://network.server.com/inst/rhel6.
,
(, /var/isos), /. //
FTP, NFS HTTP. , ,
HTTP /var/www/html/rhel6.

ISO, DVD.
DVD,
dd if=/dev/dvd of=//RHEL6.iso

dvd DVD.
19.1.1, FTP- HTTP- 19.1.2, NFS DVD
Linux, .

19.1.1. FTP- HTTP-


DVD ,
FTP HTTP.
: ,
, .
233

19.

19.1.2. NFS-
,
install.img, product.img ,
, .
1.

. Linux
mv //RHEL6.iso ///

2.

SHA256 .
. , Linux :
$ sha256sum .iso

64 .
,
Red Hat Network (. 1, Red Hat Enterprise Linux).
3.

images/ . :

mount -t iso9660 /path/to/RHEL6.iso /mnt/point -o loop,ro


cp -pr /mnt/point/images /path/images/
umount /mnt/point

4.

, images/ install.img,
. images/ product.img,
, (.
23.17, ).

5.

/etc/exports ,
NFS.
:
// ip.. (ro)

:
// * (ro)

6.

NFS ( Red Hat Enterprise Linux /sbin/service


nfs start). NFS , (/sbin/service
nfs reload).

7.

NFS-,
Red Hat Enterprise Linux. NFS
NFS.

234

Red Hat Enterprise Linux


. DVD, ,
NFS- ISO.
(
DVD-). ,
boot:

linux mediacheck

19.2.
,
Red Hat Enterprise Linux
, DVD.

19.2.1.

DASD SCSI,
FCP, ext2, ext3 ext4.
(, RAID
LVM), .

ISO DVD,
DVD, install.img .
, ,
.
:
ISO DVD;
install.img ;
product.img .
,
(. 22.4, ).
(. 20, ).
DASD FCP , :
1.

1, Red Hat Enterprise Linux


DVD Red Hat Enterprise Linux. DVD-,
:
235

19.

dd if=/dev/dvd of=//RHEL6.iso

dvd DVD.
2.

ISO DASD/SCSI.
ISO ,
(. 21, . )
( 22, . ).
DASD .
LUN FCP LUN FCP,
, (.
25.2.1, LUN FCP).

3.

SHA256 .
. , Linux :
$ sha256sum .iso

64 .
,
Red Hat Network (. 1, Red Hat Enterprise Linux).
4.

images/ . :

mount -t iso9660 /path/to/RHEL6.iso /mnt/point -o loop,ro


cp -pr /mnt/point/images /path/images/
umount /mnt/point

5.

images/ install.img,
. images/ product.img,
, (.
23.17, ).

6.

z/VM DASD
LUN SCSI, (. 20,
, 19.2.1.1,
).


Red Hat Enterprise Linux
( DVD, ).
, mediacheck
(. 26.7, ).

19.2.1.1.

, zipl. , zipl

236


.
.
, (. 19.2.1,
), /mnt,
.
zipl:
zipl -V -t /mnt/ -i /mnt/images/kernel.img -r /mnt/images/initrd.img -p /mnt/images/
generic.prm

zipl.conf , zipl, Linux System z.


, Red Hat Enterprise Linux 6.


, ,
zipl.conf ,
zipl, Linux System z. , Red Hat
Enterprise Linux 6.

237

238

(IPL)
(z/VM LPAR), Red Hat Enterprise Linux.
, Linux, Linux System z.
, Red Hat Enterprise Linux 6.

20.1. z/VM
z/VM :
z/VM;
DASD SCSI FCP, zipl;
DVD SCSI, FCP.
z/VM. Linux
x3270 c3270 ( x3270-text).
3270 HMC IBM System z. Windows,
3270 SSL (. http://www.jollygiant.com).
Windows- c3270 wc3270.

3270
3270 ,
, :
logon here

z/VM.
(, RACF).

CMS , :
#cp ipl cms

CMS (, A c 0191).
, CMS, :
query disk

z/VM,
.
.
512 . :
cp query virtual storage

239

20.
:
osa
OSA (CHPID OSD, (VSWITCH GuestLAN QDIO),
QDIO).
hsi
HiperSockets (CHPID IQD, (GuestLAN Hipers)).
lcs
LCS (CHPID OSE).
, ,
:
cp query virtual osa

DASD (
, ):
cp query virtual dasd

FCP:
cp query virtual fcp

20.1.1. z/VM
z/
VM.
1.

TCP/IP- z/VM CMS.


:
cp link tcpmaint 592 592
acc 592 fm

fm FILEMODE.
2.


ftp

IP- FTP,
kernel.img initrd.img.
3.

( (repl
kernel.img, initrd.img, generic.prm,
redhat.exec):
cd ///_/images/
ascii
get generic.prm (repl
get redhat.exec (repl

240

DASD
locsite fix 80
binary
get kernel.img (repl
get initrd.img (repl
quit

4.

filelist
, , . ,
kernel.img initrd.img (..
Format F, Lrecl 80). :
VMUSER FILELIST A0 V 169 Trunc=169 Size=6 Line=1 Col=1 Alt=0
Cmd Filename Filetype Fm Format Lrecl Records Blocks Date Time
REDHAT EXEC B1 V 22 1 1 4/15/10 9:30:40
GENERIC PRM B1 V 44 1 1 4/15/10 9:30:32
INITRD IMG B1 F 80 118545 2316 4/15/10 9:30:25
KERNEL IMG B1 F 80 74541 912 4/15/10 9:30:17

PF3, filelist CMS.


5.

, redhat.exec, IPL :
redhat

20.1.2. DASD
DASD zipl Red Hat
Enterprise Linux. :
cp ipl _DASD loadparm __

, ,
zipl. :
cp ipl eb1c loadparm 0

20.1.3. SCSI-,
FCP
SCSI-.
1.

SCSI- FCP
Red Hat Enterprise Linux
:
cp set loaddev portname WWPN lun LUN bootprog __

WWPN SCSI-.
16
. :
cp set loaddev portname 50050763 050b073d lun 40204011 00000000 bootprog 0

241

20.
2.

:
query loaddev

3.

IPL FCP, :
cp ipl

:
cp ipl fc00

20.1.4. DVD SCSI, FCP


DVD- SCSI, FCP/SCSI, , ,
FCP System z. z/VM.
1.

DVD Red Hat Enterprise Linux System z .

2.

DVD- FCP 1 :
cp set loaddev portname WWPN lun LUN_FCP bootprog 1

WWPN FCP/SCSI DVD.


16
. :
cp set loaddev portname 20010060 eb1c0103 lun 00010000 00000000 bootprog 1

3.

:
cp query loaddev

4.

IPL FCP:
cp ipl _FCP

:
cp ipl fc00

20.2.
(LPAR) :
FTP-;
DVD- HMC SE;
DASD SCSI FCP, zipl;
DVD SCSI, FCP.

242

FTP
:
1.

HMC (Hardware Master Console) SE (Support Element) c ,



( SYSPROG).

2.

Images .
CPC Recovery.

3.

Operating System Messages,


Linux .
, Linux, Linux System z.
, Red Hat Enterprise Linux 6
HMC ( [SC28-6857]).

20.2.1. FTP
1.

Load from CD-ROM or Server.

2.

FTP Source .
IP- FTP (, ftp.redhat.com),
anonymous, (
). Account , File location
Red Hat Enterprise
Linux System z (, /rhel/s390x/).

3.

4.

generic.ins
.

20.2.2. DVD HMC SE


1.

Load from CD-ROM or Server.

2.

CD/DVD .

3.

generic.ins
.

20.2.3. DASD
1.

Load.

2.

Load type Normal.

3.

Load address DASD.

4.

Load parameter Red Hat Enterprise Linux


zipl.

5.

OK.
243

20.

20.2.4. SCSI-,
FCP
1.

Load.

2.

SCSI Load type.

3.

Load address FCP,


SCSI.

4.

World wide port name WWPN


( 16 ).

5.

Logical unit number ( 16


).

6.

Boot program selector Red Hat


Enterprise Linux zipl.

7.

Boot record logical block address


Operating system specific load parameters.

8.

OK.

20.2.5. DVD SCSI, FCP


DVD- SCSI, FCP/SCSI, , ,
FCP System z.
.
1.

DVD Red Hat Enterprise Linux System z .

2.

Load.

3.

SCSI Load type.

4.

Load address FCP,


FCP/SCSI.

5.

World wide port name WWPN FCP/SCSI


( 16 ).

6.

Logical unit number DVD-


( 16 ).

7.

Boot program selector 1 Red Hat Enterprise


Linux DVD.

8.

Boot record logical block address


Operating system specific load parameters.

9.

OK.

244

linuxrc,
.
generic.prm
. ,
CMS.
OSA z/VM. linuxrc

Starting the zSeries initrd to configure networking. Version is 1.2
Starting udev...

. cio_ignore.
cio_ignore, .
Scanning for available network devices...
Autodetection found 0 devices.
Note: There is a device blacklist active! (Clearing might take long)
c) clear blacklist, m) manual config, r) rescan, s) shell:
c
Clearing device blacklist...
Scanning for available network devices...
Autodetection found 14 devices.
NUM CARD CU CHPID TYPE DRIVER IF DEVICES
1 OSA (QDIO) 1731/01 00 OSD qeth eth 0.0.f500,0.0.f501,0.0.f502
2 OSA (QDIO) 1731/01 01 OSD qeth eth 0.0.f503,0.0.f504,0.0.f505
3 OSA (QDIO) 1731/01 02 OSD qeth eth 0.0.1010,0.0.1011,0.0.1012
4 HiperSockets 1731/05 03 IQD qeth hsi 0.0.1013,0.0.1014,0.0.1015
5 OSA (QDIO) 1731/01 04 OSD qeth eth 0.0.1017,0.0.1018,0.0.1019
6 CTC adapter 3088/08 12 ? ctcm ctc 0.0.1000,0.0.1001
7 escon channel 3088/1f 12 ? ctcm ctc 0.0.1002,0.0.1003
8 ficon channel 3088/1e 12 ? ctcm ctc 0.0.1004,0.0.1005
9 OSA (QDIO) 1731/01 76 OSD qeth eth 0.0.f5f0,0.0.f5f1,0.0.f5f2
10 LCS OSA 3088/60 8a OSE lcs eth 0.0.1240,0.0.1241
11 HiperSockets 1731/05 fb IQD qeth hsi 0.0.8024,0.0.8025,0.0.8026
12 HiperSockets 1731/05 fc IQD qeth hsi 0.0.8124,0.0.8125,0.0.8126
13 HiperSockets 1731/05 fd IQD qeth hsi 0.0.8224,0.0.8225,0.0.8226
14 HiperSockets 1731/05 fe IQD qeth hsi 0.0.8324,0.0.8325,0.0.8326
<num>) use config, m) manual config, r) rescan, s) shell:

( 9).
. m,
(qeth), , , OSA. Enter,
. z/VM Enter
.
m
* NOTE: To enter default or empty values press enter twice. *

Network type (qeth, lcs, ctc, ? for help). Default is qeth:


qeth

245

21. .

Read,write,data channel (e.g. 0.0.0300,0.0.0301,0.0.0302 or ? for help).


0.0.f5f0,0.0.f5f1,0.0.f5f2
Portname (1..8 characters, or ? for help). Default is no portname:

Relative port number for OSA (0, 1, or ? for help). Default is 0:

Layer mode (0 for layer3, 1 for layer2, or ? for help). Default is 1:


Activating network device...
Detected: OSA card in OSD mode, Gigabit Ethernet
Unique MAC address (e.g. 02:00:00:00:00:00, ? for help). Default is 02:00:00:AB:C9:81:

:
Hostname of your new Linux guest (FQDN e.g. s390.redhat.com or ? for help):
host.subdomain.domain
IPv4 address / IPv6 addr. (e.g. 10.0.0.2 / 2001:0DB8:: or ? for help)
10.0.0.42
IPv4 netmask or CIDR prefix (e.g. 255.255.255.0 or 1..32 or ? for help). Default is
255.0.0.0:
24
IPv4 address of your default gateway or ? for help:
10.0.0.1
Trying to reach gateway 10.0.0.1...
IPv4 addresses of DNS servers (separated by colons ':' or ? for help):
10.1.2.3:10.3.2.1
Trying to reach DNS servers...
DNS search domains (separated by colons ':' or ? for help):
subdomain.domain:domain
DASD range (e.g. 200-203,205 or ? for help). Default is autoprobing:
eb1c
Activated DASDs:
0.0.eb1c(ECKD) dasda : active, blocksize: 4096, 1803060 blocks, 7043 MB

DASD
, DASD. SCSI none.
DASD, SCSI.
none :
Incorrect format for lower bound of DASD range none: none

, .

, :
Incorrect ... (<>):

246

0) redo this parameter, 1) continue, 2) restart dialog, 3) halt, 4) shell

:
Network type
0) default is previous "qeth", 1) new value, ?) help

:
Initial configuration completed.
c) continue, p) parm file/configuration, n) network state, r) restart, s) shell

n, :
n
eth0 Link encap:Ethernet HWaddr 02:00:00:AB:C9:81
inet addr:10.0.0.42 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1
RX packets:64 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3334 (3.2 KiB) TX bytes:336 (336.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 lo
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 eth0
c) continue, p) parm file/configuration, n) network state, r) restart, s) shell

, r .
, p. ,
.
p
NETTYPE=qeth
IPADDR=10.0.0.42
NETMASK=255.255.255.0
GATEWAY=10.0.0.1
HOSTNAME=host.subdomain.domain
SUBCHANNELS=0.0.f5f0,0.0.f5f1,0.0.f5f2
LAYER2=1
MACADDR=02:00:00:AB:C9:81
PORTNAME=OSAPORT
DNS=10.1.2.3:10.3.2.1
SEARCHDNS=subdomain.domain:domain
DASD=eb1c
c) continue, p) parm file/configuration, n) network state, r) restart, s) shell

247

21. .
, r. , c.
c
Starting sshd to allow login over the network.
Connect now to 10.0.0.42 and log in as user install to start the installation.
E.g. using: ssh -x install@10.0.0.42
You may log in as the root user to start an interactive shell.

SSH.
Linux SSH.
RUNKS=1, linuxrc .

21.1.

Operating System Messages LPAR 3270 z/VM.
Linuxrc , Enter
( z/VM ). (, vi)
, (ed, ex, sed).
, Ctrl+C
. , .
3270 ( ).
,
, , .
root
. ssh.

248

.

.
generic.prm
.
ssh :
Welcome to the anaconda install environment 1.2 for zSeries

22.1.
(. 26.6, ) (.
32.3, ) cmdline,
.
, .

22.2.
anaconda ,
(), (. 22.1,
URL 22.2,
).

22.1. URL

249

22. .

22.2.
(. 22.1,
URL 22.2, ):
.
, .
, , ,
.
- .
* () ( ).
, .
, .
,
.
, .
, . ,
, ;

. #,
.
;
, .
.
.
, Tab Enter.
, .
,
.
,
. 22.1, URL
250


OK, 22.2,
.

22.2.1.
.
, , .
Tab Alt-Tab .
, .
, (, Tab)
Enter. ,
Enter. ,
. .
F12, .
OK.

, -
, .

22.3.
(. 22.3,
), Tab OK Enter, .
lang= ( 26.5,
) lang (. 28.4,
).
.
.

.
(. 23.17.2,
).

251

22. .

22.3.
, .

22.4.
(. 22.4, ),
Tab OK Enter, .

22.4.

22.4.1. DVD
DVD, DVD- (.
20.1.4, DVD SCSI, FCP 20.2.5,
DVD SCSI, FCP).
DVD,
SCSI.
252


.
(. 9.15, ).

DVD , .
,
. - ,
- .
(. 23.5, ).

22.4.2.
(
).
, Red Hat Enterprise Linux.
repo=hd.

22.5.
ISO. DASD /dev/dasd.
, /dev/dasda /dev/sda,
, /dev/dasda1 /dev/sda1.
LUN FCP IPL LUN FCP
( linuxrc) ,
ISO (. 25.2.1, LUN FCP).
, .
:
253

22. .
22.1.

ext2, ext3, ext4

/home

/home/user1/RHEL6

/user1/RHEL6

ISO ( ) , /.
, .
, c /home/, /home/
new/, /new/.

/
/ .

OK (. 23, . Anaconda).

22.4.3.
. ,
System z ,
.
.
22.4.4, NFS c
NFS.
22.4.5, FTP HTTP
c FTP HTTP.

22.4.4. NFS
NFS , NFS.
repo=nfs.
IP NFS-. ,
eastcoast example.com, eastcoast.example.com
NFS-.
. (. 19.1.2,
NFS-), ////.
NFS.
Red Hat Enterprise Linux
mount nfs.
NFS- Red Hat Enterprise Linux,
, . ,
.
, Red Hat
Enterprise Linux.

254

FTP HTTP

22.6. NFS
NFS- ISO- DVD Red Hat Enterprise Linux,
.
23, . Anaconda .

22.4.5. FTP HTTP

http:// ftp://.

URL ,
HTTP FTP, Red Hat Enterprise Linux.
repo=ftp repo=http.
IP- FTP/HTTP, ,
, /images . :
/mirrors/redhat/rhel-6/Server/s390x/
- , , , .
,
.
,
:
{ftp|http}://<>:<>@<>[:<>]/<>/
:
http://install:rhel6pw@name.example.com/mirrors/redhat/rhel-6/Server/s390x/

255

22. .

22.7. URL
23, . Anaconda .

22.5.
.
, .
, .
.
DVD .

22.6.

RAM-. .

22.8.

256

. Anaconda

anaconda.

23.1.
(. 32, -)
(. 26.6, ) cmdline, anaconda
.
,
.

23.2.
,
. , ,
.
:
LUN FCP;
(LVM, RAID, FCoE, zFCP, iSCSI);
;
;
;
Firstboot.

23.3.
(GUI, Graphical User Interface)
, , , , ,
.
. ,
Tab ,
, + - , Enter
. Alt+X (X ,
) .

23.4.
ssh X11,
anaconda .
display= X11,
VNC.

257

23. . Anaconda

23.1. VNC
VNC , VNC.

23.2. VNC
IP- z/VM
VNC. .

23.5.
,
Red Hat Enterprise Linux 6.

258

23.6.
Red Hat Enterprise Linux . System z
.

259

23. . Anaconda

23.3.

System z.

Red Hat Enterprise Linux :
(DASD, Direct Access Storage Devices);
, LUN SCSI,
FCP;
(SAN, Storage Area Networks), LUN
SCSI, FCP .
, iSCSI
(Internet Small Computer System Interface) FCoE (Fiber Channel over Ethernet).

23.6.1.
anaconda .
:

, . System z
DASD.
RAID
, RAID-.
System z.

260



,
SCSI- Fibre Channel.
SAN
. , LUN FCP,
.

23.4. . .

23.5. . .
261

23. . Anaconda

23.6. . SAN.
,
WWID (World Wide Identifier), , LUN (Logical
Unit Number).

23.7.
, (,
, LUN, WWID) .
anaconda
, .
,
. ,
WWID, , , , .

23.8.
. ,
, ,
262


.
Red Hat Enterprise Linux
.
, .
. ,
,
, /etc/fstab.
, . 23.7,
.

23.6.1.1. DASD
DASD ;
.
DASD, linuxrc ,
, .

23.9. DASD
zerombr
DASD (. 32, -).

23.6.1.2.
iSCSI (. B, iSCSI) LUN FCP.

263

23. . Anaconda

23.10.

23.6.1.2.1. iSCSI
ISCSI , ISCSI
. IP ISCSI
. ISCSI CHAP
(Challenge Handshake Authentication Protocol), CHAP.
( ) CHAP
. , .

23.11. ISCSI
, ,
. ISCSI
.

264

23.6.1.2.2. FCP
FCP IBM System z SCSI
DASD. , DASD,
LUN (Logical Unit Number) SCSI .
IBM System z FCP.
, CMS
. .

FCP .
,
.
.

, .
SCSI- FCP, LUN FCP
. 16- , 64- WWPN (World Wide
Port Number) 64- LUN.
FCP.

23.12. FCP
LUN,
.
SAN.

265

23. . Anaconda

DASD
Anaconda , DASD.
SCSI none
DASD=none CMS.
Anaconda,
SCSI.
DASD none :
Incorrect format for lower bound of DASD range none: none

,
.

23.7.

., _.
DHCP (Dynamic Host Configuration Protocol)
.
.


. ,
.

localhost.localdomain .

266

23.13.

23.7.1.

,
.
system-config-network .
root,
root.
. Red Hat Enterprise Linux 6,
NetworkManager.

,
. System z ,
,
. ,
.

267

23. . Anaconda

23.14.
System z .
, ,
eth0 (OSA, LCS) hsi0 (HiperSockets). ,
. ,
. , .
IPv4 System z.
, .
.

23.7.1.1.
.
.
.
.

23.7.1.2.
MAC-
( ) .

268

23.15.

23.7.1.3. 802.1x
802.1x
. 802.1X
. :

:
TLS (Transport Layer Security);
TLS (TTLS EAP-TTLS);

269

23. . Anaconda
EAP (PEAP) (Protected Extensible Authentication Protocol).

.

X.509, DER (Distinguished
Encoding Rules) PEM (Privacy Enhanced Mail).
CA
CA, DER (Distinguished
Encoding Rules) PEM (Privacy Enhanced Mail).

, DER (Distinguished
Encoding Rules), PEM (Privacy Enhanced Mail) PKCS#12 (Personal Information Exchange
Syntax Standard).

, . ,
.

270

23.16. 802.1x

23.7.1.4. IPv4
IPv4 .
, , , DNS DNS IPv4

: IPADDR, NETMASK, GATEWAY, DNS, SEARCHDNS (.
26.3, ).
, DHCP.

271

23. . Anaconda
(DHCP)
IPv4 DHCP.
(DHCP)
IPv4, DHCP,
.

IPv4 .
Link-Local
169.254/16.

.
10.42.x.1/24. DHCP DNS
, NAT (Network Address Translation)
.

IPv4 .
, ,
IP- , .
. DNS ,
, ,
.
ID DHCP.
.
IPv4 ,
IPv6. , IPv4 ,
IPv6 .

272

23.17. IPv4

23.7.1.4.1. IPv4
Red Hat Enterprise Linux IP-
. , .

273

23. . Anaconda

23.18. IPv4
, IP-, ,
.
,
.
,
.

23.7.1.5. IPv6
IPv6 IPv6 .
, DHCP.

IPv6 .

IPv6 DHCP.
,
IPv6, DHCP, DNS
.

IPv6 .
Link-Local
fe80::/10.
, ,
IP- , .
. DNS ,
274


, ,
.
ID DHCP.
.
IPv6 ,
IPv4. , IPv6 ,
IPv4 .

23.19. IPv6

23.7.1.5.1. IPv6
Red Hat Enterprise Linux IP- .
, .
275

23. . Anaconda

23.20. IPv6
, IP-, ,
.
,
.

23.8.
, .
.
, NTP .
:
, , ;
X .
.

276

root

23.21.
UTC. Red Hat Enterprise Linux
UTC.
UNIX Linux.
.

,
.
system-config-date .
root,
root.
, timeconfig.

23.9. root
root
. root Microsoft Windows
, .
root .

277

23. . Anaconda

root ( )
; root
.

23.22. root
root ,
. - ,
su root.
- .

root, su - Enter.
root Enter.

root .
root.

root Red Hat Enterprise Linux.


root . root
, ,
.

278


root 6 ,
. ; ,
.
, ,
. , , qwerty, password, root, 123456
.
(: Aard387vark
420BMttNT). , . ,
, .

, ,
.

root ,
root.
system-config-users.
root, root.
root.
. . ,
.

23.10.
(. 23.6,
), anaconda ,
,
.

.

279

23. . Anaconda

23.23.
: ,
, ,
.
, ,
. ,
.

.
.
System z,
, zipl ,
/boot.
, .

23.11.
,
. ,
.
, .
, , ,

.

280

23.24. DASD

23.25. LUN FCP

281

23. . Anaconda
, RAID
.

clearpart --initlabel (. 32, -).



: ,
.

23.12.

Anaconda Red Hat Enterprise Linux 6,
Red Hat Red
Hat Enterprise Linux ( , Red Hat
Enterprise Linux 4 Red Hat Enterprise Linux 5).
,
. , Red Hat
.

Red Hat Enterprise Linux .


,
. .
, ,
. ,
.
,
.


, Red Hat Enterprise
Linux, . , .

23.12.1.

Red Hat /home


(. 9.12, ).
282


, ,
, Red Hat Enterprise Linux,
. , :
rpm -qa --qf '%{} %{}-%{} %{} ' > ~/old-pkglist.txt

,
.
:
su -c 'tar czf /tmp/etc-`date +%F`.tar.gz /etc'
su -c 'mv /tmp/etc-*.tar.gz /home'

, /home,
Apache, FTP, SQL .
, .


, /
home. ,
(D/DVD ).

35.2,
.

23.13.

. ,
,
. ,
.



, . ,
Linux,
. VNC.
, ,
LVM .

283

23. . Anaconda
;
. ,

(, /home,
).

23.26.

.
.
,
, .
.
:

( ,
, z/VM z/OS).

Linux
Linux (
Linux). ( z/VM z/OS) .
284



,
Red Hat Enterprise Linux,
.

,
, . ,
.
, , ,
.


. ,
Red Hat Enterprise Linux
(. 18.1, ).

, (. 23.15,
).
.
/boot (.
C, ).
, ,
. ,
. , .
.

23.14.
, .
LUKS (Linux Unified Key Setup).
C, .

23.27.
285

23. . Anaconda
, , .
.



. .
- ,
(. C.3.2, , C.3.3,
).

23.15.

23.16, ,
,
.
, ,
Red Hat Enterprise Linux.
, .
, , A,
23.15.5, .
.
Anaconda .

23.28. System z
286


.
DASD, LUN FCP , .
(, /dev/dasda), ( ,
) , .

. ,
.
DASD, LUN FCP ,
(. 23.10, ).
, CMSDASD, DASD
dasdb, dasda CMSDASD.
. ,
.
:

, .
(M)
, .
./RAID/
( , ),
RAID , .

.
(, ext4). ,
(LVM) RAID.

, .
, , , .

:

, RAID

, RAID

, RAID


, , /boot,
.
287

23. . Anaconda
DASD LUN SCSI.
IPL- .



, System z.
DASD,
SCSI, FCP.

23.15.1.
,
RAID.
.

23.29.
, RAID, LVM
:

23.15.2,
.
(. A,
) .
288


RAID
System z RAID ,
RAID-.
23.15.3, RAID .
RAID ,
RAID.
RAID.
RAID RAID RAID.
RAID.
RAID RAID .
RAID.
LVM
23.15.4, LVM .
LVM .
LVM .
.
LVM .
.

23.15.2.
, (. 23.30,
).

. A,
.

289

23. . Anaconda

23.30.
: . ,
/, /boot /boot ..
. ,
.
: (. 9.14.2.1,
).
: . ,
. , .
, anaconda
.
(M): .
200 ; , 200 .
: ,
,
.
(),
.
.

290


: ,
. ,
(. A.1.3, ).
: .
.
. C,
.
OK: , O .
: .

23.15.2.1.
Red Hat Enterprise Linux .
.

,
RAID-
LVM.
swap .
(swap), .
Red Hat
Enterprise Linux.
RAID RAID- RAID. RAID
RAID Red Hat Enterprise Linux.
(LVM) (LVM),
LVM. LVM
. LVM
Red Hat Enterprise Linux.

ext4 ext3 ,
,
, ,
. ext4
, .
ext3 ext2
.
2
, fsck .
ext2 Unix ( , ,
..) 255 .
xfs ,
16 (~16
), 8 (~8 )
. XFS ,

291

23. . Anaconda
,
.

XFS System z
Red Hat Enterprise Linux 6 XFS System z.

vfat Linux, FAT


Microsoft Windows.
Btrfs ,
, ext2, ext3 ext4.
. Btrfs
,
,
.
Btrfs ,
. Btrfs,
btrfs (. 28, ).

Btrfs
Red Hat Enterprise Linux 6 Btrfs.
Btrfs , , ,
.

23.15.3. RAID
System z RAID-
System z RAID ,
RAID-.

RAID- (Redundant
Arrays of Independent Disks)
,
. Red Hat Enterprise Linux
RAID-.
RAID-, RAID.
, RAID RAID-.
RAID
, RAID-.
292 , .

RAID
(. 23.15.2, ).
, RAID.

23.31. RAID-
RAID
RAID
RAID. ,
RAID.

293

23. . Anaconda

23.32. RAID
.
Anaconda RAID,
, md0 md15.
,
RAID.
RAID RAID
:
RAID 0 . RAID 0


. , RAID 0 . ,
. RAID 0
RAID.
RAID 1
.
. RAID 1 RAID.
RAID 4 ,
.
- .
,
.
RAID 4 RAID.
RAID 5
. RAID 5
RAID 4, RAID 5
. RAID 5
RAID.
RAID 6 RAID 5,
. RAID 5
RAID.
294

LVM
RAID 10 ( RAID RAID)
. , , RAID 10 RAID
, .
RAID 0.
RAID 10 RAID.
RAID
RAID- .
.

23.33. RAID

23.15.4. LVM
LVM
LVM .
LVM, root SSH
lvm.

LVM (Logical Volume Management)


, LUN.
,
. , ,
295

23. . Anaconda
. ,
LVM ,
.
LVM Red Hat
Enterprise Linux. , LVM
.
LVM
, LVM .
, LVM.
(. 23.15.2,
). ,
(LVM).

23.34. LVM
LVM
, LVM
.

296

LVM

23.35. LVM
,
, ,
, .
,
. , , ,
5
8 .
, 5
8 . , , 4
, .

, LVM. ,
.
, .

297

23. . Anaconda

23.36.

23.15.5.
System z
,
.
:
7. Linux IBM Redbook Linux IBM System z:
[IBM Form Number SG24-6926-01], [ISBN 0738485586]
http://www.redbooks.ibm.com/abstracts/sg246926.html
Linux System z IBM
http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/liaag/
lcon_Linux_on_System_z_performance.htm
Linux http://www.vm.ibm.com/perf/tips/
linuxper.html

23.16.
.
.

23.37.
, , .

298


.

Red Hat Enterprise Linux.
.
, .
, .
.
(, ),
,
Red Hat Enterprise Linux .

23.17.
.
, ,
Red Hat Enterprise Linux .
Red Hat Enterprise Linux.


.
.
.

299

23. . Anaconda

23.38.
Red Hat Enterprise Linux ,
. , .

:

Red Hat Enterprise Linux.

MySQL PostgreSQL.
-
- Apache.

OpenOffice.org,
( GIMP) .

Red Hat
Enterprise Linux.

Red Hat Enterprise Linux.



.

300


, (.
23.18, ).
(. 23.38,
).
, .
, .

23.17.1.

. ,
. Red Hat Enterprise Linux
.
.
:
ClusteredStorage
Red Hat.
HighAvailability
( ).
LoadBalance
Linux.
Red Hat Enterprise Linux 6
Red Hat Enterprise Linux 6.
Cluster Suite Red Hat Enterprise Linux 6 (https://access.redhat.com/knowledge/
docs/manuals/) .

23.39.
,
.
301

23. . Anaconda
,
.



(, DVD) .


, URL.
URL , repodata.

. .



, .
.

23.17.2.

Red Hat Enterprise Linux ,
. ,
.

31-
IBM System z,
31- ,
.

, .
, . ,
.

302

23.40.
Red Hat Enterprise Linux
. .
,
(, X Window ), ,
.
, .
.
, .
. ,
.
, Red Hat Enterprise Linux
.
.
,
.

303

23. . Anaconda

23.41.
.
, .
.
.
,
/ .
Red Hat Enterprise Linux
.

23.17.2.1.
Red Hat Enterprise Linux :
syslog
SMTP (Simple Mail Transfer Protocol)
NFS (Network File System)
SSH (Secure SHell)
mDNS (multicast DNS)
:
HTTP (HyperText Transfer Protocol)
CUPS (Common UNIX Printing System)
VNC (Virtual Network Computing)
Red Hat Enterprise Linux
.
, .
Red Hat Enterprise Linux NFS, HTTP VNC,
.
Red Hat Enterprise Linux ,
, , ,
. SSH Red Hat Enterprise Linux .
, , NFS
NFS.
304

23.18.
.
.

.

23.42.

:

23.43.

23.19.
! Red Hat Enterprise Linux .
.
.
,
, IPL-.
. IPL- DASD LUN
SCSI, /boot.

23.19.1. z/VM
DASD 200 3270:
#cp i 200

DASD (
), DASD, /boot.
/boot LUN FCP, WWPN LUN .
305

23. . Anaconda
IPL- FCP , :
1.

. , WWPN 0x50050763050B073D, LUN


FCP 0x4020400100000000, :
#cp set loaddev portname50050763 050B073D lun 40204001 00000000

2.

FCP. , FC00 :
#cp ipl FC00

3270 Linux
#cp disconnect #cp logoff.
CP
READ. , BEGIN.

23.19.2. LPAR
HMC,
DASD FCP, WWPN LUN FCP, /boot.

23.19.3.
Red Hat Enterprise Linux
ssh. ,
root 3270 ,
/etc/securetty.
Red Hat Enterprise Linux 5 ( )
FirstBoot, .
, , Red Hat Network
. FirstBoot ,
Red Hat Enterprise Linux.

306

24. IBM System

IBM System z
.
anaconda /tmp. :
/tmp/anaconda.log
anaconda
/tmp/program.log
, anaconda
/tmp/storage.log

/tmp/yum.log
yum
/tmp/anacdump.txt.
RAM- .
scp.

24.1. Red Hat Enterprise Linux


24.1.1. Signal 11
signal 11, , ,
.
signal 11 , ,
.
Red Hat. .

24.2.
24.2.1. Red Hat
Enterprise Linux
, , Red Hat
Enterprise Linux, DASD.
DASD=<> CMS (
DASD, ). .
dasdfmt Linux root DASD
CMS. Anaconda
.

24.2.2.
anaconda ,
:
307

24. IBM System z

24.1.

308

24.2.

309

24. IBM System z


, :

.

24.3.
Bugzilla
Bugzilla.
Bugzilla. .

24.4. Bugzilla

scp.
, , .

24.5.

310

24.2.3.
,
, , .
:
/
<swap>

; anaconda .

24.2.4. Python
Red Hat Enterprise Linux
Python .
/tmp/
:

Traceback (innermost last):


File "/var/tmp/anaconda-7.1//usr/lib/anaconda/iw/progress_gui.py", line 20, in run
rc = self.todo.doInstall ()
File "/var/tmp/anaconda-7.1//usr/lib/anaconda/todo.py", line 1468, in doInstall
self.fstab.savePartitions ()
File "fstab.py", line 221, in savePartitions
sys.exit(0)
SystemExit: 0
Local variables in innermost frame:
self: <fstab.GuiFstab instance at 8446fe0>
sys: <module 'sys' (built-in)>
ToDo object: (itodo ToDo p1 (dp2 S'method' p3 (iimage CdromInstallMethod
p4 (dp5 S'progressWindow' p6
<failed>

, /tmp/
. ,
.
,
anaconda,
:

http://fedoraproject.org/wiki/Anaconda/Updates/ru

Red Hat naconda.


https://access.redhat.com/login
. anaconda
.
, anaconda:
1

https://fedoraproject.org/wiki/Anaconda/Updates/ru

311

24. IBM System z

http://fedoraproject.org/wiki/Anaconda

. Red Hat
Bugzilla

http://bugzilla.redhat.com/bugzilla/

, - ,
:

http://www.redhat.com/apps/activate/

24.3.
24.3.1. XDMCP
X Window Red Hat Enterprise Linux,
, XDMCP (X Display Manager Control
Protocol),
X Window (, X11).
XDMCP /etc/
gdm/custom.conf Red Hat Enterprise Linux vi nano.
Enable=true, . 5
X11:
/sbin/init 5

X11:
X :1 -query s390vm.example.com

X11 XDMCP (
s390vm.example.com X-)
:1 X11,
, Ctrl-Alt-F8.

X11, X11.
Xnest
X11. , , s390vm.example.com
X11:
Xnest :1 -query s390vm.example.com

24.3.2.
firstboot,
, Ctrl+Alt+F2, root.
312


root, , single
.
#, passwd
root . shutdown -r now
.
, root .
su -, root.
passwd <_> .
, .
:

http://hardware.redhat.com/hcl/

24.3.3.
, ,
.
system-config-printer .
root, root.

24.3.4. httpd Sendmail


Apache- httpd Sendmail , /
etc/hosts
127.0.0.1

localhost.localdomain

localhost

313

314

25. System


System z
27, IBM System z Linux
System z. .

25.1. DASD
DASD .

z/VM , Linux.
CP ATTACH EB1C TO *

:
CP LINK RHEL6X 4B2E 4B2E MR
DASD 4B2E LINKED R/W

z/VM (SC24-6175).

25.1.1. DASD
DASD :
1.

cio_ignore DASD
Linux:
# cio_ignore -r

DASD. :
# cio_ignore -r 4b2e

2.

, :
# chccwdev -e

DASD. :
# chccwdev -e 4b2e

sysfs:
1.

/sys/:
# cd /sys/bus/ccw/drivers/dasd-eckd/0.0.4b2e/

315

25. System z
# ls -l
total 0
-r--r--r--rw-r--r--r--r--r--rw-r--r--r--r--r--r--r--r--rw-r--r--rw-r--r--rw-r--r--

2.

1
1
1
1
1
1
1
1
1

root
root
root
root
root
root
root
root
root

root
root
root
root
root
root
root
root
root

4096
4096
4096
4096
4096
4096
4096
4096
4096

Aug
Aug
Aug
Aug
Aug
Aug
Aug
Aug
Aug

25
25
25
25
25
25
25
25
25

17:04
17:04
17:04
17:04
17:04
17:04
17:04
17:04
17:04

availability
cmb_enable
cutype
detach_state
devtype
discipline
online
readonly
use_diag

, :
# cat online
0

3.

,
# echo 1 > online
# cat online
1

3.

:
# ls -l
total 0
-r--r--r-lrwxrwxrwx
-rw-r--r--r--r--r--rw-r--r--r--r--r--r--r--r--rw-r--r--rw-r--r--rw-r--r--

1
1
1
1
1
1
1
1
1
1

root
root
root
root
root
root
root
root
root
root

root
root
root
root
root
root
root
root
root
root

4096
0
4096
4096
4096
4096
4096
0
4096
4096

Aug
Aug
Aug
Aug
Aug
Aug
Aug
Aug
Aug
Aug

25
25
25
25
25
25
25
25
25
25

17:04
17:07
17:04
17:04
17:04
17:04
17:04
17:04
17:04
17:04

availability
block -> ../../../../block/dasdb
cmb_enable
cutype
detach_state
devtype
discipline
online
readonly
use_diag

4B2E /dev/dasdb.
DASD , . 25.1.3,
DASD ,
DASD .
/dev/disk/by-path/.
, DASD, Linux
System z. , Red Hat Enterprise Linux 6.

25.1.2. DASD

, /root :
# cd
# dasdfmt -b 4096 -d cdl -p /dev/disk/by-path/ccw-0.0.4b2e
Drive Geometry: 10017 Cylinders * 15 Heads = 150255 Tracks
I am going to format the device /dev/disk/by-path/ccw-0.0.4b2e in the following way:
Device number of device : 0x4b2e

316

DASD
Labelling device
Disk label
Disk identifier
Extent start (trk no)
Extent end (trk no)
Compatible Disk Layout
Blocksize

:
:
:
:
:
:
:

yes
VOL1
0X4B2E
0
150254
yes
4096

--->> ATTENTION! <<--All data of that device will be lost.


Type "yes" to continue, no will leave the disk untouched: yes
cyl
97 of 3338 |#----------------------------------------------|

2%

, fdasd :
Rereading the partition table...
Exiting...

DASD fdasd ( ).
, :
# fdasd -a /dev/disk/by-path/ccw-0.0.4b2e
auto-creating one partition for the whole disk...
writing volume label...
writing VTOC...
checking !
wrote NATIVE!
rereading partition table...

, DASD, Linux
System z. , Red Hat Enterprise Linux 6.

Linux: , LVM,
(, /dev/disk/by-path/ccw-0.0.4b2e-part1). dev/dasdb
dasdfmt fdasd.
, ( ),
.
/dev/disk/by-path/
/etc/fstab.

25.1.3. DASD
DASD
, .
DASD .

initramfs.
.
cio_ignore ,
.

25.1.3.1. DASD
/etc/zipl.conf zipl.
initramfs .
317

25. System z
DASD :
rd_DASD=
rd_DASD_MOD=
.
dasd= , DASD, Linux System z. ,
Red Hat Enterprise Linux 6.
rd_DASD (
, sysfs).
zipl.conf
DASD, vg_devel1,
lv_root .
[defaultboot]
default=linux
target=/boot/
[linux]
image=/boot/vmlinuz-2.6.32-19.el6.s390x
ramdisk=/boot/initramfs-2.6.32-19.el6.s390x.img
parameters="root=/dev/mapper/vg_devel1-lv_root
rd_DASD=0.0.0200,use_diag=0,readonly=0,erplog=0,failfast=0
rd_DASD=0.0.0207,use_diag=0,readonly=0,erplog=0,failfast=0 rd_LVM_LV=vg_devel1/lv_root
rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us
cio_ignore=all,!0.0.0009"

,
DASD 0.0.202b.
rd_DASD=0.0.202b zipl.conf:
[defaultboot]
default=linux
target=/boot/
[linux]
image=/boot/vmlinuz-2.6.32-19.el6.s390x
ramdisk=/boot/initramfs-2.6.32-19.el6.s390x.img
parameters="root=/dev/mapper/vg_devel1-lv_root
rd_DASD=0.0.0200,use_diag=0,readonly=0,erplog=0,failfast=0
rd_DASD=0.0.0207,use_diag=0,readonly=0,erplog=0,failfast=0 rd_DASD=0.0.202b
rd_LVM_LV=vg_devel1/lv_root rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8
SYSFONT=latarcyrheb-sun16 KEYTABLE=us cio_ignore=all,!0.0.0009"

zipl /etc/zipl.conf:
# zipl -V
Using config file '/etc/zipl.conf'
Target device information
Device..........................:
Partition.......................:
Device name.....................:
DASD device number..............:
Type............................:
Disk layout.....................:
Geometry - heads................:
Geometry - sectors..............:
Geometry - cylinders............:
Geometry - start................:
File system block size..........:

318

5e:00
5e:01
dasda
0201
disk partition
ECKD/compatible disk layout
15
12
3308
24
4096

DASD
Physical block size.............: 4096
Device size in physical blocks..: 595416
Building bootmap in '/boot/'
Building menu 'rh-automatic-menu'
Adding #1: IPL section 'linux' (default)
kernel image......: /boot/vmlinuz-2.6.32-19.el6.s390x
kernel parmline...: 'root=/dev/mapper/vg_devel1-lv_root
rd_DASD=0.0.0200,use_diag=0,readonly=0,erplog=0,failfast=0
rd_DASD=0.0.0207,use_diag=0,readonly=0,erplog=0,failfast=0 rd_DASD=0.0.202b
rd_LVM_LV=vg_devel1/lv_root rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8
SYSFONT=latarcyrheb-sun16 KEYTABLE=us cio_ignore=all,!0.0.0009'
initial ramdisk...: /boot/initramfs-2.6.32-19.el6.s390x.img
component address:
kernel image....: 0x00010000-0x00a70fff
parmline........: 0x00001000-0x00001fff
initial ramdisk.: 0x02000000-0x022d2fff
internal loader.: 0x0000a000-0x0000afff
Preparing boot device: dasda (0201).
Preparing boot menu
Interactive prompt......: enabled
Menu timeout............: 15 seconds
Default configuration...: 'linux'
Syncing disks...
Done.

25.1.3.2. DASD
DASD ,
, /
etc/dasd.conf. DASD
, =,
.
sysfs, .
DASD /etc/
dasd.conf. DASD.
/etc/dasd.conf:
0.0.0207
0.0.0200 use_diag=1 readonly=1

/etc/dasd.conf
DASD ( DASD z/VM). , /
etc/dasd.conf DASD, .
.
1.

cio_ignore DASD
Linux:
# cio_ignore -r

:
# cio_ignore -r 021a

2.

, uevent:
319

25. System z

echo add > /sys/bus/ccw/devices/ID_/uevent

:
echo add > /sys/bus/ccw/devices/0.0.021a/uevent

25.2. LUN FCP


LUN FCP.

z/VM , FCP .
FCP
. :
CP ATTACH FC00 TO *
CP ATTACH FCD0 TO *

25.2.1. LUN FCP


:
1.

cio_ignore FCP
Linux:
# cio_ignore -r

FCP. :
2.

, :
# chccwdev -e fc00

3.

, WWPN :
# ls -l /sys/bus/ccw/drivers/zfcp/0.0.fc00/
drwxr-xr-x. 3 root root
0 Apr 28 18:19 0x500507630040710b
drwxr-xr-x. 3 root root
0 Apr 28 18:19 0x50050763050b073d
drwxr-xr-x. 3 root root
0 Apr 28 18:19 0x500507630e060521
drwxr-xr-x. 3 root root
0 Apr 28 18:19 0x500507630e860521
-r--r--r--. 1 root root 4096 Apr 28 18:17 availability
-r--r--r--. 1 root root 4096 Apr 28 18:19 card_version
-rw-r--r--. 1 root root 4096 Apr 28 18:17 cmb_enable
-r--r--r--. 1 root root 4096 Apr 28 18:17 cutype
-r--r--r--. 1 root root 4096 Apr 28 18:17 devtype
lrwxrwxrwx. 1 root root
0 Apr 28 18:17 driver -> ../../../../bus/ccw/drivers/zfcp
-rw-r--r--. 1 root root 4096 Apr 28 18:17 failed
-r--r--r--. 1 root root 4096 Apr 28 18:19 hardware_version
drwxr-xr-x. 35 root root
0 Apr 28 18:17 host0
-r--r--r--. 1 root root 4096 Apr 28 18:17 in_recovery
-r--r--r--. 1 root root 4096 Apr 28 18:19 lic_version
-r--r--r--. 1 root root 4096 Apr 28 18:17 modalias

320

LUN FCP
-rw-r--r--.
-r--r--r--.
-r--r--r--.
-r--r--r--.
--w-------.
--w-------.
drwxr-xr-x.
-r--r--r--.
lrwxrwxrwx.
-rw-r--r--.

4.

1
1
1
1
1
1
2
1
1
1

root
root
root
root
root
root
root
root
root
root

root
root
root
root
root
root
root
root
root
root

4096
4096
4096
4096
4096
4096
0
4096
0
4096

Apr
Apr
Apr
Apr
Apr
Apr
Apr
Apr
Apr
Apr

28
28
28
28
28
28
28
28
28
28

18:17
18:19
18:19
18:19
18:19
18:19
18:19
18:19
18:17
18:17

online
peer_d_id
peer_wwnn
peer_wwpn
port_remove
port_rescan
power
status
subsystem ->
uevent

../../../../bus/ccw

LUN FCP, ,
:
# echo 0x4020400100000000 > /sys/bus/ccw/drivers/zfcp/0.0.fc00/0x50050763050b073d/
unit_add

5.

SCSI:
# lszfcp -DV
/sys/devices/css0/0.0.0015/0.0.fc00/0x50050763050b073d/0x4020400100000000
/sys/bus/ccw/drivers/zfcp/0.0.fc00/host0/rport-0:0-21/target0:0:21/0:0:21:1089355792

, SCSI, Linux System


z. , Red Hat Enterprise Linux 6.

25.2.2. LUN FCP


LUN FCP
, .
FCP LUN
.
initramfs.
. cio_ignore ,
.

25.2.2.1. LUN FCP


/etc/zipl.conf zipl.
initramfs .
Red Hat Enterprise Linux rd_ZFCP= LUN FCP
.
( , WWPN 16 0x
LUN FCP 0x). LUN FCP 16 ,
.
zipl.conf
LUN FCP, vg_devel1,
lv_root .
.
[defaultboot]
default=linux
target=/boot/
[linux]

321

25. System z
image=/boot/vmlinuz-2.6.32-19.el6.s390x
ramdisk=/boot/initramfs-2.6.32-19.el6.s390x.img
parameters="root=/dev/mapper/vg_devel1-lv_root
rd_ZFCP=0.0.fc00,0x5105074308c212e9,0x401040a000000000
rd_ZFCP=0.0.fc00,0x5105074308c212e9,0x401040a100000000
rd_LVM_LV=vg_devel1/lv_root rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8
SYSFONT=latarcyrheb-sun16 KEYTABLE=us cio_ignore=all,!0.0.0009"

,
LUN FCP 0.0.fc00, WWPN 0x5105074308c212e9 LUN
FCP 0x401040a300000000.
rd_ZFCP=0.0.fc00,0x5105074308c212e9,0x401040a300000000
zipl.conf:
[defaultboot]
default=linux
target=/boot/
[linux]
image=/boot/vmlinuz-2.6.32-19.el6.s390x
ramdisk=/boot/initramfs-2.6.32-19.el6.s390x.img
parameters="root=/dev/mapper/vg_devel1-lv_root
rd_ZFCP=0.0.fc00,0x5105074308c212e9,0x401040a000000000
rd_ZFCP=0.0.fc00,0x5105074308c212e9,0x401040a100000000
rd_ZFCP=0.0.fc00,0x5105074308c212e9,0x401040a300000000
rd_LVM_LV=vg_devel1/lv_root rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8
SYSFONT=latarcyrheb-sun16 KEYTABLE=us cio_ignore=all,!0.0.0009"

zipl /etc/zipl.conf:
# zipl -V
Using config file '/etc/zipl.conf'
Target device information
Device..........................: 08:00
Partition.......................: 08:01
Device name.....................: sda
Device driver name..............: sd
Type............................: disk partition
Disk layout.....................: SCSI disk layout
Geometry - start................: 2048
File system block size..........: 4096
Physical block size.............: 512
Device size in physical blocks..: 10074112
Building bootmap in '/boot/'
Building menu 'rh-automatic-menu'
Adding #1: IPL section 'linux' (default)
kernel image......: /boot/vmlinuz-2.6.32-19.el6.s390x
kernel parmline...: 'root=/dev/mapper/vg_devel1-lv_root
rd_ZFCP=0.0.fc00,0x5105074308c212e9,0x401040a000000000
rd_ZFCP=0.0.fc00,0x5105074308c212e9,0x401040a100000000
rd_ZFCP=0.0.fc00,0x5105074308c212e9,0x401040a300000000 rd_LVM_LV=vg_devel1/lv_root
rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us
cio_ignore=all,!0.0.0009'
initial ramdisk...: /boot/initramfs-2.6.32-19.el6.s390x.img
component address:
kernel image....: 0x00010000-0x007a21ff
parmline........: 0x00001000-0x000011ff
initial ramdisk.: 0x02000000-0x028f63ff
internal loader.: 0x0000a000-0x0000a3ff
Preparing boot device: sda.
Detected SCSI PCBIOS disk layout.
Writing SCSI master boot record.
Syncing disks...
Done.

322

25.2.2.2. LUN FCP


LUN FCP ,
, /
etc/zfcp.conf. LUN FCP
FCP, WWPN
16 0x LUN FCP 0x. LUN FCP
16 , .
/etc/zfcp.conf FCP .
FCP.
/etc/zfcp.conf:
0.0.fc00
0.0.fc00
0.0.fc00
0.0.fcd0
0.0.fcd0
0.0.fcd0

0x5105074308c212e9
0x5105074308c212e9
0x5105074308c212e9
0x5105074308c2aee9
0x5105074308c2aee9
0x5105074308c2aee9

0x401040a000000000
0x401040a100000000
0x401040a300000000
0x401040a000000000
0x401040a100000000
0x401040a300000000

/etc/zfcp.conf
FCP
( z/VM). ,
/etc/zfcp.conf ,
. .
1.

cio_ignore FCP
Linux:
# cio_ignore -r

FCP. :
# cio_ignore -r fcfc

2.

, uevent:
echo add > /sys/bus/ccw/devices/ID_/uevent

:
echo add > /sys/bus/ccw/devices/0.0.fcfc/uevent

25.3.
udev.
IBM System z .

1.

2.

3.

323

25. System z
4.

5.


1.

2.


IBM System z, qeth (.
25.3.1, qeth) lcs (. 25.3.2,
LCS) Red Hat Enterprise Linux. 25.3.3,

, 25.3.4,

, .

25.3.1. qeth
qeth OSA-Express c QDIO System z, HiperSockets, LAN
z/VM VSWITCH z/VM.
qeth
:
hsin HiperSocket;
ethn Ethernet.
n , , 0
, 1 ..

25.3.1.1. z/VM
.
1.

, qeth .
:
# lsmod | grep qeth
qeth_l3
qeth_l2
ipv6
qeth
qdio
ccwgroup

127056 9
73008 3
492872 155ip6t_REJECT,nf_conntrack_ipv6,qeth_l3
115808 2 qeth_l3,qeth_l2
68240 1 qeth
12112 2 qeth

lsmod , ,
modprobe:
# modprobe qeth

2.

324

cio_ignore
Linux:

qeth

# cio_ignore r ID___,ID___,ID___

ID___, ID___
ID___
. , , ID___ 0.0.f500,
ID___ 0.0.f501, ID___
0.0.f502, :
# cio_ignore -r 0.0.f500,0.0.f501,0.0.f502

3.

znetconf :
# znetconf -u
Scanning for network devices...
Device IDs
Type
Card Type
CHPID Drv.
-----------------------------------------------------------0.0.f500,0.0.f501,0.0.f502 1731/01 OSA (QDIO)
00 qeth
0.0.f503,0.0.f504,0.0.f505 1731/01 OSA (QDIO)
01 qeth
0.0.0400,0.0.0401,0.0.0402 1731/05 HiperSockets
02 qeth

4.

znetconf
:
# znetconf -a f500
Scanning for network devices...
Successfully configured device 0.0.f500 (eth1)

5.

:
# znetconf -a f500 -o portname=myname
Scanning for network devices...
Successfully configured device 0.0.f500 (eth1)

eth1.
sysfs.
1.

qeth:
# echo ID___,ID___,ID___ > /
sys/bus/ccwgroup/drivers/qeth/group

:
# echo 0.0.f500,0.0.f501,0.0.f502 > /sys/bus/ccwgroup/drivers/qeth/group

2.

, qeth :
# ls /sys/bus/ccwgroup/drivers/qeth/0.0.f500

325

25. System z
portno
layer2
portname
, qeth, Linux
System z. , Red Hat Enterprise Linux 6.
3.

, 1:
# echo 1 > /sys/bus/ccwgroup/drivers/qeth/0.0.f500/online

4.

:
# cat /sys/bus/ccwgroup/drivers/qeth/0.0.f500/online
1

, , 0 .
5.

, :
# cat /sys/bus/ccwgroup/drivers/qeth/0.0.f500/if_name
eth1

eth1.
s390utils
qeth:
# lsqeth eth1
Device name
: eth1
--------------------------------------------card_type
: OSD_1000
cdev0
: 0.0.f500
cdev1
: 0.0.f501
cdev2
: 0.0.f502
chpid
: 76
online
: 1
portname
: OSAPORT
portno
: 0
state
: UP (LAN ONLINE)
priority_queueing
: always queue 0
buffer_count
: 16
layer2
: 1
isolation
: none

25.3.1.2. qeth
qeth znetconf.
1.

:
znetconf -c
Device IDs
Type
Card Type
CHPID Drv. Name
State
-------------------------------------------------------------------------------0.0.8036,0.0.8037,0.0.8038 1731/05 HiperSockets
FB qeth hsi1
online

326

qeth
0.0.f5f0,0.0.f5f1,0.0.f5f2 1731/01 OSD_1000
0.0.f500,0.0.f501,0.0.f502 1731/01 GuestLAN QDIO

2.

76 qeth eth0
00 qeth eth1

online
online

, .
# znetconf -r f500
Remove network device 0.0.f500 (0.0.f500,0.0.f501,0.0.f502)?
Warning: this may affect network connectivity!
Do you want to continue (y/n)?y
Successfully removed device 0.0.f500 (eth1)

3.

, :
znetconf -c
Device IDs
Type
Card Type
CHPID Drv. Name
State
-------------------------------------------------------------------------------0.0.8036,0.0.8037,0.0.8038 1731/05 HiperSockets
FB qeth hsi1
online
0.0.f5f0,0.0.f5f1,0.0.f5f2 1731/01 OSD_1000
76 qeth eth0
online

25.3.1.3. qeth
.
/etc/sysconfig/network-scripts/.
ifcfg-,
if_name qeth (, eth1). cio_ignore ,
.
,
.
# cd /etc/sysconfig/network-scripts
# cp ifcfg-eth0 ifcfg-eth1

, . ifcfgeth0 .
/etc/sysconfig/network-scripts/ifcfg-eth0
# IBM QETH
DEVICE=eth0
BOOTPROTO=static
IPADDR=10.12.20.136
NETMASK=255.255.255.0
ONBOOT=yes
NETTYPE=qeth
SUBCHANNELS=0.0.09a0,0.0.09a1,0.0.09a2
PORTNAME=OSAPORT
OPTIONS='layer2=1 portno=0'
MACADDR=02:00:00:23:65:1a
TYPE=Ethernet

ifcfg-eth1:
1.

DEVICE if_name
ccwgroup.

2.

IPADDR IP- .
327

25. System z
3.

NETMASK .

4.

, ONBOOT yes.

5.

, SUBCHANNELS qeth.

6.

PORTNAME.

7.

OPTIONS sysfs .
Red Hat Enterprise Linux layer2
portno qeth.
OSA qeth .
ifcfg, OPTIONS
layer2=0.

/etc/sysconfig/network-scripts/ifcfg-eth1
# IBM QETH
DEVICE=eth1
BOOTPROTO=static
IPADDR=192.168.70.87
NETMASK=255.255.255.0
ONBOOT=yes
NETTYPE=qeth
SUBCHANNELS=0.0.0600,0.0.0601,0.0.0602
PORTNAME=OSAPORT
OPTIONS='layer2=1 portno=0'
MACADDR=02:00:00:b3:84:ef
TYPE=Ethernet

ifcfg

( z/VM). ,
ifcfg :
1.

cio_ignore
Linux:
# cio_ignore r ID___,ID___,ID___

ID___, ID___
ID___
. , , ID___ 0.0.0600,
ID___ 0.0.0601, ID___
0.0.0602, :
# cio_ignore -r 0.0.0600,0.0.0601,0.0.0602

2.

, uevent:
echo add > /sys/bus/ccw/devices/_/uevent

328

LCS

echo add > /sys/bus/ccw/devices/0.0.0600/uevent

3.

:
# lsqeth

4.

:
# ifup eth1

5.

:
# ifconfig eth1
eth1
Link encap:Ethernet HWaddr 02:00:00:00:00:01
inet addr:192.168.70.87 Bcast:192.168.70.255 Mask:255.255.255.0
inet6 addr: fe80::ff:fe00:1/64 Scope:Link
UP BROADCAST RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:23 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:644 (644.0 b) TX bytes:264 (264.0 b)

6.

:
# route
Kernel IP routing table
Destination
Gateway
192.168.70.0
*
10.1.20.0
*
default
10.1.20.1

7.

Genmask
255.255.255.0
255.255.255.0
0.0.0.0

Flags
U
U
UG

Metric
0
0
0

Ref
0
0
0

Use
0
0
0

Iface
eth1
eth0
eth0

ping
:
# ping -c 1 192.168.70.8
PING 192.168.70.8 (192.168.70.8) 56(84) bytes of data.
64 bytes from 192.168.70.8: icmp_seq=0 ttl=63 time=8.07 ms

8.

, /etc/
sysconfig/network.

25.3.2. LCS
LCS (LAN channel station) 1000Base-T Ethernet
OSA-Express2 OSA-Express 3.
, LCS :
ethn OSA-Express Fast Ethernet Gigabit Ethernet.
n 0 , 1 ..

329

25. System z

25.3.2.1. LCS
1.

:
# modprobe lcs

2.

cio_ignore
Linux:
# cio_ignore -r ID___,ID__

ID___ ID___
. :
# cio_ignore -r 0.0.09a0,0.0.09a1

3.

:
# echo ID___,ID___ > /sys/bus/ccwgroup/drivers/
lcs/group

4.

. OSA 16
CHPID. LCS 0. ,
:
# echo > /sys/bus/ccwgroup/drivers/lcs/device_bus_id/portno

, .
, LCS, Linux System z. ,
Red Hat Enterprise Linux 6.
5.

:
# echo 1 > /sys/bus/ccwgroup/drivers/lcs/ID___/online

6.

,
# ls -l /sys/bus/ccwgroup/drivers/lcs/ID___/net/
drwxr-xr-x 4 root root 0 2010-04-22 16:54 eth1

25.3.2.2. LCS
cio_ignore ,
.
LCS.
1.

/etc/sysconfig/network-scripts/
ifcfg-ethn ( n , , 0).
:
/etc/sysconfig/network-scripts/ifcfg-eth0

330


# IBM LCS
DEVICE=eth0
BOOTPROTO=static
IPADDR=10.12.20.136
NETMASK=255.255.255.0
ONBOOT=yes
NETTYPE=lcs
SUBCHANNELS=0.0.09a0,0.0.09a1
PORTNAME=0
OPTIONS=''
TYPE=Ethernet

2.

PORTNAME, LCS (portno).


OPTIONS sysfs (. 25.3.1.3,
qeth ).

3.

DEVICE:
DEVICE=ethn

4.

:
# ifup ethn

ifcfg . ifcfg
:
1.

cio_ignore LCS
Linux:
# cio_ignore -r ID___,ID__

ID___ ID___
. :
# cio_ignore -r 0.0.09a0,0.0.09a1

2.

, uevent:
echo add > /sys/bus/ccw/devices/_/uevent

:
echo add > /sys/bus/ccw/devices/0.0.09a0/uevent

25.3.3.
DEVICE= ifcfg
; /etc/udev/rules.d/70-persistentnet.rules.
System z
. NAME=
.
331

25. System z
/etc/udev/rules.d/70-persistent-net.rules:
# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it,as long as you keep each rule on a single line.
# S/390 qeth device at 0.0.f5f0
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="qeth", KERNELS=="0.0.f5f0", ATTR{type}=="1",
KERNEL=="eth*", NAME="eth0"
# S/390 ctcm device at 0.0.1000
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="ctcm", KERNELS=="0.0.1000", ATTR{type}=="256",
KERNEL=="ctc*", NAME="ctc0"
# S/390 qeth device at 0.0.8024
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="qeth", KERNELS=="0.0.8024", ATTR{type}=="1",
KERNEL=="hsi*", NAME="hsi0"
# S/390 qeth device at 0.0.8124
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="qeth", KERNELS=="0.0.8124", ATTR{type}=="1",
KERNEL=="hsi*", NAME="hsi1"
# S/390 qeth device at 0.0.1017
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="qeth", KERNELS=="0.0.1017", ATTR{type}=="1",
KERNEL=="eth*", NAME="eth3"
# S/390 qeth device at 0.0.8324
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="qeth", KERNELS=="0.0.8324", ATTR{type}=="1",
KERNEL=="hsi*", NAME="hsi3"
# S/390 qeth device at 0.0.8224
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="qeth", KERNELS=="0.0.8224", ATTR{type}=="1",
KERNEL=="hsi*", NAME="hsi2"
# S/390 qeth device at 0.0.1010
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="qeth", KERNELS=="0.0.1010", ATTR{type}=="1",
KERNEL=="eth*", NAME="eth2"
# S/390 lcs device at 0.0.1240
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="lcs", KERNELS=="0.0.1240", ATTR{type}=="1",
KERNEL=="eth*", NAME="eth1"
# S/390 qeth device at 0.0.1013
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="qeth", KERNELS=="0.0.1013", ATTR{type}=="1",
KERNEL=="hsi*", NAME="hsi4"

25.3.4.


(. 26,
) zipl.conf DASD LUN SCSI, FCP.
initramfs .
Dracut, mkinitrd, rd_ZNET=
.
NETTYPE (qeth, lcs, ctc),
(lcs, ctc) (qeth) ,
, sysfs. rd_ZNET=
System z. IP-
, .
dracut.
cio_ignore .
,
NFS:

332

root=10.16.105.196:/nfs/nfs_root cio_ignore=all,!0.0.0009
rd_ZNET=qeth,0.0.0a00,0.0.0a01,0.0.0a02,layer2=1,portno=0,portname=OSAPORT
ip=10.16.105.197:10.16.105.196:10.16.111.254:255.255.248.0:nfsserver.subdomain.domain:eth0:none
rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16
KEYTABLE=us

333

334


IBM System z
.
.
,
:
linuxrc (. 21,
. , 22, .
);
;
,
(, ).

anaconda.
896 ( ).
: ,
.
LPAR,
, .
,
Linu Linux
System z. , Red Hat Enterprise Linux 6..
(, root=/dev/ram0 ro)
(, vncpassword=test vnc).

26.1.
. generic.prm
images/ DVD:
root=_
_ .
/dev/ram0 (RAM-
Red Hat Enterprise Linux).
ro
(RAM-) .
ip=off
.
ramdisk_size=
, RAM-,
Red Hat Enterprise
Linux. : ramdisk_size=40000.

335

26.
generic.prm cio_ignore=all,!0.0.0009,

.

cio_ignore
, cio_ignore=

, IPL-.
, ,
DVD-, FCP, ,
linuxrc (. 21, .
).

26.2. z/VM
z/VM. CMS

, DASD FCP (. 26.3, ).
CMS
= .
CMS,
CMSDASD CMSCONFFILE.
CMSDASD=_cmsdasd
_cmsdasd ,
CMS, ( A).
: CMSDASD=191
CMSCONFFILE=

Linux: __CMS.__CMS.
CMS- REDHAT CONF redhat.conf.
1 8 , CMS.
: CMSCONFFILE=redhat.conf

26.3.
,
, CMS.
.
NETTYPE=
qeth, lcs ctc. qeth.
lcs :
OSA-2 Ethernet/Token Ring;
OSA-Express Fast Ethernet (-QDIO);
336


OSA-Express High Speed Token Ring (-QDIO);
Gigabit Ethernet (-QDIO).
qeth :
OSA-Express Fast Ethernet;
Gigabit Ethernet ( 1000Base-T);
High Speed Token Ring;
HiperSockets;
ATM ( Ethernet LAN).
SUBCHANNELS=ID_
ID_ , .
:
qeth:
SUBCHANNELS="ID___,ID___,ID___"
lcs ctc: SUBCHANNELS="ID___,ID___"

qeth SUBCHANNEL:
SUBCHANNELS=0.0.f5f0,0.0.f5f1,0.0.f5f2

PORTNAME=_osa , PORTNAME=_lcs
OSA, qdio qdio.
qdio (NETTYPE=qeth) _osa
, OSA, qeth.
-qdio (NETTYPE=lcs) _lcs
0 15.
PORTNO=
CMS PORTNO=0 ( 0) PORTNO=1
( 1), .
LAYER2=
0 1.
OSA HiperSockets qeth (NETTYPE=qeth)
LAYER2=0. z/VM
GuestLAN VSWITCH.
,
MAC (, DHCP).
qeth OSA .
LAYER2=0.
VSWITCH=
0 1.
337

26.
LAYER2=1, VSWITCH=1
VSWITCH GuestLAN z/VM. OSA HiperSockets
VSWITCH=0 .
MACADDR=MAC-
LAYER2=1 VSWITCH=0,
MAC. , ,
( ).
z/VM,
.
LAYER2=1 VSWITCH=1, MACADDR,
z/VM MAC
.
CTCPROT=
: 0, 1, 3.
CTC NETTYPE=ctc. 0.
HOSTNAME=
Linux.
IPADDR=IP
IP- Linux.
NETMASK=
.
(CIDR,
classless interdomain routing) IPv4. , 24 255.255.255.0 20
255.255.240.0.
1 32.
GATEWAY=
IP- .
MTU=mtu
mtu MTU (Maximum Transmission Unit).
DNS=1:2:_:N
1:2:_:N DNS-,
. :
DNS=10.1.2.3:10.3.2.1

SEARCHDNS=1:2:_:N
1:2:_:N ,
. :
SEARCHDNS=subdomain.domain:domain

DNS=, SEARCHDNS=.

338


DASD=
DASD.
dasd_mod Linux System z. ,
Red Hat Enterprise Linux 6.
linuxrc ,
, ro, diag, erplog, failfast.
, .
,
.
linuxrc autodetect,
DASD
DASD .
DASD (, /dev/disk/by-path/...).
(probeonly, nopav, nofcx) .
DASD.
, (.
23.6.1.1, DASD).
DASD (. 25.1.3.2, DASD
).
FCP DASD=none. linuxrc
, .
- RUNKS=1, linuxrc
.
:
DASD=eb1c,0.0.a000-0.0.a003,eb10-eb14(diag),0.0.ab1c(ro:diag)

FCP_n="ID_ WWPN LUN_FCP"


:
n (
FCP_1 FCP_2), .
ID_ FCP (, fc00
0.0.fc00).
WWPN (WWPN), (
)
16- . : 0x50050763050b073d.
LUN_FCP LUN .
16- . : 0x4020400100000000.
LUN FCP
SCSI-. LUN
. , linuxrc FCP
. :
FCP_1="0.0.fc00 0x50050763050b073d 0x4020400100000000"

339

26.


, FCP (FCP_1, FCP_2),
FCP.

,
( FCP_n).

26.4. VNC X11


, ,
CMS.
anaconda.
X11:
display=IP/:
IP-, X11,
.
VNC X11:
vnc
vnc VNC .
vncpassword=
. VNC. ,
.
vncconnect=IP/_[:]
. vnc vncpassword=, ,
VNC .
VNC.

26.5.
,
CMS.
:
lang=
, (.
22.3, ). , , ru,
de.
repo=

, (. 22.4,
).

340

26.6.
,
CMS.
ks=URL
. 28.4,
32.10, -
.
RUNKS=
(RUNKS=1),
Linux SSH.
cmdline (
3270 z/VM LPAR). RUNKS=1
-.
linuxrc
.
RUNKS=0.
cmdline
(3270 z/VM
LPAR) , Escape-.
,
.
cmdline RUNKS ,
(. 32, -).

26.7.
,
CMS.
askmethod
DVD
. , ,
DVD, FCP,
.
mediacheck
. repo=
DVD.
nompath
.
proxy=[://][[:]@][:]
- HTTP, HTTPS FTP.
rescue
RAM-.

341

26.
stage2=URL
install.img. .
, anaconda install.img DVD, ,
repo= method=.
stage2= , repo= method= , anaconda
, .
syslog=IP__[:]
.
. 28,
.

26.8.
generic.prm .
generic.prm:
root=/dev/ram0 ro ip=off ramdisk_size=40000 cio_ignore=all,!0.0.0009
CMSDASD=191 CMSCONFFILE=redhat.conf
vnc

redhat.conf, QETH.
CMSCONFFILE generic.prm .
NETTYPE="qeth"
SUBCHANNELS="0.0.0600,0.0.0601,0.0.0602"
PORTNAME="FOOBAR"
PORTNO="0"
LAYER2="1"
MACADDR="02:00:be:3a:01:f3"
HOSTNAME="foobar.systemz.example.com"
IPADDR="192.168.17.115"
NETMASK="255.255.255.0"
GATEWAY="192.168.17.254"
DNS="192.168.17.1"
SEARCHDNS="systemz.example.com:example.com"
DASD="200-203"

342

27. IBM System

IBM
System z
27.1. IBM System z
Linux System z http://
www.ibm.com/developerworks/linux/linux390/documentation_red_hat.html. :
IBM . 2010. Linux System z. , Red Hat Enterprise
Linux 6. SC34-2597.
IBM . 2010. Linux System z. Red Hat Enterprise Linux. SC34-2607.
IBM . 2009. Linux System z. SCSI FCP. SC33-8413.
IBM . 2010. XIP Linux z/VM. SC34-2594.
IBM . 2009. Linux System z. z/VM.
SC34-2596.
IBM . 2009. Linux System z. libica ( ). SC34-2602.
IBM . 2008. Linux System z. PAV. SC33-8414.
IBM . 2008. z/VM. Linux System z. SC24-6194.

27.2. IBM Redbooks System z


http://www.ibm.com/redbooks.

IBM Redbooks . 2007. : z/VM. SG24-7316.
IBM Redbooks . 2008. z/VM Linux IBM System z. Red Hat
Enterprise Linux 5.2. SG24-7492.
IBM Redbooks . 2009. Linux System z. SG24-7727.

IBM Redbooks . 2008. Linux IBM System z. .
SG24-6926.
IBM Redbooks . 2009. Linux System z. SG24-7711.

IBM Redbooks . 2010. Linux System z. SG24-7728.


IBM Redbooks . 2006. - Linux
IBM System z9 zSeries. REDP-4131.

IBM Redbooks . 2009. IBM System z. SG24-5444.


343

27. IBM System z


IBM Redbooks . 2009. OSA Express. SG24-5948.
IBM Redbooks . 2007. HiperSockets. SG24-6816.
IBM Redbooks . 2007. FCP Linux z/VM IBM System z. SG24-7266.

27.3. -
For z/VM publications, refer to http://www.ibm.com/vm/library/ .
For System z I/O connectivity information, refer to http://www.ibm.com/systems/z/connectivity/ .
For System z cryptographic coprocessor information, refer to http://www.ibm.com/security/
cryptocards/ .
Brad Hinson Mike MacIsaac.
RHEL 5.3 Linux z/VM. http://www.linuxvm.org/Present/misc/ro-root-RH5.pdf.

344

IV.

Red Hat Enterprise Linux
. :
;
;
VNC;
.


Red Hat Enterprise Linux
. linux
boot:.
, . :

linux 1 2 3

Anaconda
Anaconda ,
- http://fedoraproject.org/wiki/Anaconda/Options.


http://fedoraproject.org/wiki/KernelCommonProblems
. /usr/share/doc/
kernel-doc-/Documentation/kernel-parameters.txt,
kernel-doc.


Red Hat Enterprise Linux
, . 28.6.2,
.

28.1.
, :




28.1.1.
, ,
ISO lang. keymap
.
, ISO el_GR gr :
347

28.

linux lang=el_GR keymap=gr

28.1.2.
resolution=
. , 1024x768 :

linux resolution=1024x768


text,

linux text


, serial.
display=ip:0, .
ip IP- .
xhost +,
, .
xhost +
.

28.1.3. Anaconda
Red Hat Enterprise Linux
anaconda, ,
.

linux updates

anaconda. ,

rhupdates/ .
anaconda :

linux updates=

URL- .

28.1.4.
askmethod ,
.
boot:.
348


boot:, repo (.
28.1, ).
28.1.

CD/DVD

repo=cdrom:

repo=hd:/

HTTP-

repo=http:///

FTP-

repo=ftp://:@/

NFS-

repo=nfs::/

ISO- NFS

repo=nfsiso::/

28.1.5.
DHCP
. , TCP/IP,
boot:. :
IP- (ip), (netmask), (gateway) DNS- (dns).
boot:,
, TCP/IP .
, IP-
192.168.1.10:

linux ip=192.168.1.10 netmask=255.255.255.0 gateway=192.168.1.1 dns=192.168.1.2,192.168.1.3

28.2.


.
telnet ( Red Hat Enterprise Linux).
,
VNC (Virtual Network Computing).

VNC Red Hat Enterprise Linux


Red Hat Enterprise Linux VNC- vncviewer (
tigervnc).

VNC-.
VNC-

VNC , .

349

28.

28.2.1. VNC
,
:

linux vnc vncpassword=qwerty

vnc VNC, vncpassword


. qwerty.

VNC
VNC .

, .
VNC-.
VNC-:
Starting VNC...
The VNC server is now running.
Please connect to computer.mydomain.com:1 to begin the install...
Starting graphical installation...
Press <enter> for a shell

VNC. vncviewer
Red Hat Enterprise Linux VNC Viewer
vncviewer .
. VNC-
computer.mydomain.com:1.

28.2.2.
VNC
VNC
. Red Hat Enterprise Linux -listen:

vncviewer -listen


vncviewer TCP- 5500.
,
. .
5500 tcp .


VNC boot:. vnc vncpassword,
350

Telnet
vncconnect, IP-
. TCP-,
.
, VNC- desktop.mydomain.com
5500, boot: :

linux vnc vncpassword=qwerty vncconnect=desktop.mydomain.com:5500

28.2.3. Telnet

telnet:

linux text telnet

telnet.
telnet IP- :

telnet computer.mydomain.com

Telnet
,
telnet.

28.3.

.
,
syslog.
syslog. IP-
UDP- .
syslog, , UDP- 514.
, syslog 192.168.1.20,
boot: :

linux syslog=192.168.1.20:514

28.3.1.
syslog Red Hat Enterprise Linux rsyslog.
rsyslog .
351

28.

syslog

rsyslog, ,
rsyslog. ,
,
,
.

,
/etc/rsyslog.conf.
root. , #
$ModLoad imudp.so
$UDPServerRun 514

rsyslog, :

su -c '/sbin/service rsyslog restart'

root.


syslog UDP- 514.
,
.
. 514 udp .

28.4.

,
.
.

anaconda-ks.cfg
Red Hat Enterprise Linux
/root/anaconda-ks.cfg,

.

352

- Firstboot
X Window
, Firstboot .
user ,
(. 32.4, ), root
adduser.

Red Hat Enterprise Linux


- .
system-config-kickstart. ,
Kickstart.
,
.
, - .
, ks
:

linux ks=location/kickstart-file.cfg

, ,
(. 28.2, ).
28.2.

CD/DVD

ks=cdrom://ks.cfg

ks=hd:///ks.cfg

ks=:///ks.cfg

HTTP-

ks=http://server.mydomain.com//ks.cfg

FTP-

ks=ftp://server.mydomain.com//ks.cfg

NFS-

ks=nfs:server.mydomain.com://ks.cfg

-, URL
ks=. kssendmac,
HTTP- -.
.
http://server.mydomain.com/kickstart.cgi:

linux ks=http://server.mydomain.com/kickstart.cgi kssendmac

28.5.
Red Hat Enterprise Linux
. Red Hat Enterprise Linux
,
353

28.
.
.

28.5.1.


.

.


:
28.3.

noprobe

headless

nopass

VESA

xdriver=vesa

noshell


acpi=off
(ACPI, Advanced Configuration and
Power Interface)
MCE (Machine Check
Exception)

nomce

(NUMA)
AMD64

numa-off


, xxx

mem=xxxm

DMA IDE SATA

libata.dma=1

RAID, BIOS

nodmraid

Firewire

nofirewire

noparport

PCMCIA

nopcmcia

USB

nousbstorage

USB-

nousb

354

nonet


isa
. ISA- .

anaconda
. ,
anaconda .

28.6.
28.6.1.
Red Hat Enterprise Linux.
DVD ISO- NFS. .
Red Hat Enterprise Linux ISO:
OK
DVD Red Hat Enterprise Linux;
Red Hat Enterprise Linux mediacheck.

28.6.2.
Linux
, Red Hat Enterprise Linux.
Linux-
, .
.
,
.
,
.
.

/mnt/sysimage/.

28.6.3.
upgrade ,
Red Hat
Enterprise Linux.
355

28.
, /etc/redhat-release , ,
Red Hat Enterprise
Linux. upgradeany
Red Hat Enterprise Linux,
.

356


Linux
,
Red Hat Enterprise Linux Linux, GRUB
Linux.

, Red Hat Enterprise Linux


. GRUB.

29.1.
PXE-,
RAM-.
vmlinuz initrd.img c DVD- Red Hat Enterprise Linux
/boot/ , vmlinuz-install initrd.imginstall. root.

29.2. GRUB
GRUB /boot/grub/grub.conf.
, , /boot/grub/grub.conf
.
:
title Installation
root (hd0,0)
kernel /vmlinuz-install
initrd /initrd.img-install

kernel,
, Anaconda . 28,
.
,
:
ip=
repo=
lang=
keymap=
ksdevice= ( , eth0)
vnc vncpassword=
default /boot/grub/grub.conf ,
:
357

29.

default 0

29.3.
. GRUB RAM-,
.
. 28.2,
VNC.

358


PXE-:
1. (NFS, FTP, HTTP) .
2. PXE- tftp.
3. , PXE.
4. tftp.
5. DHCP.
6. .

30.1.
NFS, FTP HTTP-
Red Hat Enterprise Linux (.
4.1, ).

30.2. PXE-
tftp,
. tftp
, .
NFS, FTP
HTTP. PXE- .

30.3. PXE-
(. 30.1,
).

359

30.

30.1.
,
PXE-.
.

30.2.
:
IP-/ IP-,
, PXE-
.
.
, .

.
360

TFTPD
, http://server.example.com/
kickstart/ks.cfg.
(. 33, ).
Ethernet.
.

30.4. TFTPD
30.4.1. tftp
rpm -q tftp-server , tftp-server
DHCP.
tftp xinetd. :
/sbin/chkconfig --level 345 xinetd on
/sbin/chkconfig --level 345 tftp on

tftp xinetd,
3, 4 5.

30.5. DHCP
DHCP, .
Red Hat Enterprise Linux.
PXE- ( ), ,
:
allow booting; allow bootp; class "pxeclients" {
match if substring(option vendor-classidentifier, 0, 9) = "PXEClient";
next-server <IP_>; filename "linux-install/
pxelinux.0"; }

<IP_> tftp.

30.6.
/tftpboot/linux-install/msgs/
boot.msg.

30.7. PXE-
, PXE,
.
9, Anaconda
.

361

362

VNC
Anaconda Red Hat Enterprise Linux
. ,
GTK+ X Window. ,
.
-,
, .
, .
,
,
.
(
LVM, , , ) :
, .
.
.
Anaconda VNC (Virtual Network Computing),
,
,
.

31.1. VNC
VNC- , VNC-.
:


VNC ,
GNU GPL.
VNC- Linux.
. , Red Hat Enterprise Linux tigervnc.
# yum install tigervnc

VNC .

31.2. VNC Anaconda


Anaconda VNC-.
.

31.2.1.
VNC-. Anaconda ,
. :
363

31. VNC
vnc .
vnc .
VNC Anaconda
VNC . :
Anaconda , , , .

Anaconda IP- VNC-.


VNC- . VNC Anaconda.
:
IP- ,
VNC-.

.
VNC,
, .

31.2.2.
VNC
IP-.
, , IP-,
.
VNC VNC anaconda
VNC ,
IP- .
vncconnect:
boot: linux vncconnect=

IP- DNS- ,
VNC. , VNC
.
, VNC- .

31.3. VNC
VNC VNC anaconda .

31.3.1.
VNC
. .
:
364

VNC
1.
. ,
. Ethernet-
, ,
.
2. VNC , RFC 1918
. .
VNC 192.168.100.1/24. ,
RFC 1918.
3. .
a. DVD
DVD vnc.
,
. :
boot: linux vnc

b. .
IP-, vnc
. DHCP,
vncconnect=, DNS- VNC.
boot: linux vncconnect=

4. ,
RFC 1918 , VNC. ,
192.168.100.2/24.

.
.

5. anaconda VNC.
.

31.3.2. VNC
, VNC .
vnc .
VNC . ,
.
, vnc
vncconnect=
. IP- DNS- VNC.
vncconnect .
365

31. VNC

31.3.3.
VNC
, . VNC
, VNC
5900 5901. , 5900 5901
,
.
vnc vncpassword.
, ,
, .
VNC .
.

vncpassword.
root .

, vncconnect.

vncconnect= IP-
.

31.4.
VNC : http://ru.wikipedia.org/wiki/VNC
TigerVNC: http://tigervnc.sourceforge.net/
RFC 1918 : http://www.ietf.org/rfc/rfc1918.txt
Anaconda: http://fedoraproject.org/wiki/Anaconda/Options
: http://fedoraproject.org/wiki/Anaconda/Kickstart

366

-
32.1. -?

Red Hat Enterprise Linux, Red Hat -.
, ,
.

.
Red Hat Enterprise Linux ,
.
Red Hat Enterprise Linux.
/tmp.

/tmp/netinfo
Anaconda NetworkManager.
, /tmp/netinfo, ifcfg /
etc/sysconfig/network-scripts.

32.2. -?
, DVD
NFS, FTP, HTTP.
:
1. .
2.
.
3. .
4. -.
.

32.3.
, ,
.
. Red Hat
Enterprise Linux , .
/root/anaconda-ks.cfg.
, ASCII.
:
367

32. -
.
. :
. 32.4,
. .
(%packages). 32.5, .
%pre %post.
. 32.6, ,
32.7, ,
.
, , .
,
, .
(
).
, #, .
:


( )

upgrade

, (
).

32.4.
, .
,
(. 33, ).

(=),
. ([ ])
.

autopart ()
: (/)
1 , , .
368


, ,
part.
--encrypted
, .
--passphrase=
.
--escrowcert=URL__X.509
/,
X.509. .
, --encrypted.
--backuppassphrase=
. /,
X.509 ( --escrowcert).
, --escrowcert.
ignoredisk ()
. , ,
, ,
. , SAN ignoredisk
, SAN,
.
ignoredisk .
:
ignoredisk --drives=1,2,...

N sda, sdb,..., hda,... ..


--only-use .
. , sda,
:
ignoredisk --only-use=sda

autostep ()
interactive ,
. .
--autoscreenshot
/root/anaconda-screenshots.
.
auth authconfig ()
.
authconfig, .
.
--enablemd5 md5.

369

32. -
--enablenis NIS. --enablenis
.
--nisdomain=.
--nisdomain= NIS, NIS.
--nisserver= , NIS (
).
--useshadow --enableshadow .
--enableldap LDAP /etc/nsswitch.conf,
(UID, ,
..) LDAP. ,
nss_ldap. (DN,
Distinguished Name) --ldapserver= --ldapbasedn=.
--enableldapauth LDAP
pam_ldap, ,
LDAP. nss_ldap.
--ldapserver= -ldapbasedn=.
--ldapserver= --enableldap, --enableldapauth,
--ldapserver= LDAP-.
/etc/ldap.conf.
--ldapbasedn= --enableldap, --enableldapauth,
--ldapbasedn= DN ,
LDAP.
/etc/ldap.conf.
--enableldaptls TLS
(Transport Layer Security).
LDAP .
--enablekrb5 Kerberos 5
. Kerberos ,
UID . Kerberos,

, LDAP, NIS, Hesiod /usr/sbin/useradd.
pam_krb5.
--krb5realm= Kerberos 5, .
--krb5kdc= KDC, .
KDC, .
--krb5adminserver= KDC ,
kadmind. .
,
KDC.
--enablehesiod Hesiod
, UID .
Hesiod /usr/share/doc/
glibc-2.x.x/README.hesiod, glibc. Hesiod

370


DNS, ,
DNS.
--hesiodlhs Hesiod LHS (left-hand side), /etc/
hesiod.conf. Hesiod ,
DNS , DN- LDAP-.
--hesiodrhs Hesiod RHS (right-hand side), /etc/
hesiod.conf. Hesiod ,
DNS , DN- LDAP-.

jim, Hesiod
jim.passwd<LHS><RHS>,
, (jim:*:501:501:Jungle Jim:/home/jim:/
bin/bash). :
jim.group<LHS><RHS>.

CNAME 501.uid jim.passwd 501.gid jim.group.
, LHS RHS,
LHS RHS .

--enablesmbauth SMB (
Samba Windows). SMB , UID
. SMB
, LDAP, NIS, Hesiod /
usr/sbin/useradd. pam_smb.
--smbservers= , SMB.
, .
--smbworkgroup= SMB.
--enablecache nscd,
, .
, NIS, LDAP
hesiod.
bootloader ()
. ,
.


, .
, anaconda
, , .

371

32. -
--append= . ,
. :
bootloader --location=mbr --append="hdd=ide-scsi ide=nodma"

--driveorder BIOS. :
bootloader --driveorder=sda,hda

--location= , .
: mbr ( ), partition
( , ) none
( ).
--password= GRUB.
GRUB,
.
--md5pass= --password=; ,
.
--upgrade
. .
clearpart ()
, .
.

clearpart, --onpart
.

--all .
--drives= , . ,
,
IDE-:
clearpart --drives=hda,hdb --all

--initlabel ,
(, msdos x86 gpt Itanium). ,
,
.
--linux Linux.
--none ( ) .

372


cmdline ()
.
. IBM System z
x3270 z/VM. RUNKS=1 ks= (. 26.6,
).
device ()
PCI- Ethernet
SCSI. PCI, ,
. device
:
device <> --opts=<>

<> .
--opts= NFS ,
/etc/fstab. nfs(5).
.
driverdisk ()
- .
,
driverdisk .
driverdisk <> --source=<URL> --biospart=<BIOS> [--type=<>]

:
driverdisk --source=ftp:////dd.img
driverdisk --source=http:////dd.img
driverdisk --source=nfs::///img

<> , .
<URL> URL . NFS: nfs::///.
<BIOS> BIOS, (, 82p2).
--type= (, vfat ext2).
firewall ()
.
firewall --enabled|--disabled [--trust=] <> [--port=]

--enabled --enable ,
, DNS DHCP.
, ,
.
--disabled --disable iptables.
--trust= ,
, , eth0. :
373

32. -
--trust eth0 --trust eth1. : --trust
eth0, eth1.
<> .
--ssh
--telnet
--smtp
--http
--ftp
--port= , ,
:. , IMAP-
, imap:tcp. ; ,
UDP 1234, 1234:udp.
.
firstboot ()
, Firstboot.
, firstboot. ,
, .
--enable --enabled
.
--disable --disabled
.
--reconfig .
,
, , , root, ,
.
graphical ()
-
.
halt ()
. ,
Anaconda .
- , halt.
halt shutdown -h.
, poweroff,
reboot shutdown.
install ()
, .
: cdrom, harddrive, nfs url (
FTP HTTP). install
.

374


cdrom CD-ROM.
harddrive ,
, vfat ext2.
--biospart=
BIOS, (, 82).
--partition=
, (, sdb2).
--dir=
, .
:
harddrive --partition=hdb2 --dir=/tmp/install-tree

nfs NFS-.
--server=
, ( IP-).
--dir=
, .
--opts=
,
NFS ()
:
nfs --server=nfsserver.example.com --dir=/tmp/install-tree

url , FTP HTTP.


:
url --url http://<>/<>

url --url ftp://<>:<>@<>/<>

interactive ()
,
.
, , , ,
.
autostep.
375

32. -
iscsi ()
iscsi --ipaddr= [].
iSCSI .
iscsi, iSCSI iscsiname.
iscsiname iscsi.
iSCSI BIOS (iBFT Intel)
iscsi. Anaconda BIOS
.
iscsi, ,
, .
iscsi. iSCSI clearpart
ignoredisk.
--port= () ( --port=3260).
--user= .
--password= .
--reverse-user= ,
CHAP.
--reverse-password= , .
iscsiname ()
iSCSI, iscsi. iscsi
, iscsiname, iscsi.
key ()
, .
Red Hat Enterprise Linux.
--skip . key , Anaconda
.
.
keyboard ()
. i386 Alpha :

be-latin1, bg, br-abnt2, cf, cz-lat2, cz-us-qwertz, de, de-latin1,


de-latin1-nodeadkeys, dk, dk-latin1, dvorak, es, et, fi, fi-latin1,
fr, fr-latin0, fr-latin1, fr-pc, fr_CH, fr_CH-latin1, gr, hu, hu101,
is-latin1, it, it-ibm, it2, jp106, la-latin1, mk-utf, no, no-latin1,
pl, pt-latin1, ro_win, ru, ru-cp1251, ru-ms, ru1, ru2, ru_win,
se-latin1, sg, sg-latin1, sk-qwerty, slovene, speakup, speakup-lt,
sv-latin1, sg, sg-latin1, sk-querty, slovene, trq, ua, uk, us, us-acentos

/usr/lib/python2.2/site-packages/rhpl/
keyboard_models.py rhpl.
lang ()
, . ,
:
376

lang en_US

/usr/share/system-configlanguage/locale-list ( ) system-configlanguage.
, , , , ,
.
lang, ,
.
langsupport ()
langsupport
.
%packages . ,
, %packages :
@french-support

logvol ()
(LVM, Logical Volume
Management). :
logvol <_> --vgname=<> --size=<> --name=<> <>

:
--noformat .
--useexisting
.
--fstype= . xfs,
ext2, ext3, ext4, swap, vfat, hfs.
--fsoptions=
. /etc/fstab;
.
--bytes-per-inode= inode.
, .
--grow= ,
.
--maxsize= ( ).
.
--recommended= .
--percent=
.
--encrypted RAID.
377

32. -
--passphrase= RAID.
--encrypted,
. ,
, . ,
.
--escrowcert=URL__X.509
/,
X.509. .
, --encrypted.
--backuppassphrase=
. /,
X.509 ( --escrowcert).
, --escrowcert.
, , . :
part pv.01 --size 3000
volgroup myvg pv.01
logvol / --vgname=myvg --size=2000 --name=rootvol

logging ()
Anaconda .
.
--host= ,
syslogd .
--port= syslogd.
--level= debug, info, warning, error critical.
,
tty3. .
mediacheck ()
, Anaconda .
.
monitor ()
monitor , Anaconda X
.
.
--hsync= .
--monitor= .
, /usr/share/hwdata/MonitorsDB,
hwdata. X
. --hsync
--vsync. ,
.

378


--noprobe= .
--vsync= .
mouse ()
mouse .
network ()
. -
( , FTP, HTTP NFS),
. ,
, ,
eth0 IP- (BOOTP/DHCP),
IP-.
network ,
.
--bootproto= dhcp, bootp, static.
dhcp. bootp dhcp .
DHCP DHCP-.
, BOOTP
BOOTP. DHCP,
:
network --bootproto=dhcp

BOOTP,
:
network --bootproto=bootp


. ,
, .
,
. IP-, , .
;
:
network --bootproto=static --ip=10.0.2.15 --netmask=255.255.255.0
--gateway=10.0.2.254 --nameserver=10.0.2.1

, :
;
, , .
.
, .

379

32. -
;
:
network --bootproto=static --ip=10.0.2.15 --netmask=255.255.255.0
--gateway=10.0.2.254 --nameserver 192.168.2.1,192.168.3.1

--device= Ethernet-, . ,
--device= ,
(ks=hd),
. :
network --bootproto=dhcp --device=eth0

--ip= IP- .
--gateway= IP- .
--nameserver= IP- .
--nodns DNS- .
--netmask= .
--hostname= .
--ethtool=
ethtool.
--essid= .
--wepkey= .
--onboot= .
--dhcpclass= DHCP.
--mtu= MTU .
--noipv4 IPv4 .
--noipv6 IPv6 .
multipath ()
multipath --name= --device= --rule=
part partition ( , )
.
Red Hat Enterprise Linux ,
, .

380

,
--noformat --onpart.


, .
, anaconda
, , .

32.4.1,
part.
<_> :
/<>
, /, /usr, /home
swap
.
,
--recommended.
swap --recommended

, 2 ,

. 2 , :
= 2 +
raid.<ID>
RAID- (. raid).
pv.<ID>
LVM (. logvol).
--size= .
(, 500).
--grow , (
) .

381

32. -

--grow= --maxsize=
Anaconda . ,
<2 ,
>2 2
.

--maxsize= , grow.
(, 500).
--noformat . --onpart.
--onpart= --usepart= .
:
partition /home --onpart=hda1

/home /dev/hda1, .
--ondisk= --ondrive= , .
, --ondisk=sdb SCSI-.
--asprimary ,
.
--type= . fstype.
--fstype= . xfs,
ext2, ext3, ext4, swap, vfat, hfs.
--bytes-per-inode= inode.
, .
--recommended .
--onbiosdisk , BIOS.
--fsoptions=
. /etc/fstab;
.
--encrypted .
--passphrase= .
--encrypted, --passphrase=
. ,
, ,
.
--escrowcert=URL__X.509
/,

382


X.509.
. , --encrypted.
--backuppassphrase=
. /,
X.509 ( --escrowcert).
, --escrowcert.

- ,
3.

poweroff ()
.
Anaconda
. - ,
halt.
poweroff shutdown -p.

poweroff . ,
, BIOS,
(APM, Advanced Power Management)
(ACPI, Advanced Configuration and Power Interface)
.
APM/ACPI .

halt, reboot shutdown.


raid (optional)
RAID-. :
raid <_> --level=<> --device=<md> <*>

<_> RAID. /,
RAID 1. , /boot
1, (/) . <*>
RAID RAID-.
--level= RAID (0, 1 5).
--device= RAID ( md0 md1).
RAID md0 md7,
.

383

32. -
--bytes-per-inode= inode RAID-
. ,
.
--spares= , RAID-.
.
--fstype= RAID-.
xfs, ext2, ext3, ext4, swap, vfat hfs.
--fsoptions=
. /etc/fstab;
.
--noformat , RAID,
RAID- .
--useexisting ,
RAID, .
--encrypted RAID.
--passphrase= RAID.
--encrypted,
. ,
, . ,
.
--escrowcert=URL__X.509
/,
X.509. ,
--encrypted.
--backuppassphrase=
. /,
X.509 ( --escrowcert).
, --escrowcert.
, / (RAID1) /usr
(RAID5). , SCSI.
, .
part raid.01 --size=60 --ondisk=sda
part raid.02 --size=60 --ondisk=sdb
part raid.03 --size=60 --ondisk=sdc

part swap --size=128 --ondisk=sda


part swap --size=128 --ondisk=sdb
part swap --size=128 --ondisk=sdc

part raid.11 --size=1 --grow --ondisk=sda


part raid.12 --size=1 --grow --ondisk=sdb
part raid.13 --size=1 --grow --ondisk=sdc

raid / --level=1 --device=md0 raid.01 raid.02 raid.03


raid /usr --level=5 --device=md1 raid.11 raid.12 raid.13

384


32.4.1, raid
.
reboot ()
( ).
Anaconda .
reboot shutdown -r.
System z
reboot.
, halt,
poweroff shutdown.
, halt.

reboot
.

repo ()
yum,
. ,
.
repo --name=<ID_> [--baseurl=<URL>;| --mirrorlist=<URL>]

--name= ().
--baseurl= URL . ,
yum.
--mirrorlist; .
--mirrorlist= URL .
,
yum. --baseurl;
.
rootpw ()
root.
rootpw [--iscrypted] <>

--iscrypted , ,
.
selinux ()
SELinux ( anaconda ).
selinux [--disabled|--enforcing|--permissive]

385

32. -
--enforcing SELinux
.

selinux , SELinux
--enforcing.

--permissive SELinux.
--disabled SELinux.
SELinux Red Hat Enterprise Linux
Red Hat Enterprise Linux 6.
services ()
, .
, disabled,
enabled.
--disabled , .
--enabled , .


. :
services --disabled auditd, cups,smartd, nfslock
auditd.
, :
services --disabled auditd,cups,smartd,nfslock

shutdown ()
. ,
halt.
shutdown shutdown.
, halt,
poweroff reboot.
skipx ()
, X.
sshpw ()
ssh , telnet.
,
. ,
.
386

sshpw --username=<> <> [--iscrypted|--plaintext] [--lock]

--username= . .
--iscrypted , ,
. , --plaintext ,
.
--lock , .
.
text ()
.
.


, .
, anaconda
, , .

timezone ()
.
timeconfig.
timezone [--utc] <_>

--utc , ,
(UTC).
upgrade ()
, .
: cdrom, harddrive, nfs url ( FTP
HTTP). install.
user ()
.
user --name=<> [--groups=<>] [--homedir=<_>] [-password=<>] [--iscrypted] [--shell=<>] [--uid=<UID>]

--name= . .
--groups= , ,
. .
--homedir= . ,
/home/<>.
--password= . ,
.
387

32. -
--iscrypted= , , -password.
--shell . ,
.
--uid= UID . ,
, .
vnc ()
VNC,
.
, VNC
.
vnc [--host=<>] [--port=<>] [--password=<>]

--host= VNC- , ,
VNC, .
--port= VNC.
, Anaconda VNC.
--password= VNC.
, .
volgroup ()
LVM. :
volgroup <> <>; <>

:
--noformat .
--useexisting .
--pesize= .
, , . :
part pv.01 --size 3000
volgroup myvg pv.01
logvol / --vgname=myvg --size=2000 --name=rootvol

32.4.1, volgroup
.
xconfig ()
X Window. ,
X ; , X
Window .
--driver X.
--videoram= .
388


--defaultdesktop= : GNOME KDE ( ,
GNOME KDE %packages).
--startxonboot .
--depth= X Window
. : 8, 16, 24 32. ,
.
zerombr ()
zerombr, , ,
. ,
.
System z. zerombr,
DASD, ,
dasdfmt.
DASD,
- , ,
DASD.
, DASD,
. DASD .
, zerombr yes.
zerombr.
zfcp ()
Fibre Channel (IBM System z).
zfcp [--devnum=<devnum>] [--wwpn=<wwpn>] [--fcplun=<fcplun>]
%include ()
%include ///,
.

32.4.1.
, clearpart, raid, part,
volgroup logvol :
clearpart --drives=hda,hdc --initlabel
# Raid 1 IDE config
part raid.11
--size 1000
--asprimary
part raid.12
--size 1000
--asprimary
part raid.13
--size 2000
--asprimary
part raid.14
--size 8000
part raid.15
--size 1 --grow
part raid.21
--size 1000
--asprimary
part raid.22
--size 1000
--asprimary
part raid.23
--size 2000
--asprimary
part raid.24
--size 8000
part raid.25
--size 1 --grow

--ondrive=hda
--ondrive=hda
--ondrive=hda
--ondrive=hda
--ondrive=hda
--ondrive=hdc
--ondrive=hdc
--ondrive=hdc
--ondrive=hdc
--ondrive=hdc

# You can add --spares=x


raid /
--fstype ext3 --device md0 --level=RAID1 raid.11
raid /safe
--fstype ext3 --device md1 --level=RAID1 raid.12
raid swap
--fstype swap --device md2 --level=RAID1 raid.13
raid /usr
--fstype ext3 --device md3 --level=RAID1 raid.14
raid pv.01
--fstype ext3 --device md4 --level=RAID1 raid.15

raid.21
raid.22
raid.23
raid.24
raid.25

389

32. -

# LVM configuration so that we can resize /var and /usr/local later


volgroup sysvg pv.01
logvol /var
--vgname=sysvg --size=8000
--name=var
logvol /var/freespace
--vgname=sysvg --size=8000
--name=freespacetouse
logvol /usr/local
--vgname=sysvg --size=1 --grow --name=usrlocal

LVM RAID, ,
.

32.5.
: @Everything
, %packages
@Everything *. Red Hat .
,
. , ,
@Conflicts (), Server Client.
@Everything, @Conflicts ()
:
@Everything (Server)
-@Conflicts

, Red Hat @Everything


@Conflicts ().

%packages
( ,
).
, .
. /repodata/
comps-*.xml DVD Red Hat Enterprise Linux.
, , , .
, , ;
, , ,
, , .
, .
, ,
%packages.
%packages:
%packages
@ X Window System
@ GNOME Desktop Environment
@ Graphical Internet
@ Sound and Video
dhcp

390

,
, ,
@, , ,
comps.xml. ,
, gnome-desktop. (
dhcp ).
, :
-autofs

%packages :
--nobase
@Base. ,
.
--resolvedeps
--resolvedeps ;
.
--ignoredeps
--ignoredeps ;
.
--ignoremissing
,
, . :
%packages --ignoremissing

32.6. ,
,
ks.cfg. ( )
%pre. %pre ;
, IP-.

, chroot.

--interpreter /usr/bin/python
, , Python. /usr/bin/python
.

32.6.1.
%pre:
%pre
#!/bin/sh

391

32. -
hds=""
mymedia=""
for file in /proc/ide/h* do
mymedia=`cat $file/media`
if [ $mymedia == "disk" ] ; then
hds="$hds `basename $file`"
fi
done
set $hds
numhd=`echo $#`
drive1=`echo $hds | cut -d' ' -f1`
drive2=`echo $hds | cut -d' ' -f2`
#Write out partition scheme based on whether there are 1 or 2 hard drives
if [ $numhd == "2" ] ; then
#2 drives
echo "#partitioning scheme generated in %pre for 2 drives" > /tmp/part-include
echo "clearpart --all" >> /tmp/part-include
echo "part /boot --fstype ext3 --size 75 --ondisk hda" >> /tmp/part-include
echo "part / --fstype ext3 --size 1 --grow --ondisk hda" >> /tmp/part-include
echo "part swap --recommended --ondisk $drive1" >> /tmp/part-include
echo "part /home --fstype ext3 --size 1 --grow --ondisk hdb" >> /tmp/part-include
else
#1 drive
echo "#partitioning scheme generated in %pre for 1 drive" > /tmp/part-include
echo "clearpart --all" >> /tmp/part-include
echo "part /boot --fstype ext3 --size 75" >> /tmp/part-includ
echo "part swap --recommended" >> /tmp/part-include
echo "part / --fstype ext3 --size 2048" >> /tmp/part-include
echo "part /home --fstype ext3 --size 2048 --grow" >> /tmp/part-include
fi


, . ,
, :
%include /tmp/part-include

, .

%pre
.
ks.cfg, %pre .

32.7. ,
, .
%post.
%post
.

392

IP, , %post
IP-.
DHCP, /etc/resolv.conf ,
%post. ,
IP- , DHCP, %post
IP-.

%post chroot,
( RPM ) .

--nochroot
chroot.
/etc/resolv.conf
.
%post --nochroot
cp /etc/resolv.conf /mnt/sysimage/etc/resolv.conf

--interpreter /usr/bin/python
, , Python. /usr/bin/python
.
--log ///
.
--nochroot. --nochroot:
%post --log=/root/ks-post.log

--nochroot:
%post --nochroot --log=/mnt/sysimage/root/ks-post.log

32.7.1.
Red Hat Network Satellite :
%post --log=/root/ks-post.log
wget -O- http://proxy-or-sat.example.com/pub/bootstrap_script | /bin/bash
/usr/sbin/rhnreg_ks --activationkey=<_>

runme, NFS-:
mkdir /mnt/temp
mount -o nolock 10.10.0.2:/usr/new-machines /mnt/temp

393

32. -
openvt -s -w -- /mnt/temp/runme
umount /mnt/temp

NFS- ,
NFS- -o nolock.

32.8.
:
;
-;
.
.
,
, .
.

32.8.1.
.
- USB-. ks.cfg -
.
- ks.cfg
.
, , . 2.3,
; file.iso, ks.cfg
isolinux/.
- ks.cfg
. ,
ks.cfg.
2.3,
LiveUSB boot.iso,
Red Hat.

USB- ,
BIOS. , ,
.

394

32.8.2.
- ,

.
BOOTP/DHCP NFS. BOOTP/DHCP
, , , NFS. ,
.
-,
BOOTP/DHCP. ,
Red Hat Enterprise Linux. BOOTP/DHCP
.
BOOTP/DHCP,
NFS .
BOOTP/DHCP.
dhcpd.conf DHCP-:
filename "/usr/new-machine/kickstart/"; next-server blarg.redhat.com;

filename ,
, next-server NFS.
, BOOTP/DHCP, (/),
.
NFS
<IP->-kickstart

<IP-> . , 10.10.0.1
: 10.10.0.1-kickstart.
, NFS-
, BOOTP/DHCP. ,
/kickstart BOOTP/DHCP
<IP->-kickstart.

32.9.
- .
DVD Red Hat Enterprise Linux .
DVD, -, DVD Red
Hat Enterprise Linux .
, ISO- Red Hat Enterprise
Linux .
(NFS, FTP, HTTP)
(. 4.1, ).

395

32. -

32.10. -
- Firstboot
X Window
, Firstboot .
user ,
(. 32.4, ), root
adduser.

-,
DVD Red Hat Enterprise Linux
. ,
ks.
DVD
DVD Red Hat Enterprise Linux linux ks= ,
ks.cfg vfat ext2 .

, dd. ,
, boot:
linux ks=hd:://ks.cfg dd

CD-ROM
CD (. 32.8.1,
), ,
boot: :
linux ks=cdrom:/ks.cfg

-:
askmethod
DVD ,
DVD Red Hat Enterprise Linux.
autostep
.
debug
pdb.
dd
.
dhcpclass=<>
DHCP. dhcpcd
option vendor-class-identifier.

396

-
dns=<dns>
.
driverdisk
dd.
expert
:
;
.
gateway=<>
.
graphical
.
FTP HTTP.
isa
ISA.
ip=<IP>
IP- . DHCP dhcp.
keymap=<>
. ,
keyboard.
ks=nfs:<>:/<>
NFS.
Ethernet- DHCP. , ,
/mydir/ks.cfg server.example.com, :
ks=nfs:server.example.com:/mydir/ks.cfg.
ks=http://<>/<>
HTTP. Ethernet-
DHCP. , , /mydir/
ks.cfg server.example.com, : ks=http://
server.example.com/mydir/ks.cfg.
ks=hd:<>:/<>
(vfat ext2). :
ks=hd:sda3:/mydir/ks.cfg
ks=bd:<bios>:/<>
BIOS. :
ks=bd:80p3:/mydir/ks.cfg. , RAID- BIOS.
ks=file:/<>
. ,
initrd.
ks=cdrom:/<>
-.

397

32. -
ks
ks , Ethernet- DHCP.
, bootServer
DHCP. bootServer DHCP.
:
DHCP /,
NFS.
DHCP, /,
/kickstart NFS.
DHCP , /
kickstart/1.2.3.4-kickstart, 1.2.3.4 IP- ,
.
ksdevice=<>
.
, NFS eth1.
, ,
ks=nfs:<>:/<> ksdevice=eth1.
kssendmac
HTTP ks=http://. MAC-
CGI X-RHN-Provisioning-MAC-0: eth0 01:23:45:67:89:ab.
lang=<>
. ,
lang.
loglevel=<>
. : debug, info,
warning, error, critical. info.
mediacheck
( ISO-).
netmask=<>
.
nofallback
.
nofb
VGA16,
.
nofirewire
Firewire.
noipv6
IPv6 .

398

PXE-
PXE- IPv6
, anaconda .
.

nomount
Linux .
nonet
.
noparport
.
nopass
.
.
nopcmcia
PCMCIA-.
noprobe
;
.
noshell
tty2 .
nousb
USB ( ).
nousbstorage
usbstorage.
SCSI.
repo=cdrom
DVD.
repo=ftp://<>
FTP-.
repo=hd:<>:<>
.
repo=http://<>
HTTP-.
repo=nfs:<>
NFS-.
rescue
.

399

32. -
resolution=<>
(, 1024x768).
serial
.
skipddc
DDC- ,
.
syslog=<>[:<>]
syslog (
). , syslog
( -r).
text
.


, .
, anaconda
, , .

updates
.
updates=ftp://<>
.
updates=http://<>
.
upgradeany
/etc/redhat-release, , .
vnc
VNC-. ,
VNC.
vncconnect=<>[:<>]
VNC.
vnc.
vncpassword=<>
VNC-.
VNC-.
vnc.

400


,
,
.
, X Window.
=> => Kickstart
/usr/sbin/system-config-kickstart.
, , ,
su - yum install system-config-kickstart,
.
, => .
, => .

33.1.

33.1.
,
, .
.
. UTC,
UTC.
root root.
. , , ,
. ,
root.
.
401

33.
.
, ,
.
, Red Hat Enterprise Linux.
,
.
,
.

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

33.2.

33.2.

. ,
. -.
:
DVD , DVD Red Hat Enterprise Linux.
402


NFS ,
NFS. NFS- IP-. ,
NFS-, NFS-, .
, NFS- /mirrors/redhat/i386/Server, /
mirrors/redhat/i386.
FTP , FTP-.
FTP- IP-. ,
FTP, , .
, FTP- /mirrors/redhat/i386/Server/, /
mirrors/redhat/i386/Server/. .
HTTP , HTTP-.
HTTP- IP-.
HTTP , . , HTTP-
/mirrors/redhat/i386/Server/, /mirrors/redhat/i386/
Server/.
, .
ISO-. ,
md5sum linux mediacheck
(. 28.6.1, ).
ISO- (, /dev/hda1) .
.

33.3.

33.3.
, x86 x86_64.
GRUB Red Hat Enterprise Linux x86
x86_64. ,
. ,
(, ).
403

33.
, ( MBR /boot).
MBR,
.
, .
, IDE CD-ROM,
SCSI, cdrecord,
hdd=ide-scsi ( hdd CD-ROM).
GRUB .
GRUB .
. ,
GRUB. ,
.
.
,
,
, .

33.4.

33.4.
, MBR. , ,
Linux .
, (, msdos
x86 gpt Itanium), ,
.

404

naconda LVM, LVM


.

33.4.1.
, .
(. 33.5, ). ,
.
:
,
,
. swap,
.
().
. ,
IDE (/dev/hda), hda. /dev .
. ,
IDE (/dev/hda1), hda1.
/dev .
.

405

33.

33.5.
, .
, (. 33.5,
), .
OK.
, .

33.4.1.1. RAID-
RAID-, :
1. RAID.
2. RAID.
3. , ,
RAID. ,
, .
406

33.6. RAID-
, ,
RAID-. , RAID-.
, RAID-,
:
1. RAID.
2. RAID.
3. , , RAID-, RAID,
RAID-, RAID-
, .

407

33.

33.7. RAID
4. OK .

408

33.5.

33.8.
, , Ethernet,
.
, (NFS, FTP
HTTP).
(system-config-network).
Red Hat Enterprise Linux.
Ethernet-
. eth0 Ethernet, eth1 ..

409

33.

33.6.

33.9.
, MD5
.
.
:
NIS
LDAP
Kerberos 5
Hesiod
SMB
Name Switch Cache
. ,
, .
Red Hat Enterprise
Linux.

33.7.

.

410

SELinux

33.10.
,
. .
, ,
( ).
, , DNS DHCP-.
, , .
,
. .
, eth1 , ,
.
,
.
,
. :. ,
IMAP- , imap:tcp.
; , UDP- 1234, 1234:udp.
, .

33.7.1. SELinux
() SELinux,
. .

33.8.
X Window, -,
X Window (. 33.11,
411

33.
X). , X ,
skipx.

33.11. X
, .
, ,
.
, , ,
root, , .

33.9.

33.12.
412

,
.
.

. , %packages
(. 32.5, ).

33.10. ,

33.13. ,
, ,
. ,
. ,
, .

Anaconda busybox
Red Hat Enterprise Linux anaconda busybox,
. Red Hat Enterprise
Linux 6 busybox bash.
G, busybox .

,
. ,
/usr/bin/python2.6 Python.
%pre --interpreter /usr/bin/python2.6 .
:
413

33.
arping, awk, basename, bash, bunzip2, bzcat, cat, chattr, chgrp, chmod, chown, chroot,
chvt, clear, cp, cpio, cut, date, dd, df, dirname, dmesg, du, e2fsck, e2label, echo,
egrep, eject, env, expr, false, fdisk, fgrep, find, fsck, fsck.ext2, fsck.ext3, ftp,
grep, gunzip, gzip, hdparm, head, hostname, hwclock, ifconfig, insmod, ip, ipcalc,
kill, killall, less, ln, load_policy, login, losetup, ls, lsattr, lsmod, md5sum, mkdir,
mke2fs, mkfs.ext2, mkfs.ext3, mknod, mkswap, mktemp, modprobe, more, mount, mt, mv,
nslookup, openvt, pidof, ping, ps, pwd, readlink, rm, rmdir, rmmod, route, rpm, sed, sh,
sha1sum, sleep, sort, swapoff, swapon, sync, tail, tar, tee, telnet, top, touch, true,
tune2fs, umount, uniq, vconfig, vi, wc, wget, xargs, zcat.

%pre. .

%pre
. ,
.

33.11. ,

33.14. ,
,
. , ,
, .
, , .
414

chroot

Anaconda busybox
Red Hat Enterprise Linux anaconda busybox,
. Red Hat Enterprise
Linux 6 busybox bash.
G, busybox .

%post. .

, ,
%post:

echo " " > /etc/motd

32.7.1, .

33.11.1. chroot
chroot,
. --nochroot %post.

, chroot, /mnt/sysimage/ .
, chroot,
:

echo " " > /mnt/sysimage/etc/motd

33.11.2.
,
. , /usr/bin/python2.2
Python. %post --interpreter /
usr/bin/python2.2 .

33.12.
=> .
415

33.

33.15.
, .
, => Ctrl+S.
.
- (.
32.10, -).

416

V.
, ,
. :
Red Hat Enterprise
Linux;
Red Hat Enterprise Linux;
Red Hat Enterprise Linux.

Firstboot
Firstboot
Firstboot , X
Window, .
Firstboot .

Firstboot Red Hat Enterprise Linux.


.

34.1. firstboot
firstboot.

34.1.
Red Hat Enterprise Linux.
419

34. Firstboot

34.2.
.

34.2.
Red Hat Network (RHN)
RHN Satellite. ,
.

420

34.3.
, ,
rhn_register.

34.2.1.
, : RHN,
Red Hat Network Satellite Red Hat Network Proxy. , .

421

34. Firstboot

34.4.

34.2.2. RHN
Red Hat Network. ,
http://www.redhat.com/wapps/sso/rhn/lostPassword.html ,
Red Hat Satellite, .

422

34.5. RHN

34.2.3.
RHN.
RHN.
, ,
.
, .

423

34. Firstboot

34.6.

34.2.4.
,
, Red Hat Network. .

424

34.7.

34.2.5.
.
(. 34.3,
).

425

34. Firstboot

34.8.

34.3.
. ( root)
.

426

34.9.
, .
.
,
(. 34.3.1, ).


,
Red Hat Enterprise Linux . 10.4.2,
, ,
.

427

34. Firstboot


,
.

34.3.1.
,
. :
( );
LDAP (Lightweight Directory Access Protocol);
NIS (Network Information Service);
Winbind ( Microsoft Active Directory);

34.10.
. ,
LDAP, LDAP LDAP.
(, Kerberos, LDAP
NIS).

( , - /etc/security/
access.conf).
428

34.11.

34.4.
,
.

429

34. Firstboot

34.12.
,
NTP (Network Time Protocol) NTP.
, .
, NTP.

34.5. Kdump
. ,
Kdump,
.

430

Kdump

34.13. kdump
kdump, Kdump
. Kdump,
.

431

34. Firstboot

34.14. Kdump

432


35.1.
Red Hat Red Hat Enterprise Linux
.
, .
, Red Hat Enterprise
Linux.

35.1.1.
, Red
Hat .
(. 6,
Intel AMD 13, IBM
POWER), .
.
, .
,
/
root. , kmod- ( )
.

35.1.

$ rpm -qa | egrep ^kmod-

433

35.
kmod.
, kmod- (
). .
.
:
1.

RPM- . kmod ( kernel


module). :
kmod-ipw3945-1.2.04.17.el6.i686.rpm
Intel IPW3945 WiFi 1.2.0-4.17 Red
Hat Enterprise Linux 6 i686. Xen
xen.
kmod-ipw3945-xen-1.2.04.17.el6.i686.rpm

. ,

$ rpm --checksig -v filename.rpm

filename.rpm .
GPG- Red Hat,
Red Hat Enterprise Linux 6. ,
: https://www.redhat.com/security/team/key/
2.

. ,
root , :

35.2.
, .
434


,
$ rpm -ivh kmod-ipw3945-1.2.04.17.el6.i686

3.

, ,
.

Red Hat Red Hat Enterprise Linux,



. Red Hat Red Hat
Enterprise Linux, .
,
Red Hat Enterprise Linux. Red Hat
.

35.2.


(. 35.1, ).

Red Hat Enterprise Linux, ,


. 9.11.2,
, 16.13.2,
23.12.1, (
) .
, .
,
release. :
awk '{print $1}' ~/old-pkglist.txt | grep 'release$'

, .
yum .
:
awk '{print $1}' ~/old-pkglist.txt | sort | uniq > ~/old-pkgnames.txt
rpm -qa --qf '%{NAME} ' | sort | uniq > ~/new-pkgnames.txt
diff -u ~/old-pkgnames.txt ~/new-pkgnames.txt | grep '^-' | sed 's/^-//' > /tmp/pkgs-toinstall.txt

yum :
su -c 'yum install `cat /tmp/pkgs-to-install.txt`'

435

35.


Red Hat Enterprise
Linux , .
, , .

35.3.


. DVD Red Hat Enterprise Linux
Red Hat Network Red Hat
Enterprise Linux (. 35.3.1,
).

System z
System z, vncserver.

,
.
1.

root:
su -

.
2.

X Window
. , GNOME :
yum groupinstall "X Window System" "GNOME Desktop Environment"

KDE:
yum groupinstall "X Window System" KDE

XFCE:
yum groupinstall "X Window System" XFCE

.
, ,
.
436
3. /etc/inittab :

vi /etc/inittab

4.

I .

5.

initdefault 3 5.

6.

:wq Enter, vi.

reboot .
10, Intel AMD
.

35.3.1.
Red Hat Enterprise Linux
. Red Hat Enterprise Linux
Red Hat Network DVD .
, - Red Hat .
,
- DVD
.

35.3.1.1.
Red Hat Network,
Red Hat Enterprise Linux. , ,
. ,
:
1.

root:
su -

2.

, .
.

3.

system-config-network .

4.

Enter.
. eth0.

5.

Enter. .

6.

IP, DNS
. , OK,
.

7.

Enter .

8.

Enter, .

9.

ifup , . :
ifup eth0.

437

35.

.

35.3.1.2. DVD Red Hat Enterprise Linux


DVD Red Hat Enterprise Linux
.
1.

DVD-.

2.

root:
su -

3.

():
mkdir -p ///

, /mnt/repo
4.

DVD- .
DVD-. cat /proc/sys/dev/cdrom/info
. CD/DVD- sr0.
DVD-:
mount -r -t iso9660 /dev/ ///

: mount -r -t iso9660 /dev/sr0 /mnt/repo


ISO-.
mount -r -t iso9660 -o loop ///.iso ///

: mount -r -o loop /home/root/Downloads/RHEL6-Server-i386-DVD.iso /


mnt/repo
,
. ,
, ,
, . , ,
/dev/sdb ,
Downloads, :
mkdir /mnt/temp
mount /dev/sdb1 /mnt/temp
mkdir /mnt/repo
mount -r -t iso9660 -o loop mount -r -o loop /mnt/temp/Downloads/RHEL6-Server-i386DVD.iso /mnt/repo

, , mount
. fdisk -l
.

438


5.

/etc/yum.repos.d/.
.repo. : dvd.repo
1.

vi.
vi /etc/yum.repos.d/dvd.repo

2.

I .

3.

. :
[dvd]
baseurl=file:///mnt/repo/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

([dvd]). ,
, .
baseurl .
DVD- Red Hat Enterprise Linux,
/Server, , /
Client.
4.

Esc .

5.

:wq Enter, vi.

6.

DVD.

439

440


, ,
. ,
,
.

36.1.
36.1.1.
:
Red Hat Enterprise Linux ( 3
5).

.
root.

36.1.1.1. Red Hat Enterprise Linux



Red Hat Enterprise Linux. ,
,
(MBR, Master Boot Record), GRUB.
, Red Hat Enterprise Linux ,
.
,
,
, .
/ , , .
, /boot/grub/
grub.conf.
36.1.2.1,
GRUB .

36.1.1.2.
. ,
.
Red Hat Enterprise Linux.
, ,
.

36.1.1.3. root
, root? ,
passwd.

441

36.

36.1.2.
Red Hat Enterprise Linux
CD .
, .
Red Hat Enterprise Linux
, .
, Red Hat Enterprise
Linux, .
, Red Hat
Enterprise Linux .
,
1
:
CD/DVD.
, USB-.
DVD Red Hat Enterprise Linux.
, rescue. , x86
:

linux rescue

, ,
.
: CD-ROM, , NFS, FTP HTTP.
, -
Red Hat Enterprise Linux, .
- ,
, .
, NFS, FTP HTTP-
.
, ,
, .
, , ,
- RPM- .
:
Linux
/mnt/sysimage.
. .
-.
,
.
/mnt/
sysimage. , .

442


/mnt/
sysimage/ . ,
. , , .
, VC 1 VC 2
( Ctrl-Alt-F1 1
Ctrl-Alt-F2 2):

sh-3.00b#


, .
,
, ,
( 3 5). ,

, :

chroot /mnt/sysimage

, ,
/ ( rpm). chroot,
exit.
LVM2
, , , /foo,
:

mount -t ext4 /dev/mapper/VolGroup00-LogVol02 /foo

/foo , /dev/mapper/VolGroup00LogVol02 LVM2, .


ext2 ext3, ext4 ext2 ext3.
, :

fdisk -l

LVM2, ,
, :

pvdisplay

vgdisplay

443

36.
lvdisplay

, :
ssh, scp ping, ;
dump restore, ;
parted fdisk ;
rpm ;
joe .

, emacs, pico
vi, joe.

36.1.2.1.
, GRUB ,
.
GRUB :
.
linux rescue, .
chroot /mnt/sysimage, .
/sbin/grub-install , GRUB (
, /dev/sda).
/boot/grub/grub.conf; ,
GRUB .
.

36.1.3.
,
CD-ROM;
.
, ,
.
.
, . ,
. ,
.
, .
444


, 1
.
x86 GRUB,
:
1. GRUB ,
GRUB.
2. Red Hat Enterprise Linux , ,
a .
3. single (
single). Enter .

36.1.4.
.
.
,
init . init ,
, ,
.
, ,
(. 36.1.3, ),
single emergency.

36.2. POWER
,
,
.
(. 15.2, )
. ,
,
IPL (. 16.20,
).
, exit 0, C. A, B
*NWSSTG .

36.2.1. SCSI

DASD, ,
SCSI . .
-
.
CD-ROM, .
CD-ROM,
NFS:
445

36.
1. CD-ROM linux rescue askmethod.
NFS CD-ROM,
.
2. Linux.
3. , FTP NFS.
4. . IPL
CD. IPL
boot.img IFS ( 1).
5. .
6. IPL Linux.
7. (. 36.2, POWER).
NFS FTP
.
8. Linux CD-ROM
SCSI.

446


Red Hat
Enterprise Linux.

37.1. ?

Anaconda Red Hat Enterprise Linux 6,
Red Hat Red
Hat Enterprise Linux ( , Red Hat
Enterprise Linux 4 Red Hat Enterprise Linux 5).
,
. , Red Hat
.

Red Hat Enterprise Linux 4.4 , ,


, Red Hat Enterprise Linux 6
.
Red Hat Enterprise Linux 4 RHN.

.
Red Hat Enterprise Linux
http://www.redhat.com/docs/wp/.
Red Hat Enterprise Linux 4.4,
.
, , :

.
Red Hat (,
Cluster Suite), ,
.
ISV
.

.
,
.rpmsave (, sendmail.cf.rpmsave). /root/
upgrade.log .
447

37.

,

.

. ,

, .


. -, ,
.
, , , .
,
.
, ,
. 128
, .

37.2.
,
.

/etc/redhat-release ,
Red Hat Enterprise Linux 6 Red Hat Enterprise Linux
.
,
:
linux upgradeany

linux upgradeany, Red Hat Enterprise Linux


.

,
.
Red Hat Enterprise Linux

http://www.redhat.com/docs/wp/, 9,
448


Anaconda, 16, anaconda 23, .
Anaconda.
Red Hat Enterprise Linux,
Red Hat Enterprise Linux. 9, Anaconda, 16,
anaconda, 23, . Anaconda .

449

450

Red Hat Enterprise Linux


x86
!
Red Hat Enterprise Linux,
. CD, DVD,
.

.
Red Hat Enterprise Linux
, ,
. , Microsoft Windows
, Red Hat Enterprise Linux ext2,
ext3, ext4. .

Red Hat Enterprise Linux x86,


Red Hat Enterprise Linux MBR , .
Red Hat Enterprise Linux
, Red Hat Enterprise Linux
.
.

,
. .
E, GRUB ,
.

Windows
Fdisk , MS-DOS Microsoft Windows,
, Red Hat Enterprise Linux. MSDOS Windows, Windows XP ( Windows 2000)
. 38.3, Red Hat
Enterprise Linux Microsoft Windows MS-DOS
MS-DOS Windows.

38.1. Red Hat Enterprise Linux



Red Hat Enterprise Linux ,
.
Windows XP, DVD Windows Vista
Linux.
451

38. Red Hat Enterprise Linux x86


,
Microsoft Windows,
Windows,
.
. , ,
.
:
1. .
2. .
3. .
4. . Windows, OS X
Linux
.
.
Microsoft Windows
.

38.2. : Red Hat Enterprise Linux



Red Hat Enterprise Linux ,
Red Hat Enterprise Linux ,
, .
. , Red Hat Enterprise Linux ,
(. 38.1, Red Hat Enterprise Linux
).

452

: Red Hat Enterprise Linux Microsoft Windows

38.2.1. : Red Hat Enterprise Linux Microsoft


Windows
38.2.1.1. Windows 2000, Windows Server 2000, Windows XP, Windows
Server 2003

, ,
. ,
. , ;
.
Windows,
Windows.
, , ,
. Windows
.
Windows .
, .

1. Red Hat Enterprise Linux


a. Microsoft Windows.
b. >..., diskmgmt.msc Enter.
.
.
NTFS C:. 2 Red
Hat Enterprise Linux , , ,
.
c.

Red Hat Enterprise Linux ,


,
. . Windows
.

2. Windows
Red Hat Enterprise Linux .

Red Hat Enterprise Linux.


, Windows.

WIndows
Windows. Windows
.
453

38. Red Hat Enterprise Linux x86


Windows

diskpart Windows XP Windows 2003.


Windows 2000 Windows Server 2000
diskpart Microsoft.

a. >..., diskpart Enter.


.
b. list volume Enter.
, , ,
. Windows,
Red Hat Enterprise Linux ,
(, Volume 0).
c.

select volume N, N Windows


Enter. extend Enter.
.

Windows
a.
.
.
b. .
, ,
.
NTFS.
3. Windows
a. Windows .
:
CD

. Windows.
b.
Windows.
Windows:
Windows 2000 Windows Server 2000 R, C.
Windows XP Windows Server 2003 R.
c.

454

Windows Windows
, .
Windows, .

: Red Hat Enterprise Linux Microsoft Windows


d. Windows .
Enter. ,
Enter.
e. fixmbr MBR.
f.

exit Enter.

g. Windows.

38.2.1.2. Windows Vista Windows Server 2008

, ,
. ,
. , ;
.
Windows,
Windows. ,
, , .
Windows
.

1. Red Hat Enterprise Linux


a. Microsoft Windows.
b. , diskmgmt.msc Enter.
.
.
NTFS C:. 2 Red
Hat Enterprise Linux , , ,
.
c.

Red Hat Enterprise Linux ,


,
. . Windows
.

2. Windows
Red Hat Enterprise Linux .

Red Hat Enterprise Linux.


, Windows.

455

38. Red Hat Enterprise Linux x86


WIndows
Windows. Windows
.
Windows
a. Windows,
, .
.
b. .
, .
Windows
a.
.
.
b. .
, ,
.
NTFS.
3. Windows
a. Windows .
:
CD DVD

. Windows.
b. Windows , ,
. .
c.

d. Windows Windows.
.
e. , .
f.

bootrec /fixmbr Enter.

g. , .
h. Windows.

456

: Red Hat Enterprise Linux Linux

38.2.2. : Red Hat Enterprise Linux


Linux

- Linux
. GParted
gedit, .

1. Red Hat Enterprise Linux


a. Linux, .
b. GParted gparted
.
c.

GParted .
, .

2. Red Hat Enterprise Linux


, GRUB.
(, LILO)
Red Hat Enterprise Linux .

a. su -. root Enter.
b. gedit /boot/grub/grub.conf, grub.conf
gedit.
c.

Red Hat Enterprise Linux grub.conf :


38.1. Red Hat Enterprise Linux grub.conf
title Red Hat Enterprise Linux (2.6.27.19-170.2.35.el5.i686)
root (hd0,1)
kernel /vmlinuz-2.6.27.19-170.2.35.el5.i686 ro root=UUID=04a07c13-e6bf-6d5ab207-002689545705 rhgb quiet
initrd /initrd-2.6.27.19-170.2.35.el5.i686.img

Red Hat Enterprise Linux Linux.
Red Hat Enterprise Linux.

d. grub.conf , ,
. : default=N, N .
N , GRUB .
457

38. Red Hat Enterprise Linux x86


,
.
, default=
.
grub.conf gedit.
3.

Red Hat Enterprise Linux.


,
Linux.

Live- Linux,
LiveCD Fedora DVD Knoppix.

Red Hat Enterprise Linux,


, ,
LVM .
LVM
a. Live gparted (
).
b. GParted gparted
.
c.

GParted .
.

d. .
, ,
. .
e. GParted .
(, /dev/sda3).
f.

e2fsck . ,
/dev/sda3,
e2fsck /dev/sda3.
Linux .

g. resize2fs
. , /dev/sda3,
resize2fs /dev/sda3.
458

: Red Hat Enterprise Linux Linux


Linux ,
.
h. , .
LVM
a. Live gparted lvm2 (
).
b. ,
i. GParted gparted
.
ii.

GParted .

.

iii. , .
, . ,
/dev/sda3 /dev/sda.
c.


i. fdisk LVM.
fdisk , ,
. , : fdisk /dev/sda.
ii.

Command (m for help): T Enter,


.

iii. Partition number (1-4): .


, /dev/sda3, 3 Enter
.
iv. Hex code (type L to list codes): 8e
Linux LVM Enter.
v.

Command (m for help): W Enter


.

d.
i. lvm Enter lvm2.
ii.

lvm> pvcreate ,
. , pvcreate /dev/sda3
/dev/sda3 LVM.

iii. lvm> vgextend _


, _ LVM,
Linux, . , vgextend /
dev/VolumeGroup00 /dev/sda3 ,
/dev/sda3.
iv. lvm> lvextend -l +100%FREE
_, , Linux.
, lvextend -l +100%FREE /dev/VolGroup00/LogVol00

459

38. Red Hat Enterprise Linux x86


LogVol00 ,
VolGroup00.
v.

lvm> exit lvm2.

e. e2fsck _, _
, . ,
/dev/VolumeGroup00/LogVol00, e2fsck /dev/
VolumeGroup00/LogVol00.
Linux .
f.

resize2fs
_. , /dev/VolumeGroup00/
LogVol00, resize2fs /dev/VolumeGroup00/LogVol00.
Linux ,
.

g. , .

38.3. Red Hat Enterprise Linux


Microsoft Windows MS-DOS
DOS Windows fdisk MBR
/mbr.
, DOS-. :

fdisk /mbr

Linux fdisk,
, . -DOS ,
, DOS.
, DVD Red Hat Enterprise Linux .
linux rescue .
.
Red Hat Enterprise Linux.
, , Red Hat Enterprise
Linux . .
, .
list-harddrives
, , .

Red Hat Enterprise Linux.


.

460

Red Hat Enterprise Linux Microsoft Windows MS-DOS


parted. parted ,
/dev/hda , :
parted /dev/hda

print ,
:
print

print (, linux-swap, ext2, ext3, ext4).


.
rm.
3 :
rm 3

[Enter],
.

, print , .
, quit parted.
parted, exit
. .
, , Control+Alt+Delete.

461

462

Red Hat Enterprise Linux


IBM System z
,
. :
.
, (. 23.13,
) (.
23.16, ).
DASD/SCSI, Linux,
( ). ,
. , :
dasdfmt ( DASD), parted, mke2fs, dd.
.

39.1. z/
VM LPAR
z/VM LPAR
DASD/SCSI ( , ), Red Hat Enterprise
Linux DASD/SCSI.
.

463

464

VI.
Red Hat Enterprise Linux. ,
,
Red Hat Enterprise Linux.

A.

, x86.
.

, x86.
.
,
(. A.1.4, Red Hat Enterprise
Linux), Red Hat
Enterprise Linux. ,
Linux,
.

A.1. :

.
, ,
. ,
, . A.1,
.

A.1.
, ? ,
. , - . ,
, . - .

A.1.1. ,
. .
( )
.

467

A.

A.2.
A.2, ,
:

, .

1
, Linux .
, ,
, .
, .
A.3, ,
. ,
, ,
, .
. , Red Hat Enterprise Linux
(
), .

A.3.
, .
.
.

A.4.
A.4, ,
.
, , .
, , ,
. , ;
468

:
. .
.
,
. , , .
, . ,
.

A.1.2. :
:
?
: .
, , .
,
, .
, , , .
.
.
.


. ,
, . ,
.

A.5.
A.5, ,
.
, ( ).
, , ,
.
:
;
;
.
.
.
. , ,
.
469

A.
. ,
. ,
; , .

, , ,
, .
.
, , ,
(. A.6, ).

A.6.
, ,
, .
, .
, DOS. (. A.1,
), DOS .
A.1,
.
A.1.

00

Novell Netware 386

65

DOS 12- FAT

01

PIC/IX

75

XENIX root

02

MINIX

80

XENIX usr

03

Linux/MINUX

81

DOS 16- <=32

04

Linux swap

82

05

Linux

83

DOS 16- >=32

06

Linux

85

OS/2 HPFS

07

Amoeba

93

AIX

08

Amoeba BBT

94

AIX

09

BSD/386

a5

OS/2 Boot Manager

0a

OpenBSD

a6

Win95 FAT32

0b

NEXTSTEP

a7

Win95 FAT32 (LBA)

0c

BSDI fs

b7

Win95 FAT16 (LBA)

0e

BSDI swap

b8

Win95 (LBA)

0f

Syrinx

c7

Venix 80286

40

CP/M

db

Novell

51

DOS access

e1

470

PReP Boot

41

DOS R/O

e3

GNU HURD

63

DOS

f2

Novell Netware 286

64

BBT

ff

A.1.3.
, .
, ,
.
.
. , A.1,
(extended), .
,
. ,
(
),
. (. A.7, )
, ,
, .

A.7.
,
, -
. , , Linux
, 12 .
, Red Hat Enterprise Linux.

A.1.4. Red Hat Enterprise Linux



:
;
;
.
.
471

A.

,
Red Hat Enterprise Linux.

A.1.4.1.
,
, . A.8,

.

A.8.
(. A.8,
) 1 , 2
, .
,
. ,
.
, .
, , (
Red Hat Enterprise Linux).
, (.
A.1.4.3, ).
.

A.1.4.2. ,

, , ,
. , -
. A.9,
.

A.9.
472

Red Hat Enterprise Linux


1 , 2
Linux (. A.9, ).
, ,
. ,
Linux. , ,
.

A.1.4.3.
. , , .
, ,
.
, ,
, .
, :

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

- ,
.
-,
.


,
Red Hat Enterprise Linux (. A.10, ,
).

A.10. ,
1 , 2 (.
A.10, , ).

473

A.

A.10, , ,
, .


, , , :
, , .
. ?
. ,
, .
,
:
;
;
.
.

A.1.4.3.1.
A.11, ,
. , ,
.

A.11.
1 , 2 .
.
. ,
. (
), ,
.

A.1.4.3.2. ;
A.12,
.
,
, .
474

Red Hat Enterprise Linux

A.12.
1 , 2 .
,
. DOS
Linux.

A.1.4.3.3. .
, .
Linux, , ,
(. A.13, ).

A.13.
1 , 2 .

x86.

parted.
, .
parted, ,
.
. (,
, CD-ROM), , ,
.
parted, , parted
: , , , .
Red Hat Enterprise Linux ,
,
.
475

A.

A.1.5.
Linux , ,
, C, D .. DOS
Windows :
DOS Windows.
, . C
.
.
Red Hat Enterprise Linux ,
, /dev/xxyN.
:
/dev/
, .
, , /dev/
, .
xx
, ,
hd ( IDE), sd ( SCSI).
y
, . , /dev/hda
( IDE) /dev/sdb ( SCSI-).
N
. ( )
1 4. 5. , ,
/dev/hda3 IDE-,
/dev/sdb6 SCSI-.

; DOS/Windows, Red Hat


Enterprise Linux . , ,
Red Hat Enterprise Linux ,

.

, , ,
Red Hat Enterprise Linux.

A.1.6.
Red Hat Enterprise Linux ,
, ,
. Linux ,
.
476

A.1.7.
, Linux, , Linux
. DOS Windows
, ,
.
, Linux,
. ,
, .
,
.
( ()).
, /dev/hda5 /usr/, ,
/usr/ /dev/hda5. , /usr/share/
doc/FAQ/txt/Linux-FAQ /dev/hda5, /etc/gdm/
custom.conf .
, , /usr/
. , (, /dev/hda7)
/usr/local/, , /usr/local/man/whatis
/dev/hda7, /dev/hda5.

A.1.8. ?
,
.
? Linux-,
, ,
, .
, :
-, swap, /boot/ / ().
9.14.5, .

477

478

B. iSCSI
iSCSI (Internet Small Computer System Interface)
SCSI
TCP/IP. iSCSI SCSI,
SCSI. SCSI,
, iSCSI. , ,
iSCSI. , iSCSI
, SCSI- HBA
. Linux ,
Linux iSCSI,
iSCSI.
iSCSI Linux HBA- SCSI,
Linux iSCSI. iSCSI ,
iSCSI SCSI .
Linux iSCSI,
.
. Linux
.
,
iscsiadm . iscsid.
iscsiadm, iscsid iscsi-initiator-utils.

B.1. iSCSI anaconda


Anaconda iSCSI ( ) :
1. anaconda , BIOS ( )
iBFT (iSCSI Boot Firmware Table) BIOS ,
iSCSI. BIOS iBFT, anaconda BIOS
iSCSI ,
.
2. iSCSI
, .
IP, anaconda
. 9.5.1.1,
.
iSCSI anaconda
iscsiadm, iscsiadm iSCSI.
anaconda iSCSI,
/ ,
. / iSCSI, initrd ,
anaconda
.
/ iSCSI, anaconda NetworkManager
. initrd
. NetworkManager
/.

479

B. iSCSI

B.2. iSCSI
iSCSI :
1. initrd iSCSI, /.
iscsistart (
iscsid).
2.
, iscsid , iSCSI,
/, iSCSI
- .
3. iscsi.
, ,
iSCSI . ,
.
4. NetworkManager
(. /etc/NetworkManager/dispatcher.d/04-iscsi).

NetworkManager /usr,
, /usr iSCSI.

iscsid , .
iscsiadm, iscsid.

480

C.
C.1.
?
.
.
,
.

C.2. dmcrypt/LUKS
LUKS (Linux Unified Key Setup) ,

.
dm-crypt LUKS ,
,
. ,
, cryptsetup.

C.2.1. LUKS
LUKS:
LUKS
LUKS :


.
swap.
,
.
LUKS .
LVM, .
LUKS .
.
LUKS .
.
LUKS :
LUKS ,
( ).
LUKS ,
.
481

C.
LUKS http://code.google.com/p/cryptsetup/.

C.2.2.
?
.
, . ,
, .


. .
.

C.2.3.
dm-crypt/LUKS , ,
Anaconda
.
LUKS ,
, . ,
, .
.

C.3.
Anaconda
.
.
,
,
RAID .
. LUKS ,
,
.

482

C.3.1.
?
LUKS.
, LVM,
RAID-.

C.3.2.
-
. anaconda
X.509. --escrowcert
autopart, logvol, part raid.
/, .
, - (. 32, ).

C.3.3.
- anaconda

. URL-
--escrowcert (. C.3.2, )
--backuppassphrase , ,
.
, - (. 32, ).

C.4.


.

C.4.1.
parted, pvcreate, lvcreate, mdadm ,
.

C.4.2. :
(, /dev/sda3)
. ,
.
483

C.


:
dd if=/dev/urandom of=<>

:
badblocks -c 10240 -s -w -t random -v <>

C.4.3. dm-crypt/LUKS

cryptsetup luksFormat <>

cryptsetup(8).

.
:
cryptsetup isLuks <> && echo Success

:
cryptsetup luksDump <>

C.4.4.

device-mapper.
, .
LUKS UUID (Universally Unique Identifier)
. (, /dev/sda3), UUID
, LUKS . UUID LUKS :
cryptsetup luksUUID <>

484


luks-<uuid> ,
. <uuid> ,
luks-50ec957a-5b5a-47ee-85e6-f8085bbc97a8.
, .
cryptsetup luksOpen <> <>

, /dev/
mapper/<>, ,
.
,
dmsetup info <>

dmsetup(8).

C.4.5.

/dev/mapper/<>
. , ext2 ,
mke2fs /dev/mapper/<>

/mnt/test :

/mnt/test .

mount /dev/mapper/<> /mnt/test

C.4.6. /etc/crypttab
,
/etc/crypttab. , , root
(root:root) 0744.

<>

<>

none

UUID=<luks_uuid>, <luks_uuid>
LUKS, cryptsetup
luksUUID <>.
(, /dev/sda5).
485

C.

/etc/crypttab
crypttab(5).

C.4.7. /etc/fstab
/etc/fstab.
.
/dev/mapper/<>.
/etc/fstab
UUID ,
. LUKS /dev/mapper/luks-<luks_uuid>
UUID- .
/etc/fstab.

/etc/fstab fstab(5).

C.5.
,
.

C.5.1.

C.5.1.1.
256- $HOME/keyfile.

dd if=/dev/urandom of=$HOME/keyfile bs=32 count=1


chmod 600 $HOME/keyfile

C.5.1.2.

cryptsetup luksAddKey <> ~/keyfile

486

C.5.2.

cryptsetup luksAddKey <>

C.5.3.
cryptsetup luksRemoveKey <>

,
.

487

488

D. LVM
LVM (Logical Volume Management)
.
,
. ,
, .
, LVM ,
, , ext4 .

/boot LVM
LVM, /
boot ( LVM).
System z zipl /boot
.

LVM, .
,
.

.

, . ,
RAID.
.
,
, .
.

LVM
(/),
LVM /boot.

489

490

E. GRUB
Linux
.
Linux .

E.1.
, Red Hat Enterprise Linux,
. :
E.1.

AMD AMD64

GRUB

IBM eServer System i

OS/400

IBM eServer System p

YABOOT

IBM System z

z/IPL

IBM System z

z/IPL

x86

GRUB

GRUB,
Red Hat Enterprise Linux x86.


GRUB Red Hat Enterprise Linux 6 ext2, ext3, ext4
(). Btrfs, XFS, VFAT /
boot.

E.2. GRUB
GRUB (GRand Unified Bootloader)
. ,
.

E.2.1. GRUB x86


GRUB x86. F.2,
.
GRUB :
1. 1. BIOS (MBR)
1
.
512 1.5 2.
2. 1.5. 1.5 .
, /
boot/ 1024 LBA. 1.5
/boot/, MBR /boot/.
491

E. GRUB
3. 2. .
GRUB .
,
.
4.
/boot/sysroot/. GRUB
, .
Linux ,
.
.
. ,
Microsoft Windows, , .
,
.
GRUB , ,
.

Microsoft DOS Windows MBR,


.
, Microsoft.

E.2.2. GRUB
GRUB ,
. :
GRUB x86.

. , x86,
, .
GRUB LBA (Logical Block Addressing). LBA
IDE
SCSI. BIOS 1024 ,
1024 . LBA GRUB
, 1024 .
BIOS LBA-.
GRUB ext2. GRUB
/boot/grub/grub.conf ,
MBR
. ,
GRUB MBR, /boot/ (.
E.3, GRUB).

E.3. GRUB
GRUB , .
GRUB .
492

GRUB
GRUB GRUB,
DVD.
RPM Red Hat Enterprise
Linux.
GRUB root /
sbin/grub-install <>, . ,
GRUB MBR IDE-:

/sbin/grub-install /dev/hda

, , GRUB.

: GRUB RAID
GRUB RAID-, /boot
. /boot
( RAID 0). RAID 0, /boot
.
/boot , GRUB ,
,
RAID 1. Red Hat , ,
: http://kbase.redhat.com/faq/docs/DOC-7095
, RAID-,
.
RAID, ,
.

E.4. GRUB
, GRUB ( ),
GRUB
.

E.4.1.
GRUB (
):
(<_><bios_>,<_>)
<_> , GRUB.
hd ( ) fd ( ). nd (
). GRUB
http://www.gnu.org/software/grub/manual/.
<bios_> BIOS. , IDE 0, 1. ,
. , a hda 0 hd0 GRUB, b hdb 1 hd1 ..
493

E. GRUB
<_>, , .
<bios_> 0. BSD
, a 0, b 1 ..

GRUB 0.
1.

, , GRUB
(hd0), (hd1).
(hd0,0), (hd1,2).
, :
IDE SCSI,
hd. fd.
, .
, GRUB MBR .
, (hd0) MBR , (hd3) .
,
BIOS. IDE SCSI ;
,
.

E.4.2.
GRUB , ,
.
:
(<_><_>,<_>)<///>
<_> hd, fd nd, <_>
, <///> .
, ,
, .
.
, .
: .
, .
-:

0+50,100+25,200+1

, 0 49,
100 124 200.
GRUB
, .
494

GRUB
, 0. ,
:

(hd0,0)+1

chainloader
( root):

chainloader +1

E.4.3. GRUB
GRUB.
, GRUB
Linux.
GRUB .
, (hd0,0)/grub/splash.xpm.gz /grub/
(hd0,0), /boot/ .
kernel
. Linux.
GRUB ,
.
E.6, GRUB root kernel.

E.5. GRUB
GRUB , .
, Linux
.
:

GRUB
.


GRUB .
.
Enter .
, GRUB , .
e c .
E.7, GRUB
.
495

E. GRUB

e . GRUB,
( o
O ),
(e) (d).
, b .
Esc. c
.

E.8,
GRUB.


GRUB, , ,
.
GRUB , Enter.
Tab, Ctrl
, , Ctrl+a
Ctrl+e . , Home, End Delete
, bash.
E.6, GRUB .

E.5.1.
, GRUB
. , , GRUB.
, GRUB.
, , .
,
,
.
, GRUB
. .
, ,
. .

E.6. GRUB
GRUB .
, .
:
boot
.
chainloader <///> .
, chainloader +1.
496

GRUB
chainloader:

chainloader +1

displaymem BIOS .
.
initrd <///initrd> RAM-.
,
(, ext3 ext4).
initrd:

initrd /initrd-2.6.8-1.523.img

install <-1> <> <-2> p <> GRUB MBR.


<-1> , ,
(hd0,0)/grub/stage1.
<> , , (hd0).
<-2>
, (hd0,0)/grub/stage2.
p <> , (hd0,0)/grub/grub.conf.

install MBR.

kernel <///> <-1> <-N> ...


. <///> ,
root. , ,
root (root=/dev/VolGroup00/LogVol00).
, .
kernel:

kernel /vmlinuz-2.6.8-1.523 ro root=/dev/VolGroup00/LogVol00

Linux hda5.
root (<_><_>,<>)
, (hd0,0).
root:

497

E. GRUB
root (hd0,0)

rootnoverify (<_><_>,<>)
root, .
. help --all .
GRUB http://www.gnu.org/software/grub/manual/.

E.7. GRUB
(/boot/grub/grub.conf),
,
(. E.6, GRUB).

E.7.1.
GRUB /boot/grub/grub.conf.
,
.
GRUB, Red Hat Enterprise
Linux Microsoft Windows Vista:
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-2.el5PAE)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-2.el5PAE ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.18-2.el5PAE.img
# section to load Windows
title Windows
rootnoverify (hd0,0)
chainloader +1

Red Hat Enterprise Linux ,


, 10 .
.

, default title
. Windows , default=0
default=1.

GRUB
(. E.9, ).

E.7.2.
:
498


chainloader <///> .
, chainloader +1.
color <_> <_>
. , red/black:

color red/black green/blue

default=<integer> <integer> title


.
fallback=<integer> <integer> title
, .
hiddenmenu GRUB. ,
timeout, default.
, Esc.
initrd <///initrd> RAM-.
kernel <///> <-1> <-N>
. <///> , root.
.
:
rhgb (Red Hat graphical boot)
.
quiet ,
.
password=<> .
password=<>
. GRUB
. , , ,
.
GRUB
Red Hat Enterprise Linux.
map . :
map (hd0) (hd3)
map (hd3) (hd0)

0, 3.
, Windows, Windows
Windows .
, Windows ,
grub.conf, Windows, :
title Windows
map (hd0) (hd3)

499

E. GRUB
map (hd3) (hd0)
rootnoverify (hd3,0)
chainloader +1

root (<_><_>,<>)
, (hd0,0).
rootnoverify (<_><_>,<>)
root, .
timeout=<integer> ,
default.
splashimage=<__> GRUB.
title _
.
#.

E.8.
Red Hat Enterprise Linux .
, :
GRUB (
3 ).
a, kernel.
<><>
. 3 :

grub append> ro root=/dev/VolGroup00/LogVol00 rhgb quiet 3

E.9.
. GRUB
.

E.9.1.
/usr/share/doc/grub-<>/
GRUB. GRUB.
info grub GRUB ,
GRUB.

E.9.2.
2

http://www.gnu.org/software/grub/ GRUB.
GRUB FAQ.

500


http://kbase.redhat.com/faq/docs/DOC-6864 ,
Linux.

E.9.3.
Red Hat Enterprise Linux (Red Hat, Inc).
GRUB.
Red Hat Enterprise Linux
http://www.redhat.com/docs/manuals/enterprise/ 43.1.2.
BIOS Red Hat Enterprise Linux 5
http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/ch-secnetwork.html#s1-wstation-boot-sec.

501

502

F. ,


Red Hat Enterprise Linux.
, .
,
, , .
, ,
, ,
.

F.1.
x86:
1. BIOS
(MBR) .
2.
/boot/.
3. , , ,
.
4. /sbin/init.
5. /sbin/init
/etc/fstab .
6. .
,
,
.

F.2.
,
.
x86.

F.2.1. BIOS
x86 BIOS (Basic Input/Output
System). BIOS ,
. BIOS
.
,
BIOS x86.

503

F. ,
BIOS ,
. BIOS
.
BIOS
IDE- IDE. BIOS ,
(MBR),
. MBR 512 (
) . BIOS
, .

F.2.2.
GRUB x86.
E, GRUB GRUB.
F.2.2.1,
.
x86 ().
.
.
1

GRUB ext3, ext2 ext4


/boot/grub/grub.conf
. E.7, GRUB
.


GRUB Red Hat Enterprise Linux 6 ext2, ext3,
ext4. Btrfs, XFS, VFAT . , GRUB
LVM.

Red Hat
. https://rhn.redhat.com/
Red Hat Network.


.
Enter . ,
.
/boot/.
/boot/vmlinuz-<> ( <>
, ).
1

GRUB , .

504


E, GRUB ,
, E.8,
, .
initramfs .
/sysroot/ ( RAM) cpio. initramfs
,
SCSI ext3 ext4.
initramfs .
E, GRUB GRUB.

F.2.2.1.
init
. ,
.
, IBM eServer pSeries yaboot, IBM System z z/IPL.
.

F.2.3.
,
, , -
. initramfs, /sysroot/
.
, LVM RAID. ,
initramfs .
,
.
, .
, ,
.
/sbin/init.

F.2.4. /sbin/init
/sbin/init ( init)
.
init
. /etc/rc.d/rc.sysinit,
, ,
. ,
rc.sysinit /etc/sysconfig/clock,
/etc/rc.serial.
init /etc/event.d,
SysV init.
505

F. ,
, /etc/rc.d/rc<x>.d/ ( <x>
). F.4, SysV Init .
init /etc/rc.d/init.d/functions,
, (PID) .
init /etc/inittab
rc. rc
. , /etc/rc.d/rc5.d/ 5.
5- init /etc/rc.d/rc5.d/,
.
/etc/rc.d/rc5.d/:

K05innd -> ../init.d/innd


K05saslauthd -> ../init.d/saslauthd
K10dc_server -> ../init.d/dc_server
K10psacct -> ../init.d/psacct
K10radiusd -> ../init.d/radiusd
K12dc_client -> ../init.d/dc_client
K12FreeWnn -> ../init.d/FreeWnn
K12mailman -> ../init.d/mailman
K12mysqld -> ../init.d/mysqld
K15httpd -> ../init.d/httpd
K20netdump-server -> ../init.d/netdump-server
K20rstatd -> ../init.d/rstatd
K20rusersd -> ../init.d/rusersd
K20rwhod -> ../init.d/rwhod
K24irda -> ../init.d/irda
K25squid -> ../init.d/squid
K28amd -> ../init.d/amd
K30spamassassin -> ../init.d/spamassassin
K34dhcrelay -> ../init.d/dhcrelay
K34yppasswdd -> ../init.d/yppasswdd
K35dhcpd -> ../init.d/dhcpd
K35smb -> ../init.d/smb
K35vncserver -> ../init.d/vncserver
K36lisa -> ../init.d/lisa
K45arpwatch -> ../init.d/arpwatch
K45named -> ../init.d/named
K46radvd -> ../init.d/radvd
K50netdump -> ../init.d/netdump
K50snmpd -> ../init.d/snmpd
K50snmptrapd -> ../init.d/snmptrapd
K50tux -> ../init.d/tux
K50vsftpd -> ../init.d/vsftpd
K54dovecot -> ../init.d/dovecot
K61ldap -> ../init.d/ldap
K65kadmin -> ../init.d/kadmin
K65kprop -> ../init.d/kprop
K65krb524 -> ../init.d/krb524
K65krb5kdc -> ../init.d/krb5kdc
K70aep1000 -> ../init.d/aep1000
K70bcm5820 -> ../init.d/bcm5820
K74ypserv -> ../init.d/ypserv
K74ypxfrd -> ../init.d/ypxfrd
K85mdmpd -> ../init.d/mdmpd
K89netplugd -> ../init.d/netplugd
K99microcode_ctl -> ../init.d/microcode_ctl
S04readahead_early -> ../init.d/readahead_early
S05kudzu -> ../init.d/kudzu
S06cpuspeed -> ../init.d/cpuspeed
S08ip6tables -> ../init.d/ip6tables

506

/sbin/init
S08iptables -> ../init.d/iptables
S09isdn -> ../init.d/isdn
S10network -> ../init.d/network
S12syslog -> ../init.d/syslog
S13irqbalance -> ../init.d/irqbalance
S13portmap -> ../init.d/portmap
S15mdmonitor -> ../init.d/mdmonitor
S15zebra -> ../init.d/zebra
S16bgpd -> ../init.d/bgpd
S16ospf6d -> ../init.d/ospf6d
S16ospfd -> ../init.d/ospfd
S16ripd -> ../init.d/ripd
S16ripngd -> ../init.d/ripngd
S20random -> ../init.d/random
S24pcmcia -> ../init.d/pcmcia
S25netfs -> ../init.d/netfs
S26apmd -> ../init.d/apmd
S27ypbind -> ../init.d/ypbind
S28autofs -> ../init.d/autofs
S40smartd -> ../init.d/smartd
S44acpid -> ../init.d/acpid
S54hpoj -> ../init.d/hpoj
S55cups -> ../init.d/cups
S55sshd -> ../init.d/sshd
S56rawdevices -> ../init.d/rawdevices
S56xinetd -> ../init.d/xinetd
S58ntpd -> ../init.d/ntpd
S75postgresql -> ../init.d/postgresql
S80sendmail -> ../init.d/sendmail
S85gpm -> ../init.d/gpm
S87iiim -> ../init.d/iiim
S90canna -> ../init.d/canna
S90crond -> ../init.d/crond
S90xfs -> ../init.d/xfs
S95atd -> ../init.d/atd
S96readahead -> ../init.d/readahead
S97messagebus -> ../init.d/messagebus
S97rhnsd -> ../init.d/rhnsd
S99local -> ../rc.local

, /etc/rc.d/rc5.d/
. /etc/rc.d/rc5.d/
, /etc/rc.d/init.d/.
rc,
, ,
.
K, S. K (kill)
, , S (start)
.
init K
/etc/rc.d/init.d/<> stop ( <> ).
/etc/rc.d/init.d/<> start S.

root
. , HTTP Apache /etc/rc.d/init.d/httpd stop.

507

F. ,
.
; , .
, .

init /etc/rc.d/
rc.local, . F.3,

rc.local.

init
rc Upstart /sbin/mingetty .
2-5 6 , 1 ( )
2
, 0 6 . /sbin/mingetty tty ,
, ,
.
5 Upstart /etc/X11/prefdm,
3
X gdm, kdm xdm /etc/sysconfig/
desktop.
5 .

F.2.5.
sysvinit init .
init /etc/inittab,
.
init, Upstart.
. , init
/etc/event.d. .
, init
. ,
.
, init ,
.
, /etc/events.d/tty2 ,
tty2
( ..).
, init :
# tty2 - getty
#
# This service maintains a getty on tty2 from the point the system is
# started until it is shut down again.

tty Red Hat Enterprise Linux.


Red Hat Enterprise
Linux.
3

508


start
start
start
start

on
on
on
on

stopped
stopped
stopped
started

rc2
rc3
rc4
prefdm

stop on runlevel 0
stop on runlevel 1
stop on runlevel 6
respawn
exec /sbin/mingetty tty2

F.3.

/etc/rc.d/rc.local init
.

/etc/rc.d/init.d/ .
/etc/rc.serial
setserial.
setserial.

F.4. SysV Init


SysV init
. SysV init
init
BSD.
SysV init /etc/rc.d/.
rc, rc.local, rc.sysinit, rc.serial :

init.d/ rc0.d/ rc1.d/ rc2.d/ rc3.d/ rc4.d/ rc5.d/ rc6.d/

init.d/ , /sbin/init .
.

F.4.1.
SysV init
. , ,
X Window.
(,
1).
, init ,
. , 1 ( ) ,
3 .
init
.
Red Hat Enterprise Linux :
509

F. ,
0 ;
1 ;
2 ( );
3 ;
4 ( );
5 (
);
6 .
Red Hat Enterprise Linux 3
5, 2 4 .
/etc/inittab,
, :

id:5:initdefault:

5. /
etc/inittab root.

/etc/inittab.
. ,

.


Red Hat Enterprise Linux.


(. E.8, ).

F.4.2.
initscript,
SysV init
/etc/rc.d/.
Red Hat Enterprise Linux :
/sbin/chkconfig /
etc/rc.d/init.d/.
/usr/sbin/ntsysv ncurses
,
chkconfig.
510


system-config-services
.

Red Hat Enterprise Linux.

F.5.
Red Hat Enterprise Linux /sbin/
shutdown root. shutdown
, :

/sbin/shutdown -h now

/sbin/shutdown -r now

-h , -r
.
PAM 1-5
reboot halt. PAM
Red Hat Enterprise Linux.
,
.
, ,
, ,
.

511

512

G.
busybox
, Red Hat Enterprise Linux 6
busybox %pre %post. G.1, busybox
busybox, bash %pre
%post. ,
, PATH.
%post,
. ,
(. G.1, busybox), Red Hat
Enterprise Linux 6, .
,
Python, %pre %post Python.
G.1. busybox
busybox

%pre

%post

addgroup

/usr/sbin/
groupadd

adduser

/usr/sbin/useradd

adjtimex

ar

/usr/bin/ar

arping

/sbin/arping /
usr/sbin/arping

ash

/bin/bash

awk

/sbin/awk, /sbin/
gawk /usr/bin/
1
gawk

basename

/bin/bash , /usr/
bin/basename

bbconfig


Busybox

bunzip2

/usr/bin/bunzip2,
/usr/bin/bzip2 -d

busybox

bzcat

/usr/bin/bzcat, /
usr/bin/bzip2 -dc

cal

/usr/bin/cal

cat

/usr/bin/cat

catv

cat -vET cat A

chattr

/usr/bin/chattr

chgrp

/usr/bin/chgrp

513

G. busybox
busybox

%pre

%post

chmod

/usr/bin/chmod

chown

/usr/bin/chown

chroot

/usr/sbin/chroot

chvt

/usr/bin/chvt

cksum

/usr/bin/cksum

clear

/usr/bin/clear

cmp

/usr/bin/cmp

comm

/usr/bin/comm

cp

/usr/bin/cp

cpio

/usr/bin/cpio

crond

crontab

/usr/bin/crontab

cut

/usr/bin/cut

date

/usr/bin/date

dc

/usr/bin/dc

dd

/usr/bin/dd

deallocvt

/usr/bin/
deallocvt

delgroup

/usr/sbin/
groupdel

deluser

/usr/sbin/userdel

devfsd

Red Hat
Enterprise Linux
devfs

df

/usr/bin/df

diff

/usr/bin/diff

dirname

/bin/bash , /usr/
bin/dirname

dmesg

/usr/bin/dmesg

dnsd

dos2unix

sed 's/.$//'

dpkg

Debian

dpkg-deb

Debian

du

/usr/bin/du

dumpkmap

514

busybox

%pre

%post

dumpleases

e2fsck

/usr/sbin/e2fsck

e2label

/usr/sbin/e2label

echo

/usr/bin/echo

ed

/sbin/sed, /usr/
bin/sed

egrep

/sbin/egrep, /usr/
bin/egrep

eject

/usr/bin/eject

env

/usr/bin/env

ether-wake

expr

/usr/bin/expr

fakeidentd

false

/usr/bin/false

fbset

/usr/sbin/fbset

fdflush

fdformat

/usr/bin/fdformat

fdisk

/usr/sbin/fdisk

fgrep

/sbin/fgrep, /usr/
bin/fgrep

find

/usr/bin/find

findfs

fold

/usr/bin/fold

free

/usr/bin/free

freeramdisk

fsck

/usr/sbin/fsck

fsck.ext2

/usr/sbin/
fsck.ext2, /usr/
sbin/e2fsck

fsck.ext3

/usr/sbin/
fsck.ext3, /usr/
sbin/e2fsck

fsck.minix

none
Minix

ftpget

/usr/bin/ftp
Python- ftplib

ftpput

/usr/bin/ftp
Python- ftplib

515

G. busybox
busybox

%pre

%post

fuser

/sbin/fuser

getopt

/usr/bin/getopt

getty

grep

/sbin/grep, /usr/
bin/grep

gunzip

/usr/bin/gunzip, /
usr/bin/gzip -d

gzip

/usr/bin/gzip

hdparm

/usr/sbin/hdparm

head

/usr/bin/head

hexdump

/usr/bin/hexdump

hostid

/usr/bin/hostid
Python

hostname

/sbin/hostname, /
usr/bin/hostname

httpd

hush

hwclock

/usr/sbin/hwclock

id

/usr/bin/id
Python

ifconfig

/sbin/ifconfig, /
usr/sbin/ifconfig

ifdown

ifconfig
down

ifup

ifconfig
up

inetd

insmod

/sbin/insmod, /
usr/sbin/insmod

install

/usr/bin/install
mkdir/cp/
chmod/chown/chgrp

ip

/sbin/ip, /usr/
sbin/ip

ipaddr

ifconfig ip

ipcalc

/sbin/ipcalc, /
usr/bin/ipcalc

ipcrm

/usr/bin/ipcrm

516

busybox

%pre

%post

ipcs

/usr/bin/ipcs

iplink

ip

iproute

ip

iptunnel

/sbin/iptunnel

kill

/sbin/kill, /usr/
bin/kill

killall

/usr/bin/killall

lash

last

/usr/bin/last

length

Python bash

less

/usr/bin/less

linux32

linux64

ln

/sbin/ln, /usr/
bin/ln

load_policy

/sbin/load_policy,
/usr/sbin/
load_policy

loadfont

loadkmap

login

/usr/bin/login

logname

/usr/bin/logname

losetup

/usr/bin/losetup

ls

/usr/bin/ls

lsattr

/usr/bin/lsattr

lsmod

/usr/bin/lsmod

lzmacat

/usr/bin/lzmadec

makedevs

/usr/bin/mknod

md5sum

/usr/bin/md5sum

mdev

mesg

/usr/bin/mesg

mkdir

/sbin/mkdir, /usr/
bin/mkdir

mke2fs

/usr/sbin/mke2fs

mkfifo

/usr/bin/mkfifo

mkfs.ext2

/usr/sbin/
mkfs.ext2

mkfs.ext3

/usr/sbin/
mkfs.ext3

517

G. busybox
busybox

%pre

%post

mkfs.minix


Minix

mknod

/usr/bin/mknod

mkswap

/usr/sbin/mkswap

mktemp

/usr/bin/mktemp

modprobe

/sbin/modprobe, /
usr/sbin/modprobe

more

/usr/bin/more

mount

/sbin/mount, /usr/
bin/mount

mountpoint

.
mount

msh

mt

/usr/bin/mt

mv

/usr/bin/mv

nameif

nc

/usr/bin/nc

netstat

/bin/netstat

nice

/bin/nice

nohup

/usr/bin/nohup

nslookup

/usr/bin/nslookup

od

/usr/bin/od

openvt

/usr/bin/openvt

passwd

/usr/bin/passwd

patch

/usr/bin/patch

pidof

/usr/sbin/pidof

ping

/usr/bin/ping

ping6

/bin/ping6

pipe_progress

pivot_root

/sbin/pivot_root

printenv

/usr/bin/printenv

printf

/usr/bin/printf

ps

/usr/bin/ps

pwd

/usr/bin/pwd

rdate

/usr/bin/rdate

readlink

/sbin/readlink, /
usr/bin/readlink

readprofile

/usr/sbin/
readprofile

518

busybox

%pre

%post

realpath

Python
os.path.realpath()

renice

/usr/bin/renice

reset

/usr/bin/reset

rm

/sbin/rm, /usr/
bin/rm

rmdir

/sbin/rmdir, /usr/
bin/rmdir

rmmod

/sbin/rmmod, /usr/
bin/rmmod

route

/sbin/route, /usr/
sbin/route

rpm

/usr/bin/rpm

rpm2cpio

/usr/bin/rpm2cpio

run-parts

runlevel

rx

sed

/sbin/sed, /usr/
bin/sed

seq

/usr/bin/seq

setarch

/usr/bin/setarch

setconsole

setkeycodes

/usr/bin/
setkeycodes

setlogcons

setsid

/usr/bin/setsid

sh

/sbin/sh, /usr/
bin/sh

sha1sum

/usr/bin/sha1sum

sleep

/sbin/sleep, /usr/
bin/sleep

sort

/usr/bin/sort

start-stop-daemon

stat

/usr/bin/stat
Python os.stat()

strings

/usr/bin/strings

stty

/bin/stty

su

/bin/su

sulogin

/sbin/sulogin

sum

/usr/bin/sum

519

G. busybox
busybox

%pre

%post

swapoff

/usr/sbin/swapoff

swapon

/usr/sbin/swapon

switch_root

/sbin/switch_root

sync

/usr/bin/sync

sysctl

/sbin/sysctl

tail

/usr/bin/tail

tar

/usr/bin/tar

tee

/usr/bin/tee

telnet

/usr/bin/telnet

telnetd

test

/usr/bin/test
[ bash

tftp

/usr/bin/tftp

time

/usr/bin/time
Python

top

/usr/bin/top

touch

/sbin/touch, /usr/
bin/touch

tr

/usr/bin/tr
Python

traceroute

/bin/traceroute

true

/usr/bin/true

tty

/usr/bin/tty

tune2fs

/usr/sbin/tune2fs

udhcpc

/sbin/dhclient

udhcpd

umount

/sbin/umount, /
usr/bin/umount

uname

/bin/uname
Python os.uname()

uncompress

uniq

/usr/bin/uniq

unix2dos

sed 's/$//'

unlzma

/usr/bin/unlzma

unzip

/usr/bin/unzip

520

busybox

%pre

%post

uptime

/usr/bin/uptime
Python /proc/
uptime

usleep

/bin/usleep
Python

uudecode

/usr/bin/uudecode
Python

uuencode

/usr/bin/uuencode
Python

vconfig

/usr/sbin/vconfig

vi

/usr/bin/vi

vlock

watch

/usr/bin/watch

watchdog

wc

/usr/bin/wc

wget

/sbin/wget, /usr/
bin/wget

which

/usr/bin/which

who

/usr/bin/who

whoami

/usr/bin/whoami

xargs

/usr/bin/xargs

yes

/usr/bin/yes

zcat

/usr/bin/zcat

zcip

NetworkManager

Red Hat Enterprise Linux 6 GNU awk busybox awk.

GNU bash basename . If var="/usr/bin/


command", then echo ${var##*/} command.
3

GNU bash dirname . If var="/usr/bin/command",


then echo ${var%/*} /usr/bin.

521

522

H.

http://www.fedoraproject.org/wiki/Anaconda

anaconda.
Red Hat Enterprise Linux Anaconda
.
.

Red Hat Enterprise Linux


GRUB (. http://www.gnu.org/software/grub/).

Red Hat Enterprise Linux parted (. http://
www.gnu.org/software/parted/).

(LVM, Logical Volume Management)
, .
Red Hat Enterprise Linux LVM (. http://www.tldp.org/HOWTO/
LVM-HOWTO/).

Red Hat Enterprise Linux
PulseAudio. http://www.pulseaudio.org/wiki/
Documentation.

, Red Hat Enterprise Linux
Xorg ,
. http://
www.x.org/.

Red Hat Enterprise Linux anaconda
VNC (Virtual Network Computing) .
RealVNC http://www.realvnc.com/
documentation.html.

Red Hat Enterprise Linux bash (. http://www.gnu.org/
software/bash/bash.html). GNU,
, http://www.gnu.org/software/coreutils/.

Red Hat Enterprise Linux
OpenSSH. SSH
, , ,
. anaconda
scp

523

H.
.
OpenSSH: http://www.openssh.com/.

SELinux (MAC,
Mandatory Access Control) Linux.
http://docs.fedoraproject.org/selinux-guide.

Red Hat Enterprise Linux
netfilter. Netfilter http://netfilter.org/documentation/index.html
netfilter iptables.

Red Hat Enterprise Linux
yum. http://docs.fedoraproject.org/yum/.


. Red Hat Enterprise Linux
()
Red Hat Enterprise Linux.
.
http://www.redhat.com/docs/.

524

I.
Red Hat Enterprise Linux.
1.0-2 Wed Oct 27 2010

Rdiger Landmann
r.landmann@redhat.com
PXE- (BZ#643669)

1.0-1 Thu Oct 7 2010

Rdiger Landmann
r.landmann@redhat.com

nostorage

1.0-0 Wed Aug 25 2010

Rdiger Landmann
r.landmann@redhat.com

525

526

authconfig , 369
autopart , 368
autostep , 369
bootloader , 371
clearpart , 372
cmdline , 373
device , 373
driverdisk , 373
firewall , 373
firstboot , 374
graphical , 374
halt , 374
ignoredisk , 369
install , 374
interactive , 375
iscsi , 376
iscsiname , 376
key , 376
keyboard , 376
lang , 376
langsupport , 377
logging , 378
logvol , 377
mediacheck , 378, 378, 385
mouse , 379
multipath , 380
network , 379
part , 380
partition , 380
poweroff , 383
raid , 383
reboot , 385
rootpw , 385
selinux , 385
services , 386
shutdown , 386
skipx , 386
text , 387
timezone , 387
upgrade , 387
user , 387
vnc , 388
volgroup , 388
xconfig , 388
zerombr , 389
zfcp , 389
, 389

Symbols
/boot/ partition
recommended partitioning, 95, 204
/root/install.log
, 111
/var/ partition
recommended partitioning, 95, 204

, 524
, 109, 210, 303

DVD
DVD, 36
, 355

, 103
, 230, 352
-
LVM, 377

DVD , 396
CD-ROM, 396

, 524

, xviii

mediacheck, 36
, 36
, 37
UTF-8, 37
, 36

, xvii
, 348

, 473

, 474
, 348

mediacheck, 36
, 36
, 37
UTF-8, 37
, 36

/root/install.log , 111

%include , 389
auth , 369

A
aboot , 505
adding partitions, 86, 195, 289
file system type, 88, 197, 291
anacdump.txt, 113, 213, 307
Anaconda, 523
527


anaconda.log, 113, 213, 307
array (. RAID)
automatic partitioning, 80, 80, 189, 189, 283, 283

B
Basic Input/Output System (. BIOS)
BIOS
definition of, 503
(. boot process)
BIOS (Basic Input/Output System), 33
boot loader, 78, 100
(. GRUB)
configuration, 100
GRUB, 100
MBR, 103
password, 102
upgrading, 78
boot loader password, 102
boot loaders, 491
(. GRUB)
definition of, 491
types of
ELILO, 491
GRUB, 491
OS/400, 491
YABOOT, 491
z/IPL, 491
boot options, 36
boot process, 503, 503
(. boot loaders)
chain loading, 491
direct loading, 491
for x86, 503
stages of, 503, 503
/sbin/init command, 505
BIOS, 503
boot loader, 504
EFI shell, 503
kernel, 505
booting
emergency mode, 445
installation program
x86, AMD64 and Intel 64, 34
rescue mode, 442
single-user mode, 444
booting the installation program
IBM System p , 149

C
canceling the installation, 45, 253
CD/DVD media
booting, 33, 149
making, 5

528

(. ISO images)
Chain loading, 58, 75, 82, 103, 167, 185, 191
chkconfig , 510
(. services)
clock, 71, 181, 276
CMS configuration files, 335
sample CMS configuration file, 342
configuration
clock, 71, 71, 181, 181, 276, 276
GRUB, 100
hardware, 19
time, 71, 181, 276
time zone, 71, 181, 276
configuration files
CMS configuration files, 335
the z/VM configuration file, 336
consoles, virtual, 52, 162

D
DASD installation, 253
DHCP
diskless environment, 361
PXE installations, 361
DHCP (Dynamic Host Configuration Protocol),
61, 170, 266
Disk Partitioner
adding partitions, 86, 195, 289
disk partitioning, 80, 189, 283
disk space, 12, 128
diskless environment
DHCP configuration, 361
documentation
other manuals, xx
driver diskette, 34
DVD
ATAPI, 44, 156
IDE, 44, 156
installation from, 44, 156
SCSI, 45, 157, 253
DVD media
downloading, 1
(. ISO images)

E
EFI shell
definition of, 503
(. boot process)
emergency mode, 445
Encryption
Backup passphrases
Creating backup passphrases, 483
Saving backup passphrases, 483
Passphrases

Saving passphrases, 483


ext2 (. file systems)
ext3 (. file systems)
ext4 (. file systems)
extended partitions, 471
Extensible Firmware Interface shell (. EFI
shell)

F
FCoE
installation, 58, 167, 263
FCP devices, 265
file system
formats, overview of, 467
file system types, 88, 197, 291
file systems
ext2, 45, 157, 253
ext3, 45, 157, 253
ext4, 45, 157, 253
vfat, 45, 157, 253
Firstboot , 419
, 374
FTP
installation, 15, 48, 131, 159, 233, 255

G
GRUB, 100, 491, 504
(. boot loaders)
additional resources, 500
installed documentation, 500
related books, 501
useful websites, 500
alternatives to, 105
boot process, 491
Changing Runlevels at Boot Time, 500
changing runlevels with, 495
commands, 496
configuration, 100
configuration file
/boot/grub/grub.conf , 498
structure, 498
definition of, 491
features, 492
installing, 492
interfaces, 495
command line, 495
menu, 495
menu entry editor, 495
order of, 496
menu configuration file, 498
directives, 498
role in boot process, 504
terminology, 493

devices, 493
files, 494
root file system, 495
, 523
grub.conf , 498
(. GRUB)

H
halt, 511
(. shutdown)
Hard disk
initializing, 76, 186, 280
hard disk
basic concepts, 467
extended partitions, 471
file system formats, 467
partition introduction, 469
partition types, 470
partitioning of, 467
hard drive installation, 45, 157, 253
preparing for, 17, 134, 235
hardware
compatibility, 11
configuration, 19
hardware preparation, eServer System p, 127
HMC vterm, 163
hostname, 61, 61, 170, 170, 266, 266
HTTP
installation, 15, 48, 131, 159, 233, 255

I
init command, 505
(. boot process)
configuration files
/etc/inittab , 509
role in boot process, 505
(. boot process)
runlevels
directories for, 509
runlevels accessed by, 509
SysV init
definition of, 509
installation
aborting, 45, 253
disk space, 12, 128
DVD, 44, 156
FTP, 15, 48, 131, 159, 233, 255
GUI, 51, 161, 257
hard drive, 17, 45, 134, 157, 235, 253
HTTP, 15, 48, 131, 159, 233, 255
keyboard navigation, 43, 155, 251
kickstart (. kickstart installations)
method

529


DVD, 12
hard drive, 13
NFS image, 13
selecting, 12
URL, 13
network, 15, 131, 233
NFS, 15, 47, 131, 158, 233, 254
server information, 48, 159, 255
partitioning, 83, 192, 286
program
graphical user interface, 51, 161, 257
starting, 34
text mode user interface, 41, 153, 249
virtual consoles, 52, 162
starting, 44, 156
installation method
selecting, 44, 156, 252
installation program
x86, AMD64 and Intel 64
booting, 34
installing packages, 105, 206, 299
introduction, xix
IPL NWSSTG, 219
IPv4, 61, 170, 266
iscsi
installation, 58, 167, 263
ISO images
downloading, 1

K
kdump, 430
kernel
role in boot process, 505
kernel options, 37
keyboard
configuration, 53, 170
navigating the installation program using, 43,
155, 251
keymap
selecting type of keyboard, 53, 170
kickstart
how the file is found, 396
parameters for System z parameter files, 341
Kickstart Configurator , 401
%post script, 414
%pre script, 413
authentication options, 410
basic options, 401
boot loader, 403
boot loader options, 403
Display configuration, 411
firewall configuration, 410
installation method selection, 402
interactive, 402
530

keyboard, 401
language, 401
network configuration, 409
package selection, 412
partitioning, 404
software RAID, 406
preview, 401
reboot, 402
root password, 401
encrypt, 401
saving, 415
SELinux configuration, 411
text mode installation, 402
time zone, 401
kickstart file
%post, 392
%pre, 391
CD-ROM-based, 394
creating, 368
diskette-based, 394
flash-based, 394
format of, 367
installation methods, 375
network-based, 395, 395
options, 368
partitioning examples, 389
package selection specification, 390
post-installation configuration, 392
pre-installation configuration, 391
sshpw , 386
what it looks like, 367
kickstart installations, 367
CD-ROM-based, 394
diskette-based, 394
file format, 367
file locations, 394
flash-based, 394
installation tree, 395
network-based, 395, 395
starting, 396

L
language
selecting, 43, 155, 251
LILO, 504
(. boot loaders)
role in boot process, 504
log files, 113, 213, 307
kickstart installations, 367
LVM
understanding, 489
, 489
, 523
, 489

, 377
, 489

M
manuals, xx
master boot record, 100
Master Boot Record, 441 (. MBR)
reinstalling, 444
MBR
definition of, 503, 503
(. boot loaders)
(. boot process)
installing boot loader on, 103
modem, 61, 170, 266
mount points
partitions and, 477

N
network
installations
FTP, 48, 159, 255
HTTP, 48, 159, 255
NFS, 47, 158, 254
network installation
performing, 46, 158, 254
preparing for, 15, 131, 233
NFS
installation, 15, 47, 131, 158, 233, 254
NFS (Network File System)
install from, 46, 254
NTP (Network Time Protocol), 71, 276, 429
ntsysv , 510
(. services)

O
OpenSSH, 523
(. SSH)
OS/2 boot manager, 103
OS/400, 491
(. boot loaders)

P
packages
groups, 105, 206, 299
selecting, 105, 206, 299
installing, 105, 206, 299
selecting, 105, 206, 299
parameter files, 335
installation network parameters, 336
kickstart parameters, 341
loader parameters, 340
required parameters, 335
sample parameter file, 342

VNC parameters, 340


X11 parameters, 340
parm files (. parameter files)
parted partitioning utility, 475
partition
extended, 471
partitioning, 83, 192, 286
automatic, 80, 189, 283
basic concepts, 467
creating new, 86, 195, 289
file system type, 88, 197, 291
extended partitions, 471
how many partitions, 469, 477
introduction to, 469
making room for partitions, 471
mount points and, 477
naming partitions, 476
numbering partitions, 476
other operating systems, 476
primary partitions, 469
recommended, 95, 204
types of partitions, 470
using free space, 472
using in-use partition, 473
using unused partition, 472
Partitioning , 83, 192, 286
adding partitions
file system type, 88, 197, 291
Passphrases
Block device encryption passphrases
Creating backup block device encryption
passphrases, 483
Saving backup block device encryption
passphrases, 483
Saving block device encryption
passphrases, 483
password
boot loader, 102
setting root, 72, 182, 277
Planning for Installation
System z, 225
POWER systems rescue mode, 445
accessing SCSI utilities, 445
program.log, 113, 213, 307
programs
running at boot time, 509
PulseAudio, 523
PXE (Pre-boot eXecution Environment), 39, 151
PXE installations
adding hosts, 359
boot message, custom, 361
configuration, 359
DHCP configuration, 361
overview, 359

531


performing, 361
setting up the network server, 359

R
RAID
hardware, 11, 128
kickstart installations
Kickstart Configurator, 406
software, 11, 128
system unbootable after disk failure, 493
trouble booting from drive attached to RAID
card, 113
-, 383
rc.local
modifying, 509
rc.serial , 509
(. setserial command)
re-installation, 447
removing
Red Hat Enterprise Linux
from IBM System z, 463
from x86-based systems, 451
rescue mode, 104, 355
definition of, 442
utilities available, 444
rescue mode, POWER systems, 445
accessing SCSI utilities, 445
root / partition
recommended partitioning, 95, 204
root password, 72, 182, 277
runlevel 1, 444
runlevels (. init command)
changing with GRUB, 495
configuration of, 510
(. services)

S
scp, 524
(. SSH)
screenshots
during installation, 52
selecting
packages, 105, 206, 299
SELinux
, 524
serial ports (. setserial command)
services
configuring with chkconfig , 510
configuring with ntsysv , 510
configuring with Services Configuration Tool ,
510
Services Configuration Tool , 510
(. services)

532

setserial command
configuring, 509
shutdown, 511
(. halt)
single-user mode, 444
SSH (Secure SHell)
, 523
starting
installation, 34, 44, 156
steps
booting with CD-ROM or DVD, 13
disk space, 12, 128
eServer System p hardware preparation, 127
hardware compatibility, 11
installing from DVD, 129
storage devices
basic storage devices, 54, 163, 259
specialized storage devices, 54, 163, 259
storage.log, 113, 213, 307
swap file
upgrade, 448
swap partition
recommended partitioning, 95, 204
syslog, 113, 213, 307, 351
system recovery, 441
common problems, 441
forgetting the root password, 441
hardware/software problems, 441
reinstalling the boot loader, 444
unable to boot into Red Hat Enterprise
Linux, 441
system-config-kickstart (. Kickstart
Configurator )
SysV init (. init command)

T
TCP/IP configuration, 46, 158, 254
Telnet, 351
tftp , 361
time zone
configuration, 71, 181, 276
traceback messages
saving traceback messages without
removeable media, 115, 115, 215, 215, 307,
307
troubleshooting, 113, 213, 307
after the installation, 120, 219, 312
Apache-based httpd service hangs during
startup, 124, 221, 313
booting into a graphical environment, 121,
219
booting into GNOME or KDE, 121, 219
booting into the X Window System, 121, 219
graphical GRUB screen, 120

graphical login, 312


logging in, 122, 221, 312
printers, 124, 221, 313
RAM not recognized, 123
Sendmail hangs during startup, 124, 221,
313
X (X Window System), 122, 220
X server crashes, 122, 221
beginning the installation, 114, 214
frame buffer, disabling, 114, 214
GUI installation method unavailable, 114,
214
booting, 113, 213, 307
RAID cards, 113
signal 11 error, 113, 213, 307
during the installation, 115, 214, 307
completing partitions, 119, 218, 311
No devices found to install Red Hat
Enterprise Linux error message, 115, 214,
307
partition tables, 119, 119, 218, 218
Python errors, 119, 218, 311
saving traceback messages without
removeable media, 115, 215, 307
using remaining hard drive space, 119

X
XDMCP, 312
Xorg, 523

Y
YABOOT, 491
(. boot loaders)
yum
, 524
yum.log, 113, 213, 307

Z
z/IPL, 491
(. boot loaders)

U
UEFI (Unified Extensible Firmware Interface), 33
uninstalling
from IBM System z, 463
from x86-based systems, 451
upgrade, 447
adding a swap file, 448
USB flash media
downloading, 1
making, 5
USB media
booting, 33, 149
user interface, graphical
installation program, 51, 161, 257
user interface, text mode
installation program, 41, 153, 249

V
vfat (. file systems)
virtual consoles, 52, 162
virtualization, xix
VNC (Virtual Network Computing), 349
, 350
, 523
, 350
, 349

533

534