第 19 章 参​​​​​​​数​​​​​​​文​​​​​​​件​​​​​​​范​​​​​​​例​​​​​​​

IBM System z 体​​​​​​​系​​​​​​​在​​​​​​​安​​​​​​​装​​​​​​​程​​​​​​​序​​​​​​​(anaconda)能​​​​​​​够​​​​​​​被​​​​​​​启​​​​​​​动​​​​​​​前​​​​​​​使​​​​​​​用​​​​​​​特​​​​​​​殊​​​​​​​参​​​​​​​数​​​​​​​文​​​​​​​件​​​​​​​来​​​​​​​设​​​​​​​置​​​​​​​联​​​​​​​网​​​​​​​。​​​​​​​本​​​​​​​节​​​​​​​描​​​​​​​述​​​​​​​这​​​​​​​个​​​​​​​参​​​​​​​数​​​​​​​文​​​​​​​件​​​​​​​的​​​​​​​内​​​​​​​容​​​​​​​。​​​​​​​
参​​​​​​​数​​​​​​​文​​​​​​​件​​​​​​​中​​​​​​​的​​​​​​​参​​​​​​​数​​​​​​​限​​​​​​​额​​​​​​​是​​​​​​​ 32。​​​​​​​为​​​​​​​了​​​​​​​满​​​​​​​足​​​​​​​限​​​​​​​额​​​​​​​的​​​​​​​需​​​​​​​要​​​​​​​,应​​​​​​​该​​​​​​​在​​​​​​​ CMS DASD 上​​​​​​​使​​​​​​​用​​​​​​​一​​​​​​​个​​​​​​​新​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​来​​​​​​​配​​​​​​​置​​​​​​​最​​​​​​​初​​​​​​​的​​​​​​​网​​​​​​​络​​​​​​​设​​​​​​​置​​​​​​​和​​​​​​​ DASD 规​​​​​​​范​​​​​​​。​​​​​​​.parm 文​​​​​​​件​​​​​​​应​​​​​​​该​​​​​​​包​​​​​​​含​​​​​​​真​​​​​​​正​​​​​​​的​​​​​​​内​​​​​​​核​​​​​​​参​​​​​​​数​​​​​​​,例​​​​​​​如​​​​​​​ root=/dev/ram0 ro ip=off ramdisk_size=40000,以​​​​​​​及​​​​​​​没​​​​​​​有​​​​​​​被​​​​​​​分​​​​​​​配​​​​​​​给​​​​​​​变​​​​​​​量​​​​​​​的​​​​​​​单​​​​​​​个​​​​​​​参​​​​​​​数​​​​​​​,如​​​​​​​ vnc。​​​​​​​把​​​​​​​安​​​​​​​装​​​​​​​程​​​​​​​序​​​​​​​指​​​​​​​向​​​​​​​新​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​的​​​​​​​两​​​​​​​个​​​​​​​新​​​​​​​参​​​​​​​数​​​​​​​需​​​​​​​要​​​​​​​被​​​​​​​添​​​​​​​加​​​​​​​到​​​​​​​ .parm 文​​​​​​​件​​​​​​​中​​​​​​​。​​​​​​​它​​​​​​​们​​​​​​​是​​​​​​​ CMSDASD 和​​​​​​​ CMSCONF。​​​​​​​
CMSDASD=cmsdasd_address
Where cmsdasd_address represents the list of the device ID of the CMS DASD device which contains the configuration file. This is usually the CMS user's 'A' disk. This option is applicable only for users who have a CMS formatted disk (z/VM) available.
例​​​​​​​如​​​​​​​:CMSDASD=191
CMSCONFFILE=configuration_file
这​​​​​​​里​​​​​​​的​​​​​​​ configuration_file 代​​​​​​​表​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​的​​​​​​​名​​​​​​​称​​​​​​​。​​​​​​​该​​​​​​​值​​​​​​​必​​​​​​​须​​​​​​​使​​​​​​​用​​​​​​​小​​​​​​​写​​​​​​​字​​​​​​​母​​​​​​​。​​​​​​​它​​​​​​​使​​​​​​​用​​​​​​​ Linux 风​​​​​​​格​​​​​​​的​​​​​​​文​​​​​​​件​​​​​​​名​​​​​​​称​​​​​​​格​​​​​​​式​​​​​​​。​​​​​​​CMS 文​​​​​​​件​​​​​​​ REDHAT CONF 被​​​​​​​指​​​​​​​定​​​​​​​为​​​​​​​ redhat.conf。​​​​​​​该​​​​​​​选​​​​​​​项​​​​​​​只​​​​​​​适​​​​​​​用​​​​​​​于​​​​​​​具​​​​​​​备​​​​​​​ CMS 格​​​​​​​式​​​​​​​化​​​​​​​磁​​​​​​​盘​​​​​​​(z/VM)的​​​​​​​用​​​​​​​户​​​​​​​。​​​​​​​
例​​​​​​​如​​​​​​​:CMSCONFFILE=redhat.conf
DASD=dasd-list
这​​​​​​​里​​​​​​​的​​​​​​​ dasd-list 代​​​​​​​表​​​​​​​被​​​​​​​Red Hat Enterprise Linux使​​​​​​​用​​​​​​​的​​​​​​​ DASD 设​​​​​​​备​​​​​​​列​​​​​​​表​​​​​​​。​​​​​​​
虽​​​​​​​然​​​​​​​如​​​​​​​果​​​​​​​这​​​​​​​个​​​​​​​参​​​​​​​数​​​​​​​被​​​​​​​省​​​​​​​略​​​​​​​了​​​​​​​ DASD 会​​​​​​​被​​​​​​​自​​​​​​​动​​​​​​​探​​​​​​​测​​​​​​​,我​​​​​​​们​​​​​​​强​​​​​​​烈​​​​​​​推​​​​​​​荐​​​​​​​你​​​​​​​包​​​​​​​括​​​​​​​ DASD= 参​​​​​​​数​​​​​​​,因​​​​​​​为​​​​​​​设​​​​​​​备​​​​​​​号​​​​​​​码​​​​​​​(因​​​​​​​此​​​​​​​设​​​​​​​备​​​​​​​名​​​​​​​称​​​​​​​)在​​​​​​​新​​​​​​​的​​​​​​​ DASD 被​​​​​​​添​​​​​​​加​​​​​​​到​​​​​​​ guest 时​​​​​​​会​​​​​​​有​​​​​​​所​​​​​​​不​​​​​​​同​​​​​​​。​​​​​​​这​​​​​​​会​​​​​​​导​​​​​​​致​​​​​​​无​​​​​​​法​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​系​​​​​​​统​​​​​​​。​​​​​​​
例​​​​​​​如​​​​​​​:DASD=0.0.0100,0.0201-0.0.0204
以​​​​​​​下​​​​​​​参​​​​​​​数​​​​​​​是​​​​​​​设​​​​​​​置​​​​​​​联​​​​​​​网​​​​​​​所​​​​​​​必​​​​​​​需​​​​​​​的​​​​​​​:
SUBCHANNELS=
为​​​​​​​各​​​​​​​类​​​​​​​网​​​​​​​络​​​​​​​接​​​​​​​口​​​​​​​提​​​​​​​供​​​​​​​所​​​​​​​需​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​总​​​​​​​线​​​​​​​ ID。​​​​​​​
qeth: SUBCHANNELS="read_device_bus_id,write_device_bus_id,
      data_device_bus_id"
