Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

章 19. 範​​​​​​​例​​​​​​​的​​​​​​​參​​​​​​​數​​​​​​​檔​​​​​​​案​​​​​​​

IThe 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 加​​​​​​​入​​​​​​​用​​​​​​​戶​​​​​​​端​​​​​​​時​​​​​​​,裝​​​​​​​置​​​​​​​的​​​​​​​數​​​​​​​目​​​​​​​會​​​​​​​變​​​​​​​動​​​​​​​(也​​​​​​​因​​​​​​​此​​​​​​​裝​​​​​​​置​​​​​​​名​​​​​​​稱​​​​​​​也​​​​​​​會​​​​​​​跟​​​​​​​著​​​​​​​變​​​​​​​動​​​​​​​)。​​​​​​​這​​​​​​​會​​​​​​​導​​​​​​​致​​​​​​​系​​​​​​​統​​​​​​​無​​​​​​​法​​​​​​​正​​​​​​​常​​​​​​​運​​​​​​​行​​​​​​​。​​​​​​​
例​​​​​​​如​​​​​​​: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 用​​​​​​​戶​​​​​​​端​​​​​​​的​​​​​​​主​​​​​​​機​​​​​​​名​​​​​​​稱​​​​​​​。​​​​​​​
NETTYPE=type
其​​​​​​​中​​​​​​​ type 必​​​​​​​須​​​​​​​是​​​​​​​底​​​​​​​下​​​​​​​任​​​​​​​何​​​​​​​一​​​​​​​種​​​​​​​:qeth 或​​​​​​​ lcs。​​​​​​​
IPADDR=IP
其​​​​​​​中​​​​​​​ IP 是​​​​​​​新​​​​​​​安​​​​​​​裝​​​​​​​ Linux 用​​​​​​​戶​​​​​​​端​​​​​​​的​​​​​​​ IP 位​​​​​​​址​​​​​​​。​​​​​​​
NETWORK=network
其​​​​​​​中​​​​​​​ network 是​​​​​​​網​​​​​​​路​​​​​​​的​​​​​​​位​​​​​​​址​​​​​​​。​​​​​​​
NETMASK=netmask
其​​​​​​​中​​​​​​​ netmask 是​​​​​​​網​​​​​​​路​​​​​​​遮​​​​​​​罩​​​​​​​。​​​​​​​
BROADCAST=broadcast
其​​​​​​​中​​​​​​​ broadcast 是​​​​​​​廣​​​​​​​播​​​​​​​位​​​​​​​址​​​​​​​。​​​​​​​
GATEWAY=gw
其​​​​​​​中​​​​​​​ network 是​​​​​​​網​​​​​​​路​​​​​​​的​​​​​​​位​​​​​​​址​​​​​​​。​​​​​​​
MTU=mtu
其​​​​​​​中​​​​​​​ mtu 是​​​​​​​本​​​​​​​連​​​​​​​結​​​​​​​的​​​​​​​最​​​​​​​大​​​​​​​傳​​​​​​​輸​​​​​​​單​​​​​​​元​​​​​​​(MTU,Maximum Transmission Unit)。​​​​​​​
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
這​​​​​​​變​​​​​​​數​​​​​​​能​​​​​​​讓​​​​​​​ OSA 裝​​​​​​​置​​​​​​​在​​​​​​​支​​​​​​​援​​​​​​​ qdio 模​​​​​​​式​​​​​​​或​​​​​​​非​​​​​​​ qdio 模​​​​​​​式​​​​​​​中​​​​​​​運​​​​​​​作​​​​​​​。​​​​​​​
當​​​​​​​使​​​​​​​用​​​​​​​ qdio 模​​​​​​​式​​​​​​​:osa_portname 是​​​​​​​ OSA裝​​​​​​​置​​​​​​​在​​​​​​​ qeth 模​​​​​​​式​​​​​​​下​​​​​​​指​​​​​​​定​​​​​​​的​​​​​​​連​​​​​​​接​​​​​​​埠​​​​​​​號​​​​​​​。​​​​​​​PORTNAME 只​​​​​​​有​​​​​​​在​​​​​​​ z/VM 4.3,或​​​​​​​之​​​​​​​前​​​​​​​沒​​​​​​​有​​​​​​​ APAR VM63308 與​​​​​​​ PQ3878的​​​​​​​機​​​​​​​器​​​​​​​上​​​​​​​才​​​​​​​需​​​​​​​要​​​​​​​。​​​​​​​
當​​​​​​​使​​​​​​​用​​​​​​​非​​​​​​​ 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"