ºìñÆóÒµ Linux 4: ÓÃÓÚ IBM® S/390® ºÍ IBM® eServer™ zSeries® ÌåϵµÄ°²×°Ö¸ÄÏ | ||
---|---|---|
ºóÍË | µÚ 1Õ . °²×°Ç°µÄ×¼±¸¹¤×÷ | Ç°½ø |
ÒÔ Linux guest ÕʺŵǼ z/VM¡£Äã¿ÉÒÔʹÓà x3270 »ò c3270£¨ºìñÆóÒµ Linux µÄ x3270-text Èí¼þ°ü£©À´´ÓÆäËü Linux ϵͳµÇ¼ z/VM¡£ÁíÍ⣬ÄãÒ²¿ÉÒÔʹÓà S/390 ¹ÜÀí¿ØÖÆ̨É쵀 OS/2 3270 ÖÕ¶ËÄ£ÄâÆ÷À´µÇ¼ VM¡£Èç¹ûÄãÔÚÒ»¸ö»ùÓÚ Windows µÄ»úÆ÷ÉϹ¤×÷£¬Jolly Giant£¨http://www.jollygiant.com/£©ÌṩÁËÆôÓà SSL µÄ 3270 Ä£ÄâÆ÷¡£
Èç¹ûÄã²»ÔÚ CMS ģʽ£¬ÏÖÔÚ¾ÍÇë½øÈë¡£
i cms |
Èô±ØÒª£¬°Ñ°üº¬ z/VM µÄ TCP/IP ¹¤¾ßµÄÉ豸Ìí¼Óµ½ÄãµÄ CMS ´ÅÅÌÁбíÖС£ÀýÈ磺
vmlink tcpmaint 592 592 |
Èç¹ûʹÓÃÈκλùÓÚ qdio/qeth µÄÍøÂçÁ¬½ÓÀàÐÍ£¨Èç OSA express »ò hipersockets£©£¬½ûÓà VM guest qioassist ²ÎÊý£º
set qioassist off |
FTP µ½°üº¬ºìñÆóÒµ Linux Òýµ¼Ó³Ïñ£¨kernel.img ºÍ initrd.img£©µÄ»úÆ÷ÉÏ£»µÇ¼£»ÔÙÖ´ÐÐÒÔÏÂÃüÁÈç¹ûÄãÒª¸²¸ÇÏÖ´æµÄ kernel.img ºÍ initrd.img Ó³ÏñÎļþ£¬ÇëʹÓà repl Ñ¡Ï£º
cd /location/of/boot/images/
locsite fix 80
bin
get kernel.img (repl
get initrd.img (repl
ascii
get redhat.parm (repl
quit
ÏÖÔÚ£¬Äã¿ÉÒÔ´´½¨²ÎÊýÎļþ£¨Èç redhat.parm£©¡£Çë²ÎÔĸ½Â¼ BÀ´»ñµÃ parm ÎļþµÄ·¶Àý¡£ÒÔÏÂÊÇ¶Ô parm ÎļþÄÚÈݵĽâÊÍ¡£
²ÎÊýÎļþÖеIJÎÊýÏÞ¶îÊÇ32¡£ÎªÁËÂú×ãÏÞ¶îµÄÐèÒª£¬Ó¦¸ÃÔÚ CMS DASD ÉÏʹÓÃÒ»¸öÐÂÅäÖÃÎļþÀ´ÅäÖÃ×î³õµÄÍøÂçÉèÖÃºÍ DASD ¹æ·¶¡£
ÕæÕýµÄÄں˲ÎÊý£¬ÀýÈç root=/dev/ram0 ro ip=off ramdisk_size=40000£¬ÒÔ¼°Ã»Óб»·ÖÅä¸ø±äÁ¿µÄµ¥¸ö²ÎÊý£¬Èç vnc£¬ÈÔ¾ÉÐèÒª .parm Îļþ¡£ÔÚÐÂÅäÖÃÎļþÖÐÓÃÀ´Ö¸Ïò°²×°³ÌÐòµÄÁ½¸öвÎÊýÐèÒª±»Ìí¼Óµ½ .parm ÎļþÖС£
CMSDASD=191 CMSCONFFILE=redhat.conf |
CMSDASD ÊÇ CMS ¸ñʽ»¯µÄ DASD µÄÉ豸 ID¡£Ëü°üº¬ÅäÖÃÎļþ¡£CMSDASD ͨ³£ÊÇÖ÷»úÓû§µÄ '$HOME' DASD 191¡£ÅäÖÃÎļþµÄÃû³Æ±ØÐë±»ÉèΪ CMSCONFFILE£¬²¢ÇÒ±ØÐëÈ«²¿Ê¹ÓÃСд×Öĸ¡£
CMSCONFFILE µÄÓ﷨ʹÓà bash ·ç¸ñ¡£ËüʹÓà variable="value" ¸ñʽ£¬Ã¿ÐÐÒ»×é¡£
redhat.parm ʾÀýÎļþ£º
root=/dev/ram0 ro ip=off ramdisk_size=40000 CMSDASD=191 CMSCONFFILE=redhat.conf vnc |
redhat.exec ʾÀýÎļþ£º
/* */ 'cl rdr' 'purge rdr all' 'spool punch * rdr' 'PUNCH KERNEL IMG A (NOH' 'PUNCH REDHAT PARM A (NOH' 'PUNCH INITRD IMG A (NOH' 'ch rdr all keep nohold' 'i 00c' |
redhat.conf ʾÀýÎļþ£º
HOSTNAME="foobar.zSeries.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:zSeries.example.com" GATEWAY="192.168.17.254" DNS="192.168.17.1" MTU="4096" |
ÒÔϲÎÊýÊDZØÐèµÄ£¬±ØÐë±»°üÀ¨ÔÚ²ÎÊýÎļþÖУº
DASD=<dasd-list>
ÕâÀïµÄ <dasd-list> ´ú±í±»ºìñÆóÒµ Linux ʹÓÃµÄ DASD É豸ÁÐ±í¡£
ËäÈ»Èç¹û²ÎÊý±»Ê¡ÂÔºó£¬DASD »á±»×Ô¶¯Ì½²â£¬Ç¿ÁÒ½¨ÒéÄã°üÀ¨ DASD= ²ÎÊý£¬ÒòΪµ±Ð嵀 DASD ±»Ìí¼Óµ½ºìñÆóÒµ Linux guest ÉÏʱ£¬É豸ºÅÂ루Òò´ËÉ豸Ãû³Æ£©»áÓÐËù±ä»¯¡£Õâ»áµ¼Ö²»¿ÉÓõÄϵͳ¡£
root=<file-system>
ÕâÀïµÄ <file-system> ´ú±í¿ÉÒÔÕÒµ½¸ùÎļþϵͳµÄÉ豸¡£ÎªÁË°²×°£¬ËüÓ¦¸Ã±»ÉèÖÃΪ /dev/ram0£¬¼´°üº¬ºìñÆóÒµ Linux °²×°³ÌÐòµÄ ramdisk ¡£
ÒÔϲÎÊýÊÇÉèÖÃÁªÍøËù±ØÐèµÄ£º
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>" ctc: SUBCHANNELS="<read_device_bus_id>,<write_device_bus_id>" |
ÀýÈ磨qeth SUBCHANNEL ʾÀý£©£º
SUBCHANNELS=0.0.0600,0.0.0601,0.0.0602 |
ҪǿÖÆʹÓÃÖ¸¶¨µÄ CTC ÐÒ飬Äã¿ÉÒÔÌí¼Ó¶îÍâµÄ²ÎÊý¡£ÀýÈ磺
CTCPROT=<n>
ÕâÀïµÄ <n> ÊÇÒÔÏÂÖ®Ò»£º
· 0 ÓÃÓÚ¼æÈÝÐÔģʽ£¨±» S/390 ºÍ zSeries ²Ù×÷ϵͳ֮ÍâµÄ·Ç Linux ¶Ô¶ËʹÓã©
· 1 ÓÃÓÚÀ©Õ¹Ä£Ê½
· 2 ÓÃÓÚ»ùÓÚ CTC µÄ tty£¨Ö»ÔÚ Linux µ½ Linux Á¬½ÓÖб»Ö§³Ö£©
· 3 ÓÃÓÚºÍ S/390 ¼° zSeries ²Ù×÷ϵͳµÄ¼æÈÝÐÔģʽ
PEERID=<userid>
ÕâÀïµÄ <userid> ´ú±íÄãÏëÁ¬½Óµ½µÄ guest »úÆ÷µÄ ID¡£×¢Ò⣬Õâ¸ö ID ±ØÐëʹÓôóд×Öĸ¡£È磺µ½ z/VM TCP/IP ·þÎñ»úÆ÷µÄ PEERID Á¬½ÓÓ¦¸Ã±»Ð´×÷£º
PEERID=TCPIP
×¢Ò⣬PEERID ²ÎÊý´úÌæÓÃÓÚ Linux 2.4 ÄÚºËÖÐµÄ IUCV ²ÎÊý¡£
ÒÔϲÎÊýÊÇ¿ÉÑ¡µÄ£º
HOSTNAME=<string>
ÕâÀïµÄ <string> ÊÇа²×°µÄ Linux guest µÄÖ÷»úÃû¡£
NETTYPE=<type>
ÕâÀïµÄ <type> ±ØÐëÊÇÒÔÏÂÖ®Ò»£ºctc¡¢iucv¡¢lcs¡¢»ò qeth¡£
IPADDR=<IP>
ÕâÀïµÄ <IP> ÊÇÐ嵀 Linux guest µÄ IP µØÖ·¡£
NETWORK=<network>
ÕâÀïµÄ <network> ÊÇÄãµÄÍøÂçµØÖ·¡£
NETMASK=<netmask>
ÕâÀïµÄ <netmask> ÊÇ×ÓÍøÑÚÂë¡£
BROADCAST=<broadcast>
ÕâÀïµÄ <broadcast> Êǹ㲥µØÖ·¡£
GATEWAY=<gw>
ÕâÀïµÄ <gw> ¿ÉÒÔÊÇÄãµÄ eth É豸µÄÍø¹Ø IP µØÖ·£¬Ò²¿ÉÒÔÊÇ ctc/escon/iucv µã¶Ôµã»ï°éµÄ IP µØÖ·¡£
MTU=<mtu>
ÕâÀïµÄ <mtu> ÊDZ¾´ÎÁ¬½ÓµÄ×î´ó´«Ê䵥루MTU£©¡£
DNS=<server1>:<server2>:…:<serverN>
ÕâÀïµÄ <server1>:<server2>:…:<serverN> ÊÇ DNS ·þÎñÆ÷µÄÁÐ±í£¬Ê¹ÓÃðºÅ·Ö¸ô¡£ÀýÈ磺
DNS=10.0.0.1:10.0.0.2
SEARCHDNS=<domain1>:<domain2>:…:<domainN>
ÕâÀïµÄ <domain1>:<domain2>:…:<domainN> ÊÇËÑË÷ÓòµÄÁÐ±í£¬Ê¹ÓÃðºÅ·Ö¸ô¡£ÀýÈ磺
SEARCHDNS=example.com:example.org
PORTNAME=<osa_portname> | <lcs_portnumber>
¸Ã±äÁ¿Ö§³ÖÔÚ qdio ģʽ»ò non-qdio ģʽÖвÙ×÷µÄ OSA É豸¡£
ÔÚʹÓà qdio ģʽʱ£º<qeth_portname> ÊÇÔÚ qeth ģʽÖвÙ×÷ʱÔÚ OSA É豸ÉÏÖ¸¶¨µÄ¶Ë¿ÚÃû¡£PORTNAME Ö»ÔÚûÓÐ APARs VM63308 ºÍ PQ73878 µÄz/VM 4.3 »ò¸üÀϵİ汾ÖÐÐèÒª¡£
ÔÚʹÓÃ·Ç qdio ģʽʱ£º<lcs_portnumber> ±»ÓÃÀ´´«µÝ´Ó0µ½15¼äµÄÏà¶Ô¶Ë¿ÚºÅÂë¡£
FCP_<n>="<device_number> <SCSI_ID> <WWPN> <SCSI_LUN> <FCP_LUN>"
ÕâЩ±äÁ¿¿ÉÒÔÔÚ´øÓÐ FCP É豸µÄϵͳÉϱ»ÓÃÀ´Ô¤ÅäÖà FCP ÉèÖã¬È»ºó¿ÉÒÔÔÚ°²×°Öб»Ð޸ġ£ËüÃǵÄÖµ¿ÉÒÔÀàËÆ£º
FCP_1="0.0.5000 0x01 0x5105074308c212e9 0x0 4010" |
<n> is an integer value (e.g. FCP_1, FCP_2, ...).
<device_number> ±»ÓÃÀ´Ö¸¶¨ FCP É豸µÄµØÖ·£¨ÀýÈ磬É豸 5000 ʹÓà 0.0.5000£©¡£
<SCSI_ID> ʹÓÃÊ®Áù½øÖÆÊýÖµÖ¸¶¨£¬Í¨³£Ê¹ÓÃÓÐÐòÊýÖµ£¨Èç 0x01¡¢0x02¡¡£©£¬¶ø²»ÊǶà¸ö FCP_ ±äÁ¿¡£
<WWPN> ÊÇÓÃÓÚѡ·µÄÈ«¾Ö¶Ë¿ÚÃû³Æ£¨Í¨³£ºÍ¶à¸ö·¾¶Ò»Í¬Ê¹Óã©£¬ËüʹÓÃÊ®Áù½øÖÆÊýÖµ£¨Èç 0x5105074308c212e9£©¡£
<SCSI_LUN> Ö¸´ú±¾µØ SCSI Âß¼µ¥ÔªÖµ£¬ËüʹÓÃÊ®Áù½øÖÆ£¬Í¨³£Ê¹ÓÃÓÐÐòÊýÖµ£¨Èç 0x00¡¢0x01¡¢¡¡£©£¬¶ø²»ÊǶà¸ö FCP_ ±äÁ¿¡£
<FCP_LUN> Ö¸´úÖü´æÂß¼µ¥ÔªÊ¶±ðÆ÷¡£ËüʹÓÃÊ®Áù½øÖÆÊýÖµÖ¸¶¨£¨Èç 0x4010£©¡£
×¢¼Ç | |
---|---|
ÓÃÔÚ FCP ²ÎÊýÖеÄÿ¸öÖµ£¨FCP_1¡¢FCP_2¡¢¡¡£©¶¼ÊÇÕ¾µãÌØÓеģ¬Í¨³£±» FCP Öü´æ¹ÜÀíÔ±Ìṩ¡£ |
ÒÔÏÂÓÃÓÚ kickstart °²×°µÄ²ÎÊýÊÇ¿ÉÑ¡µÄ£º
RUNKS=<value>
ÕâÀïµÄ <value> ±»¶¨ÒåΪ 1£¬Èç¹ûÄãÏëÔÚ 3270 Öն˵ķǻ¥¶¯ÐÔģʽÖÐÔËÐа²×°³ÌÐòµÄ»°£¬·ñÔòΪ 0¡£
×¢¼Ç | |
---|---|
ÔÚÆôÓøÃÑ¡ÏîÇ°£¬ÇëÈ·¶¨ÄãµÄ kickstart Îļþ°üº¬ËùÓбØÐèµÄ²ÎÊý¡£ |
Èç¹û parm ÎļþÖÐÊ¡ÂÔÁËҪʹÍøÂç²Ù×÷ÕýÈ·½øÐÐËù±ØÐèµÄÈκÎÍøÂç²ÎÊý£¬°²×°Òýµ¼½ø³ÌÖоͻá³öÏÖÒ»¸öÌáʾ¡£
Èç¹ûÄãÍ˳öÁË£¬ÇëÖØÐÂÁ¬½Ó£¬²¢Ê¹ÓÃÄãΪ°²×°ÅäÖÃµÄ z/VM guest ID À´µÇ¼¡£Èç¹ûÄã²»ÔÚ CMS ģʽ£¬ÇëÏÖÔھͽøÈë¡£
i cms |
´´½¨Ò»¸ö¿ÉÖ´Ðнű¾£¬ÆäÖаüº¬Òª IPL ÔØÈëÄÚºËÓ³Ïñ²¢Æô¶¯°²×°Ëù±ØÐèµÄÃüÁî¡£ÒÔϽű¾·¶ÀýÊǵäÐ͵ijõʼÆô¶¯½Å±¾£º
/* */ 'CL RDR' 'PURGE RDR ALL' 'SPOOL PUNCH * RDR' 'PUNCH KERNEL IMG A (NOH' 'PUNCH REDHAT PARM A (NOH' 'PUNCH INITRD IMG A (NOH' 'CH RDR ALL KEEP NOHOLD' 'IPL 00C CLEAR' |
³ý·ÇÄãÔÚ parm ÎļþÖÐÒѾָ¶¨ÁËËùÓбØÒªµÄÐÅÏ¢£¬³õʼ°²×°Æô¶¯½Å±¾»áÌáʾÄãÊäÈë¹ØÓÚÁªÍøºÍ DASD µÄÐÅÏ¢¡£
»Ø´ðÁËËùÓеÄÎÊÌâºó£¬Äã¾Í¿ÉÒÔÆô¶¯ºËÐÄ°²×°³ÌÐò loader ÁË¡£Òª¼ÌÐø°²×°£¬Çë²ÎÔĵÚ2Õ ÖеÄ˵Ã÷¡£