lcs: SUBCHANNELS="read_device_bus_id,write_device_bus_id"
Due to the length of the qeth command line, it has been broken into two lines.

注意

CTC 和​​​​​​​ NETIUCV 驱​​​​​​​动​​​​​​​已​​​​​​​经​​​​​​​被​​​​​​​取​​​​​​​消​​​​​​​而​​​​​​​且​​​​​​​不​​​​​​​再​​​​​​​被​​​​​​​Red Hat Enterprise Linux支​​​​​​​持​​​​​​​。​​​​​​​
例​​​​​​​如​​​​​​​(qeth SUBCHANNEL 示​​​​​​​例​​​​​​​):
SUBCHANNELS=0.0.0600,0.0.0601,0.0.0602
以​​​​​​​下​​​​​​​参​​​​​​​数​​​​​​​是​​​​​​​可​​​​​​​选​​​​​​​的​​​​​​​:
HOSTNAME=string
这​​​​​​​里​​​​​​​的​​​​​​​ string 是​​​​​​​新​​​​​​​安​​​​​​​装​​​​​​​的​​​​​​​ Linux guest 的​​​​​​​主​​​​​​​机​​​​​​​名​​​​​​​。​​​​​​​
NETTYPE=type
这​​​​​​​里​​​​​​​的​​​​​​​ type 必​​​​​​​须​​​​​​​是​​​​​​​以​​​​​​​下​​​​​​​之​​​​​​​一​​​​​​​:qeth 或​​​​​​​ lcs。​​​​​​​
IPADDR=IP
这​​​​​​​里​​​​​​​的​​​​​​​ IP 是​​​​​​​新​​​​​​​的​​​​​​​ Linux guest 的​​​​​​​ IP 地​​​​​​​址​​​​​​​。​​​​​​​
NETWORK=network
这​​​​​​​里​​​​​​​的​​​​​​​ network 你​​​​​​​的​​​​​​​网​​​​​​​络​​​​​​​地​​​​​​​址​​​​​​​。​​​​​​​
NETMASK=netmask
这​​​​​​​里​​​​​​​的​​​​​​​ netmask 是​​​​​​​子​​​​​​​网​​​​​​​掩​​​​​​​码​​​​​​​。​​​​​​​
BROADCAST=broadcast
这​​​​​​​里​​​​​​​的​​​​​​​ broadcast 是​​​​​​​广​​​​​​​播​​​​​​​地​​​​​​​址​​​​​​​。​​​​​​​
GATEWAY=gw
这​​​​​​​里​​​​​​​的​​​​​​​ gw 是​​​​​​​ eth 设​​​​​​​备​​​​​​​的​​​​​​​网​​​​​​​关​​​​​​​ IP 地​​​​​​​址​​​​​​​。​​​​​​​
MTU=mtu
这​​​​​​​里​​​​​​​的​​​​​​​ mtu 是​​​​​​​该​​​​​​​次​​​​​​​连​​​​​​​接​​​​​​​的​​​​​​​最​​​​​​​大​​​​​​​传​​​​​​​送​​​​​​​单​​​​​​​位​​​​​​​(Maximum Transmission Unit,MTU)。​​​​​​​
DNS=server1:server2:additional_server_terms:serverN
这​​​​​​​里​​​​​​​的​​​​​​​ server1:server2:additional_server_terms:serverN 是​​​​​​​用​​​​​​​分​​​​​​​号​​​​​​​间​​​​​​​隔​​​​​​​的​​​​​​​ DNS 服​​​​​​​务​​​​​​​器​​​​​​​列​​​​​​​表​​​​​​​。​​​​​​​例​​​​​​​如​​​​​​​:
DNS=10.0.0.1:10.0.0.2
SEARCHDNS=domain1:domain2:additional_dns_terms:domainN
这​​​​​​​里​​​​​​​的​​​​​​​ domain1:domain2:additional_dns_terms:domainN 是​​​​​​​用​​​​​​​分​​​​​​​号​​​​​​​间​​​​​​​隔​​​​​​​的​​​​​​​搜​​​​​​​索​​​​​​​域​​​​​​​列​​​​​​​表​​​​​​​。​​​​​​​例​​​​​​​如​​​​​​​:
SEARCHDNS=example.com:example.org
PORTNAME=osa_portname | lcs_portnumber
该​​​​​​​变​​​​​​​量​​​​​​​支​​​​​​​持​​​​​​​在​​​​​​​ qdio 模​​​​​​​式​​​​​​​或​​​​​​​非​​​​​​​ qdio 模​​​​​​​式​​​​​​​中​​​​​​​操​​​​​​​作​​​​​​​的​​​​​​​ OSA 设​​​​​​​备​​​​​​​。​​​​​​​
在​​​​​​​使​​​​​​​用​​​​​​​ qdio 模​​​​​​​式​​​​​​​时​​​​​​​:osa_portname 是​​​​​​​在​​​​​​​ qeth 模​​​​​​​式​​​​​​​中​​​​​​​操​​​​​​​作​​​​​​​时​​​​​​​在​​​​​​​ OSA 设​​​​​​​备​​​​​​​上​​​​​​​指​​​​​​​定​​​​​​​的​​​​​​​端​​​​​​​口​​​​​​​名​​​​​​​。​​​​​​​PORTNAME 只​​​​​​​在​​​​​​​没​​​​​​​有​​​​​​​ APARs VM63308 和​​​​​​​ PQ73878 的​​​​​​​ z/VM 4.3 或​​​​​​​更​​​​​​​老​​​​​​​的​​​​​​​版​​​​​​​本​​​​​​​中​​​​​​​需​​​​​​​要​​​​​​​。​​​​​​​
在​​​​​​​使​​​​​​​用​​​​​​​非​​​​​​​ qdio 模​​​​​​​式​​​​​​​时​​​​​​​:lcs_portnumber 被​​​​​​​用​​​​​​​来​​​​​​​传​​​​​​​递​​​​​​​从​​​​​​​0到​​​​​​​15间​​​​​​​的​​​​​​​相​​​​​​​对​​​​​​​端​​​​​​​口​​​​​​​号​​​​​​​码​​​​​​​。​​​​​​​
FCP_*(FCP_1、​​​​​​​FCP_2、​​​​​​​…​​​​​​​…​​​​​​​)
这​​​​​​​些​​​​​​​变​​​​​​​量​​​​​​​可​​​​​​​以​​​​​​​在​​​​​​​带​​​​​​​有​​​​​​​ FCP 设​​​​​​​备​​​​​​​的​​​​​​​系​​​​​​​统​​​​​​​上​​​​​​​用​​​​​​​来​​​​​​​预​​​​​​​配​​​​​​​置​​​​​​​ FCP 设​​​​​​​置​​​​​​​(它​​​​​​​们​​​​​​​可​​​​​​​以​​​​​​​在​​​​​​​安​​​​​​​装​​​​​​​中​​​​​​​被​​​​​​​改​​​​​​​变​​​​​​​)。​​​​​​​
使​​​​​​​用​​​​​​​以​​​​​​​下​​​​​​​范​​​​​​​例​​​​​​​作​​​​​​​为​​​​​​​格​​​​​​​式​​​​​​​化​​​​​​​正​​​​​​​确​​​​​​​参​​​​​​​数​​​​​​​文​​​​​​​件​​​​​​​的​​​​​​​向​​​​​​​导​​​​​​​。​​​​​​​
带​​​​​​​有​​​​​​​最​​​​​​​低​​​​​​​限​​​​​​​度​​​​​​​参​​​​​​​数​​​​​​​的​​​​​​​范​​​​​​​例​​​​​​​文​​​​​​​件​​​​​​​:
root=/dev/ram0 DASD=200

注意

安​​​​​​​装​​​​​​​程​​​​​​​序​​​​​​​提​​​​​​​示​​​​​​​用​​​​​​​户​​​​​​​输​​​​​​​入​​​​​​​没​​​​​​​有​​​​​​​在​​​​​​​参​​​​​​​数​​​​​​​文​​​​​​​件​​​​​​​中​​​​​​​指​​​​​​​定​​​​​​​的​​​​​​​必​​​​​​​需​​​​​​​参​​​​​​​数​​​​​​​。​​​​​​​
配​​​​​​​置​​​​​​​ QETH 联​​​​​​​网​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​范​​​​​​​例​​​​​​​文​​​​​​​件​​​​​​​:
redhat.parm 文​​​​​​​件​​​​​​​示​​​​​​​例​​​​​​​:
root=/dev/ram0 ro ip=off ramdisk_size=40000
CMSDASD=191 CMSCONFFILE=redhat.conf
vnc
redhat.conf 文​​​​​​​件​​​​​​​示​​​​​​​例​​​​​​​(redhat.parm 文​​​​​​​件​​​​​​​中​​​​​​​ CMSCONFFILE 所​​​​​​​指​​​​​​​)
DASD=200
HOSTNAME="foobar.systemz.example.com"
DASD="200-203"
NETTYPE="qeth"
IPADDR="192.168.17.115"
SUBCHANNELS="0.0.0600,0.0.0601,0.0.0602"
PORTNAME="FOOBAR"
NETWORK="192.168.17.0"
NETMASK="255.255.255.0"
BROADCAST="192.168.17.255"
SEARCHDNS="example.com:systemz.example.com"
GATEWAY="192.168.17.254"
DNS="192.168.17.1"
MTU="4096"

为了尽快向用户提供最新的信息,本文档可能会包括由机器自动从英文原文翻译的内容。如需更多信息,请参阅此说明。