Académique Documents
Professionnel Documents
Culture Documents
cover
Front cover
Instructor Exercises Guide
z/VM and Linux on IBM Z and LinuxONE
Bootcamp
Course code ZL00G ERC 2.0
TOC
Contents
Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv
Exercises description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vi
TMK
Trademarks
The reader should recognize that the following terms, which appear in the content of this training
document, are official trademarks of IBM or other companies:
IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of International Business
Machines Corp., registered in many jurisdictions worldwide.
The following are trademarks of International Business Machines Corporation, registered in many
jurisdictions worldwide:
developerWorks® IBM Spectrum™ System z®
DirMaint™ IBM z Systems® Tivoli®
ECKD™ Language Environment® VTAM®
FICON® PR/SM™ z Systems®
FlashCopy® RACF® z/Architecture®
HiperSockets™ Redbooks® z/OS®
IBM LinuxONE™ RMF™ z/VM®
IBM Spectrum Protect™ S/390® z/VSE®
Adobe is either a registered trademark or a trademark of Adobe Systems Incorporated in the United
States, and/or other countries.
Intel is a trademark or registered trademark of Intel Corporation or its subsidiaries in the United
States and other countries.
Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both.
Microsoft and Windows are trademarks of Microsoft Corporation in the United States, other
countries, or both.
Java™ and all Java-based trademarks and logos are trademarks or registered trademarks of
Oracle and/or its affiliates.
UNIX is a registered trademark of The Open Group in the United States and other countries.
Other product and service names might be trademarks of IBM or other companies.
pref
Instructor exercises overview
After completing the exercises, students should be able to:
• Install and Configure z/VM and additional subsystems
• Install and Configure Linux on IBM Z
• Apply Service to z/VM 7.1
• Manage TCPIP for z/VM and Linux on IBM Z
• Back up and Restore files with TSM Linux on IBM
Each exercise depends on successful completion of the previous exercises.
pref
Exercises description
This course includes the following exercises:
• z/VM log on overview
• z/VM installation
• 7.1 CP system configuration
• z/VM User Directory
• z/VM networking
• Servicing z/VM (VMSES/E)
• Linux (RedHat, SUSE, and Ubuntu) installation on IBM Z
• Linux networking
• Linux system management
• z/VM Performance Toolkit configuration
In the exercise instructions, you can check off the line before each step as you
complete it to track your progress.
Most exercises include required sections that should always be completed. It
might be necessary to complete these sections before you can start later
exercises.
EXempty
Estimated time
00:30
Instructor Information: You must have the students complete this exercise
because the next exercise does not cover having the student log on.
Overview
This exercise describes the process of logging on to the student IDs to perform
the student exercises.
Objectives
At the end of the exercise, you should be able to:
• Log on to the VM system by using the logon BY option
Notes:
This is the first screen that you should see.
This displays the IBM Learning Services Samon Screen.
From this screen, you enter MOPEDVM2 (or press PF4).
EXempty
COMMAND ===>
RUNNING MOPEDVM2
Notes:
This is the LOGO screen for MOPEDVM2.
Press the Enter key to display the second logon screen, where you enter a special version of the
logon command.
Notes:
The MOPEDVM2 system programming staff requires that we use the logon BY option when we run
second-level guest systems.
The syntax is:
log on ZVMBnn BY SZVMBnn
where nn is the team number that is given to you by your instructor. In other words, Team21 uses
ZVMB21, Team22 uses ZVMB22, and so on).
You will be prompted for your password after you press Enter.
EXempty
Password prompt
logon zvmd01 by szvmd01
XXXXXX
CP Read MOPEDVM2
Notes:
At the logon prompt for your SZVMBnn userid, enter the password that was provided to you by your
instructor.
The password expires the first time that you enter it, so you must change that password. Read the
instructions on the screen for changing your password. Your instructor will provide you with your
new password.
Notes:
Each student team has two OSA connections to the network.
Each connection consists of three addresses that are defined to each student team. The addresses
are virtual A000- A002 and A010 - A012.
Good luck in the class.
End of exercise
EXempty
Estimated time
03:00
Overview
The students will log on to their z/VM virtual machine and install a z/VM 7.1 guest
operating system. They will use the planning worksheets in Appendix A to plan the
installation, and then run the z/VM utilities to complete the installation.
Objectives
At the end of the lab, you should be able to:
• Install a z/VM 7.1 non-SSI system
• Complete the installation worksheets
• Use the installation planning utilities
• Use the installation utilities
Requirements
• Student lab virtual machine
• Terminal with access to the lab z/VM system
• Student Notebook and Exercise Guide
Exercise instructions
The LAB environment that you use for exercises runs in an LPAR. z/VM runs there (ID:
POKEDVM2) and hosts a number of Virtual Machines (VMs). Each team has its own VM (ID:
ZVMBxx) for the LAB exercises.
The first time that you log on to your VM (by using the bottom 3270 screen that is shown above),
you run CMS in first level. This approach enables you to install z/VM in second level in that VM.
When the second-level z/VM is running in your VM (wiping out CMS), you are still logged on to
ID: ZVMBxx. But you can log on to the second-level z/VM (by using the upper 3270 screen above).
At the second level, you can access any VM defined in the second-level z/VM, including a VM for
bootstrapping a Linux installation.
When you see the logon screen for second level, you can toggle between first level and second
level by using PA1. You see the VM ID changing in the bottom-right corner of the screen. It is
possible to DISCONNECT from second level when you see the first-level VM ID, POKEDVM2, and
get back into second-level VM using DIAL ZVMBxx from the first level logon screen. However, you
have to issue CP ENABLE ALL on the second level before using the DIAL command.
If you are in second level using the DIAL command, you cannot use PA1 to toggle between first
level and second level.
EXempty
__ 2. Use the following information to fill out the worksheets:
__ a. Choose the Second-level Installation method.
__ b. Install all products/components to VMSYS filepool [F].
__ c. Default system language will be AMENG.
__ d. Use 3390 10016 CYL DASD.
__ e. The common shared file pool name will be ZVMBnn, where nn is your team number.
__ f. The installation type is Non-SSI.
__ g. Your system name will be ZVMBnn.
__ h. We will NOT use SMAPI client for system management.
__ i. Use the DEFAULT volume labels for your DASD initialization, and addresses 123-127.
__ j. You will install from an FTP SERVER (10.31.189.239).
__ k. FTP user/password ==> ZVM06V8/ zvm068 (the user name is in uppercase, password
is lowercase).
__ l. FTP directory will be /ZVM71/CPDVD.
__ 3. In Step 4. “Chose your next step,” choose “Traditional installation for second level.”
__ 12. When DVDPRIME is complete, you must follow the Installation Guide to perform the
Non-SSI DVD installation (Chapter 5, page 45).
Note: Congratulations! You have successfully installed the z/VM 7.1 in second level. The next
steps will be working with the second-level z/VM 7.1 system.
EXempty
__ 22. Issue the CP command Query CPLEVEL.
What is your CPLEVEL? _________________________________
__ 23. Issue the LOGOFF command and log on to the MAINT virtual machine by using the
surrogate userid IBMVM1. The default password is the same as MAINT710. When you log
on to MAINT, you must press Enter until you see RUNNING in the bottom right of your
screen.
__ 24. Press the PA1 key to return your virtual machine to first level (with PCOMM this is mapped
to the ESC key by default). Enter #cp link * 192 192 mr. Clear your screen (the clear
key by default is mapped to the PAUSE key) until you return to your second-level system.
You should see ZVMBnn in the bottom right corner when you complete this task.
__ 25. We will now work with XEDIT and setting up the MAINT virtual machine to your liking.
__ 32. Locate the command in this file that sets a function key to RETRIEVE BACKWARD. Then,
change the PFnn to the PF key you wish to use to retrieve commands when you are in the
CMS and CP environment. If you don’t locate it, you can define in the next steps.
__ 33. Replicate that line and set another PF key to issue the FILELIST command.
__ 34. The final modification for the PROFILE EXEC is to add the following statements:
'CP SET PF12 RETRIEVE BACKWARD'
'CP TERM MORE 3 2 '
'CP TERM HOLD OFF'
'CP SET RUN ON'
These commands will cause your screen to clear automatically when it fills up, and will allow
your virtual machine to keep running programs even when it becomes disconnected.
Enter FILE on the command line (top of screen ====>) and press Enter. More on this later
but we discussed it in the lecture.
EXempty
__ 40. Next, do you wish the scale to be displayed? If so, make the appropriate change.
__ 41. Do you want the prefix area and numbers on the left or right? Make the appropriate change
to this file to set the prefix area where you want it.
__ 42. Now we need to see what we can do to make XEDIT automatically save our working
session. There is a SET command called AUTOSAVE. You can look at the Help facility, but
there is a different way to find the syntax. Issue the command MODIFY AUTOSAVE on the
command line and see what happens. You will see that it is set to the default OFF. The other
option is to set it to a numeric value that will represent how often you wish to automatically
save your changes.
__ 43. Now that you know the syntax for AUTOSAVE add this command to your PROFILE XEDIT
file on the previously inserted blank line.
__ 44. We probably should have put the AUTOSAVE statement with the rest of the XEDIT SET
statements. Let's do that now. Move your AUTOSAVE statement to the area in the file with
all the other general set commands at the top. Use the Help facility if needed.
__ 45. Locate all the lines that have the words PREFIX SYNONYM in them.
You can look at help to see what this does. This is very helpful in making your XEDIT
session similar to other editors with which you may be more familiar. In this file, we are
setting the prefix area command A (after) to be the same as F (following - the XEDIT target
command for a copy or move operation). We have also done the same thing for line
replication changing the “ to R and ““ to RR, and so on.
__ 46. File all of your changes and then XEDIT the PROFILE XEDIT file again to check your
modifications. If you have error messages that are displayed at the top of your screen, try to
fix them or ask for assistance from your instructor.
__ 47. Close your XEDIT session when you are satisfied with your work.
__ 48. XEDIT your SYN SYNONYM file on MAINT’s 191 disk. Add more synonyms that would help
you do your job (see the following examples). This file must be in uppercase.
SYN SYNONYM A1 F 80 Trunc=80
====>
* * * Top of File * * *
FILELIST FL
PEEK PE
RECEIVE REC
REPLACE REP
* * * End of File * * *
__ 49. File your changes when you are satisfied with your updates
The MAINT virtual machine is one of the most powerful userids on the system. This user owns
several minidisks that are linked to by all other CMS userids on the system for the sharing of files
and programs. If you copy the PROFILE XEDIT file you have modified to MAINT's 190 disk, then it
will be available for everyone on the system. Let's see what it takes to perform this task. While easy,
it is slightly more involved than just copying the file to the disk.
__ 50. First, clear your screen.
__ 51. Issue the command QUERY DISK. This is a CMS command that displays what disks this
virtual machine currently has accessed and available to CMS. Pay special attention to the
190 - S disk. You should have seen that this disk is accessed in read only mode.
__ 52. Issue the command QUERY VIRTUAL 190. This is a CP command and it should have
shown that you have it linked in READ/WRITE mode.
So what is the deal here? __________________________________
You actually have ownership of this disk in READ/WRITE mode, just as CP says. But the S
Disk is a special disk, and when CMS IPLs it always accesses this disk in READ ONLY
mode. So if we want to copy a file to this disk we need to access it in READ/WRITE mode.
This is easier than you might think.
__ 53. Issue the following command: ACCESS 190 Z.
__ 54. Now issue the QUERY DISK command again and see the status of the Z disk.
READ ONLY or READ/WRITE? _______________
You should have the Z disk in READ/WRITE mode and now we can copy files to this disk.
__ 55. Issue the following command:
COPY PROFILE XEDIT A = = Z2 (OLDDATE
(You must use the z2 on the command. The instructor will explain this in the lab review.)
__ 56. We also need to put this file on the 490 disk. Log off from MAINT and log on to MAINT710
(same password as MAINT).
__ a. Issue the command ACCess 490 Z.
__ b. Then, COPY PROFILE XEDIT S = = Z2 (OLDDATE
Now that you have this file on the 190 and 490 disks, we have a few more tasks to
complete. But first let’s see the message that was caused by accessing MAINT's 190 disk in
write mode and making modifications to a file there.
__ c. Issue the IPL CMS PARM AUTOCR command.
Did you see a warning message about the DMSWSP100W Shared S-STAT not available?
__________________________
__ d. To correct this problem, issue the following command:
PUT2PROD SAVECMS
__ 57. Shut down your second-level z/VM 7.1 system with the SHUTDOWN command.
__ 58. You should see the z/VM shutdown messages on the console, when you get the message
HCPGIR450W CP entered; disabled wait PSW, log off the first-level system.
You have successfully completed this lab exercise.
EXempty
End of exercise
Exercise solutions
Part 2: Preparing to install your z/VM 7.1 non-SSI system
Step 10: Detach the 192 disk. What command did you use? DETACH 192.
EXempty
Step 18: Did you see your volumes? YES
Step 20: Run the INSTALL exec and watch for a while and then go for a coffee break.
IUGIIS8490I NOW FORMATTING VOLUME 0123 (1 OF 10)
IUGIIS8490I NOW FORMATTING VOLUME 0124 (2 OF 10)
IUGIIS8490I NOW FORMATTING VOLUME 0125 (3 OF 10)
IUGIIS8490I NOW FORMATTING VOLUME 0126 (4 OF 10)
IUGIIS8490I NOW FORMATTING VOLUME 0127 (5 OF 10)
IUGILB8440I NOW LOADING MAINT CF1 (CF1) DISK 1 OF 190
IUGILB8440I NOW LOADING MAINT CFD (CFD) DISK 2 OF 190
IUGILB8440I NOW LOADING MAINT CF3 (CF3) DISK 3 OF 190
IUGILB8440I NOW LOADING MAINT 190 (190) DISK 4 OF 190
IUGILB8440I NOW LOADING PMAINT CF0 (CF0) DISK 5 OF 190
IUGILB8440I NOW LOADING PMAINT 2CC (2CC) DISK 6 OF 190
IUGILB8440I NOW LOADING PMAINT 1CF0 (909) DISK 7 OF 190
IUGILB8440I NOW LOADING MAINT630 CF2 (CF2) DISK 8 OF 190
IUGILB8440I NOW LOADING MAINT630 191 (191) DISK 9 OF 190
IUGILB8440I NOW LOADING MAINT630 4CC (4CC) DISK 10 OF 190
IUGILB8440I NOW LOADING BLDCMS 191 (8D1) DISK 11 OF 190
IUGILB8440I NOW LOADING BLDNUC 191 (8AD) DISK 12 OF 190
IUGILB8440I NOW LOADING BLDRACF 191 (8AC) DISK 13 OF 190
IUGILB8440I NOW LOADING BLDSEG 191 (8A9) DISK 14 OF 190
IUGILB8440I NOW LOADING MAINT 191 (923) DISK 15 OF 190
IUGILB8440I NOW LOADING MAINT 193 (193) DISK 16 OF 190
***** 311 additional messages about LOADING Disks *********
IUGIDV8341I USER DIRECTORY HAS BEEN BROUGHT ONLINE SUCCESSFULLY
IUGIDV8341I SALIPL COMMAND HAS COMPLETED SUCCESSFULLY
IUGIWF8341I {MDDUMP|ECKDDUMP} OF 2CF0 COMPLETED SUCCESSFULLY
IUGIWF8338I NOW EXECUTING COPY OF 24CC TO 4CC STEP
IUGIWF8341I {MDDUMP|ECKDDUMP} OF 24CC COMPLETED SUCCESSFULLY
IUGIDV8392I INSTDVD EXEC ENDED SUCCESSFULLY
******************************************
NOW IPLing VOLUME 125
WITH COMMAND:
CP SYSTEM CLEAR
TERMINAL CONMODE 3270
SET MACHINE ESA
IPL 125 CLEAR
******************************************
10:28:40 z/VM V7 R1.0 SERVICE LEVEL 1801 (64-BIT)
10:28:41 SYSTEM NUCLEUS CREATED ON 2018-10-29 AT 10:48:03, LOADED FROM M01RES
10:28:41
*********************************************************************************
10:28:41 * LICENSED MATERIALS - PROPERTY OF IBM* *
10:28:41 * *
10:28:41 * 5741-A07 (C) COPYRIGHT IBM CORP. 1983, 2013. ALL RIGHTS *
10:28:41 * RESERVED. US GOVERNMENT USERS RESTRICTED RIGHTS *
END OF JOB
z/VM DASD DUMP/RESTORE PROGRAM
HCPDDR698I DATA DUMPED FROM 0X0100 TO BE RESTORED
HCPDDR697I NO VOL1 LABEL FOUND
RESTORING 0X0100
DATA DUMPED 04/11/13 AT 18.12.19 GMT FROM 0X0100 RESTORED
EXempty
INPUT CYLINDER EXTENTS OUTPUT CYLINDER EXTENTS
START STOP START STOP
0 3329 0 3329
END OF RESTORE
BYTES RESTORED 2461676300
HCPCLS6056I XAUTOLOG information for VMSERVR: The IPL command is verified by the
IPL command processor.
IUGIFP8493I ISSUING XAUTOLOG FOR VMSERVS
AUTO log on *** VMSERVS USERS = 4
HCPCLS6056I XAUTOLOG information for VMSERVS: The IPL command is verified by the
IPL command processor.
USER DSC LOGOFF AS VMSERVR USERS = 4 FORCED BY MAINT630
IUGIFP8493I ISSUING XAUTOLOG FOR VMSERVR
**********************************************************
****** PUT2PROD messages ***************
*********************************************************************************
* INSTCOMP NOW ISSUING SHUTDOWN REIPL *
*********************************************************************************
SYSTEM SHUTDOWN STARTED
Step 21: What virtual machine is performing this portion of the installation? MAINT710
Step 22: What is your CPLEVEL? z/VM Version 7 Release 1.0, service level 1801 (64-bit).
EXempty
Estimated time
02:30
Overview
In this exercise, students have the opportunity to modify system definitions. The
students will access the PARM disk in write mode, modify the system
configuration file, execute CPFMTXA, and test their changes.
Objectives
At the end of the lab, you should be able to:
• Release the PARM disk from CP
• Relink and reaccess the PARM disk in write mode
• Use XEDIT to modify the SYSTEM CONFIG file
• Run the CPSYNTAX program to check for mistakes
• Execute the CPFMTXA program to create disks usable by CP
• Shut down and restart the system to test those changes
Requirements
• Student Notebook and Exercise Guide
EXempty
Exercise instructions
Part 1: Starting the z/VM guest operating system
__ 1. Log on to your team virtual machine.
__ 2. Set up and IPL your z/VM system. Use the same procedure from previous exercises. (That
is, system reset / term conmode 3270 / ipl 125 clear loadparm 020 / warm start.) Then
DISCONNECT from the OPERATOR. In later exercises, we will refer to this as Set up and
IPL your z/VM system.
EXempty
Part 3: Update system logo
__ 8. You need to access the shared filesystem where the DRAWLOGO is with the command
ACC VMPSFS:MAINT710.CPDV.SAMPLE F (FORCERW
Note: You can log on to MAINT710 and access drawlogo from there by issuing this command:
VMFSETUP SERVP2P CPSFS (RETAIN Z (if shared filesystem used during the
z/VM installation)
or
VMFSETUP SERVP2P CP (RETAIN Z (if minidisk used during the z/VM
installation)
__ 9. List all of the files on the F disk. (Remember that you can use the synonym that you set up
previously for this command.) You should see two files that are called
DRAWLOGO SAMPEXEC and X$DRWL$X SAMPXEDI.
__ 10. Copy the DRAWLOGO file to a file type of EXEC (keeping the same file name).
__ 11. Copy the X$DRWL$X file to a file type of XEDIT (keeping the same file name).
__ 12. Press PF2 to refresh the filelist display and verify that your new files were created.
__ 13. Run DRAWLOGO against the LOCAL LOGO file on the Z disk. Make as many changes as
you like to the logo (maybe add colors or blinking, and so forth). Be sure to display your
results.
__ 14. Go to PARM DISK CF1 previously accessed and do the following steps:
copy local logo z local logobkp z
copy local logo f = = z (oldd rep
__ 15. In order to restore the PARM disk access to CP, Issue the following commands:
link maint cf1 cf1 rr
cpaccess maint cf1 a
q cpdisk
EXempty
__ 22. In the section “User volume for local minidisk,” add a statement “User_Volume_include”
and add all volumes that begin with 0X016, all volumes that begin with USER0 and all
volumes that begin with M01W0. These are volumes that should be attached to the system
at IPL time. Hint: Use the generic character * (asterisk).
__ 23. Code the Device statement so that real addresses 190 - 191 and 19D - 19E will be off line at
IPL time.
__ 24. Enable the facility to allow setting Privilege Classes (Hint: Features).
__ 25. Enable the facility to require System Shutdown Validation.
__ 26. Enable the facility to allow Auto_Warm_IPL startup of your system.
__ 27. Update the facility to allow for the use of VDISKs, with a maximum of 350000 blocks per
virtual machine.
__ 28. Add the appropriate statement that will define a VSWITCH named ZL00LAN2 that connects
to real addresses A010 and A013. See the instructions on Networking unit 5.
__ 29. Add or modify the statement to enable the RSCS Networking Product.
__ 30. File your changes.
__ 31. You made several changes to the system configuration file. Because we are new to this
process, we may have made some mistakes. Our friends in Endicott know this is possible,
so they provide a program that checks the syntax of the file that you just changed.
__ 32. The utility to check the SYSTEM CONFIG file syntax is on the 193 disk. Access this disk at
filemode T.
__ 33. Issue the command CPSYNTAX SYSTEM CONFIG Z. CPSYNTAX verifies the syntax only.
This is the message that you should receive:
vmlink maint 193
cpsyntax system config z
CONFIGURATION FILE PROCESSING COMPLETE -- NO ERRORS ENCOUNTERED.
Ready;
__ 34. If you encounter errors, return to the SYSTEM CONFIG file and correct them, then rerun the
CPSYNTAX program. When you have fixed all of your errors, continue with the next step.
Ask your instructor if you need assistance.
__ 35. When you have finished your modifications to the SYSTEM CONFIG file, detach the CF0
minidisk.
EXempty
First, we need to make these devices available to the MAINT virtual machine. Issue the
following commands:
ATTACH F00-F01 *
ATTACH 161-163 *
ATTACH 150 *
Previously in this lab you added three volumes to the CP_Owned list in the SYSTEM
CONFIG file. F00 will be formatted as PAGE01, F01 will be formatted as SPOOL1, and
150 will be formatted as ALTRES. We need to verify that MAINT has virtual devices at
address F00-F01 and 150. Issue these commands:
QUERY F00-F01
QUERY 150
QUERY VIRTUAL F00-F01
QUERY VIRTUAL 150
What is the status of these devices? ___________________________
__ 37. Enter CPFMTXA. You will have to run the program six times for F00, F01, 150, 161, 162, and
163. The following three steps provide the information that CPFMTXA will need in the
appropriate order to format and allocate the three DASD volumes for page, spool, and the
alternate RES pack.
__ 38. Here are the parameters you will have to pass to CPFMTXA for F00:
Select the FORMAT option.
Virtual Address - F00
Cylinder Range - 0 END
Volume Label - PAGE01
Do you want to continue? - YES
The allocation program will automatically start and then pause for input. Enter these
parameters:
PAGE 1 END
END
__ 39. Now run the program for F01.
Select the FORMAT option.
Virtual Address - F01
Cylinder Range - 0 END
Volume Label - SPOOL1
Do you want to continue - YES
Allocation parameters
SPOL 1 END
END
EXempty
__ 40. Now run the program for 150.
Select the FORMAT option.
Virtual Address - 150
Cylinder Range - 0 END
Volume Label - ALTRES
Do you want to continue? - YES
Allocation parameters
PARM 1 END
END
__ 41. Now run the CPFMTXA program for 161-163. Format cylinders 0 to end, use a label format of
0X016n, and take the default allocation type for these volumes. Make sure that you have
not attached 160 and that you do not run CPFMTXA against 160. The 160 volume contains
a pre-installed Linux we will use later in the exercises.
__ 42. Next, run the CPFMTXA program for F00, F01, and 150. This time you will use the Owner
option and set it to NOSSI for the SSI owner and ZVMBxx for the system owner. Refer to
your student guide or see help for the syntax of this command.
EXempty
__ 48. Issue the command INDICATE LOAD. What information does this provide? We will discuss
this command in a later topic.
_________________________________________________
_________________________________________________
_________________________________________________
End of exercise
EXempty
Exercise solutions
Note: Examples are for student team ZVMB0T.
USER DIRECT File
USER DIRECT C1 F 80 Trunc=72 Size=4341 Line=122 Col=1 Alt=0
====>
USER $ALLOC$ NOLOG
MDISK A00 3390 000 001 VMCOM1 R
MDISK A02 3390 000 001 710RL1 R
MDISK A04 3390 000 001 M01RES R
MDISK A05 3390 000 001 M01W01 R
MDISK A06 3390 000 001 M01W02 R
MDISK A07 3390 000 001 M01W03 R
MDISK A08 3390 000 001 ALTRES R
MDISK A09 3390 000 001 PAGE01 R
MDISK A10 3390 000 001 SPOOL1 R
MDISK A12 3390 000 001 0X0161 R
MDISK A13 3390 000 001 0X0162 R
MDISK A14 3390 000 001 0X0163 R
*
***************************************************************
USER $EOD$ NOLOG
MDISK A00 3390 3337 01 M01W01 R
MDISK A01 3390 3337 01 M01W02 R
MDISK A02 3390 3337 01 M01W03 R
MDISK A03 3390 0064 01 ALTRES R
MDISK A04 3390 0049 01 PAGE01 R
MDISK A05 3390 0049 01 SPOOL1 R
MDISK A12 3390 03337 001 0X0161 R
MDISK A13 3390 03337 001 0X0162 R
MDISK A14 3390 00299 001 0X0163 R
***************************************************************
EXempty
SYSTEM CONFIG file
SYSTEM CONFIG Z1 F 80 Trunc=80 Size=282 Line=25 Col=1 Alt=7
====>
/**********************************************************************/
/* CP_Owned Volume Statements */
/**********************************************************************/
-------------------- 25 line(s) not displayed --------------------
/**********************************************************************/
/* User_Volume_List */
/**********************************************************************/
/* These volumes contain the minidisks for your guests, as well as */
/* the product disks for z/VM. Volumes that are not intended to hold */
/* "local" minidisks, i.e., minidisks that would be unique to a */
/* single system, should be kept on separate volumes. */
User_Volume_List 710RL1
/**********************************************************************/
/* User volumes for local minidisks */
/**********************************************************************/
EXempty
/**********************************************************************/
Devices ,
Online_at_IPL 0000-FFFF,
Offline_at_IPL 0190-0191 19D-19E,
Sensed 0000-FFFF
Features ,
Enable , /* Enable the following features */
Set_Privclass , /* Disallow SET PRIVCLASS command */
Auto_Warm_IPL , /* Prompt at IPL always */
Validate_Shutdown , /* Require SYSTEM parm */
/*********************************************************************/
Operator_Consoles 0040 0020 0021 0022 0023 0E20 0E21 1020 ,
System_3270 System_Console
Emergency_Message_Consoles 0020 0021 0022 0023 0E20 0E21 1020 ,
System_Console
. . .
Timezone_Definition EDT West 04.00.00
Timezone_Definition EST West 05.00.00
Timezone_Definition CDT West 05.00.00
Timezone_Definition CST West 06.00.00
Timezone_Definition MDT West 06.00.00
Timezone_Definition MST West 07.00.00
Timezone_Definition PDT West 07.00.00
Timezone_Definition PST West 08.00.00
EXempty
Timezone_boundary on 2020-03-08 at 02:00:00 to EDT
Timezone_boundary on 2020-11-01 at 02:00:00 to EST
* * * End of File * * *
EXempty
QUERY ALLOCATE commands
q alloc page
EXTENT EXTENT TOTAL PAGES HIGH %
VOLID RDEV START END PAGES IN USE PAGE USED
------ ---- ---------- ---------- ------ ------ ------ ----
PAGE01 0F00 1 49 8820 5084 5845 57%
M01P01 0129 1 3337 600660 5110 5897 1%
------ ------ ----
SUMMARY 609480 10194 1%
USABLE 609480 10194 1%
Ready; T=0.01/0.01 10:01:50
q alloc spool
EXTENT EXTENT TOTAL PAGES HIGH %
VOLID RDEV START END PAGES IN USE PAGE USED
------ ---- ---------- ---------- ------ ------ ------ ----
M01S01 0128 1 3337 600660 11289 31680 1%
SPOOL1 0F01 1 49 8820 8816 8816 99%
------ ------ ----
SUMMARY 609480 20105 3%
USABLE 609480 20105 3%
Ready; T=0.01/0.01 10:03:15
DASD 0127 M01RES 3390 CKD-ECKD (UNITS IN CYLINDERS)
TDISK TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
PAGE TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
SPOOL TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
DRCT TOTAL=00000000020 INUSE=00000000001 AVAIL=00000000019, ACTIVE
DASD 0150 ALTRES 3390 CKD-ECKD (UNITS IN CYLINDERS)
TDISK TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
PAGE TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
SPOOL TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
DRCT TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
DASD 0124 VMCOM1 3390 CKD-ECKD (UNITS IN CYLINDERS)
TDISK TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
PAGE TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
SPOOL TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
DRCT TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
DASD 0128 M01S01 3390 CKD-ECKD (UNITS IN CYLINDERS)
TDISK TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
PAGE TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
SPOOL TOTAL=00000003337 INUSE=00000000059 AVAIL=00000003278
DRCT TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
DASD 0F01 SPOOL1 3390 CKD-ECKD (UNITS IN CYLINDERS)
TDISK TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
PAGE TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
SPOOL TOTAL=00000000049 INUSE=00000000049 AVAIL=00000000000
DRCT TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
DASD 0F00 PAGE01 3390 CKD-ECKD (UNITS IN CYLINDERS)
EXempty
TDISK TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
PAGE TOTAL=00000000049 INUSE=00000000049 AVAIL=00000000000
SPOOL TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
DRCT TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
DASD 0129 M01P01 3390 CKD-ECKD (UNITS IN CYLINDERS)
TDISK TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
PAGE TOTAL=00000003337 INUSE=00000000021 AVAIL=00000003316
SPOOL TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
DRCT TOTAL=00000000000 INUSE=00000000000 AVAIL=00000000000
IPL NUCLEUS ACTIVE ON VOLUME M01RES
Ready; T=0.01/0.01 21:42:05
ind load
AVGPROC-000% 01
MDC READS-000001/SEC WRITES-000000/SEC HIT RATIO-072%
PAGING-0/SEC STEAL-000%
Q0-00000(00000) DORMANT-00011
Q1-00000(00000) E1-00000(00000)
Q2-00000(00000) EXPAN-001 E2-00000(00000)
Q3-00000(00000) EXPAN-001 E3-00000(00000)
PROC 0000-000% CP
LIMITED-00000
Ready; T=0.01/0.01 21:43:04
EXempty
Estimated time
02:30
Overview
In this exercise, the students will add one CMS virtual machine and one Linux
guest virtual machine to their system directory.
Objectives
At the end of the lab, you should be able to:
• Run the DISKMAP exec
• Add virtual machines to the USER DIRECT file
• Put the directory online
Requirements
• Student Notebook and Exercise Guide
Exercise instructions
Part 1: Log on and start up your z/VM guest system
__ 1. Log on to your first-level virtual machine.
__ 2. Set up and IPL your z/VM system.
__ a. Enter SYSTEM RESET.
__ b. Enter TERM CONMODE 3270.
__ c. Enter IPL 125 CLEAR LOADPARM 020. This will display the SAPL screen. Add
CONS=020 as an IPL parameter in the middle of the screen and press F10.
__ d. Perform a warm start. If a warm start does not work, use force.
__ e. When prompted to change the time of day clock press Enter.
__ 3. When the screen goes into HOLDING or MORE... clear the screen. Continue to do this until
the IPL process completes.
__ 4. Disconnect from the SYSTEM OPERATOR.
__ 5. You should see the system logo for the z/VM system. Log on from this screen as userid
MAINT; use the surrogate id IBMVM1. Press the Enter key after you log on to bypass the
VM READ status.
__ 6. Verify that you are logged on to the MAINT virtual machine.
What command could you use? _____________ or ________________
EXempty
__ 14. Add entries for $EOD$ to indicate,
▪ The last cylinder of 0X0161, 0x0162, M01W01, M01W02, M01W03 starting with cylinder
3337 for a length of one cylinder.
▪ For volume 0x0163 starting at cylinder 299 for a length of one cylinder.
__ 15. This would be a good time to change the default password for users that are shipped with
the system (that is, MAINT, PMAINT, and so on). Use the appropriate LOCATE command to
determine what the default password is. Then, use the XEDIT CHANGE command to change
ALL occurrences of the default password to ZL00.
Below you see two Directory Maintenance Requests that have been submitted to you. Read
through them, but do not do anything with them at this time. Continue with step 21.
__ 21. XEDIT the USER DIRECT file. Add additional mdisk entries for $ALLOC$ to protect
cylinder zero of the following three volumes, which you add in a later exercise: ALTRES,
PAGE01, and SPOOL1 volumes.
__ 22. Add an entry for $EOD$ to protect,
▪ The last cylinder of ALTRES starting with cylinder 64 for a length of one cylinder.
▪ Cylinder 10015 for a length of one cylinder on PAGE01 and SPOOL1.
__ 23. Create a PROFILE statement called LNXDFLT.
__ a. Add an IPL statement for the CMS saved system.
__ b. Add a MACHINE ESA statement with 8 virtual CPUs.
__ c. Add CPU statements to have 2 virtual CPUs at logon and define CPU 0 as the base
CPU.
__ d. Add a CONSOLE and the three SPOOL statements that are required for CMS users.
EXempty
__ e. Add the LINKs for MAINT's 190, 19D, and 19E, 490 minidisks for CMS access.
Note: Technically, MAINT does not own a 490 disk. Its 490 disk is actually a link to
MAINT710’s 490 disk, but it is allowed to have a link to another link.
__ f. Add the LINKs to tcpmaint 592 minidisk.
__ g. Grant access to vswitch ZL00LAN2 to userid.
__ h. Create a virtual NIC 1000.
__ i. Couple the NIC to vswitch ZL00LAN2.
__ 24. Using the first Directory Maintenance Request from the previous page, along with the
following information, add a directory entry for the userid virtual machine. This is a userid of
your choice. This will be a Multi-configuration virtual machine.
__ a. Define this userid to be a superuser with privilege class A through G.
__ b. Include the PROFILE you just created.
__ c. Add an IPL statement that will override the IPL in the PROFILE. It will automatically
bypass the VM READ (Hint: PARM parameter).
__ d. Userid virtual machine runs in an XC (you will have to override the profile) architected
machine.
__ e. Add the OPTION to link to mdisk of other virtual machines without a password (Hint:
Options).
__ f. Add a 191 disk, by using information from the DISKMAP. This disk should be on
M01RES.
__ g. Define a LINK statement to the virtual machine MAINT710’s address 201 as userid’s
virtual 201.
__ 25. Using the second Directory Maintenance Request from the previous page, along with the
following information, add a directory entry for the LINUX1 virtual machine.
__ a. Define this virtual machine to have CLASS BEG.
__ b. Include the PROFILE that was previously created.
__ c. LINUX1 virtual machine runs in an ESA-architected machine.
__ d. Add an IPL statement that will override the IPL in the PROFILE. It will automatically
bypass the VM READ.
__ e. Define the user's 191 disk, by using information from the DISKMAP. This disk should be
on M01W01.
__ f. Add 100 and 101 disk for the user on volume 0x0161 and 0x0162.
__ 26. Add a directory entry RHEL by using the following statement. This virtual machine will be
used in later labs.
USER RHEL Zl00 1G 2G BEG
INCLUDE LNXDFLT
COMMAND DEFINE STORAGE 1G STANDBY 1G
IPL 150
__ 27. Locate the directory entry for the system OPERATOR, and add an IPL statement that will
bypass VM READ when the OPERATOR logs on.
__ 28. Add the OPTION that allows OPERATOR to link to other virtual machines mdisks without a
password.
__ 29. File your changes.
__ 30. Run the DISKMAP again and then verify that no OVERLAPS were created as a result of
adding these minidisks to the virtual machines.
EXempty
'set run on'
__ 37. Execute the PROFILE EXEC that you just created (type PROFILE at the command line) to
verify that there are no errors. Log off from LINUX1.
__ 38. Perform these same tasks for the userid virtual machine, but for this PROFILE EXEC
include the following commands:
/* Profile Exec */
'set pf12 retrieve'
'set run on'
'access 201 z'
__ 39. Execute your PROFILE EXEC and issue the QUERY DISK command to verify that your
profile worked successfully.
Do you see the 201 disk accessed as filemode Z? ______________
__ 40. Issue the SHUTDOWN command from the userid virtual machine (to verify that you gave
userid the class A privilege class). Then, log off from your ZVMBnn team virtual machine.
Congratulations, you have completed the lab.
End of exercise
Exercise solutions
USER DISKMAP A
USER DIRECT C
PROFILE LNXDFTL
COMMAND SET VSWITCH ZL00LAN2 GRANT &USERID
COMMAND DEFINE NIC 1000 QDIO
COMMAND COUPLE 1000 TO SYSTEM ZL00LAN2
IPL CMS
MACH ESA 8
CPU 00 BASE
CPU 01
SPOOL 000C 2540 READER *
SPOOL 000D 2540 PUNCH A
SPOOL 000E 1403 A
CONSOLE 009 3215 T
LINK MAINT 0190 0190 RR
LINK MAINT 019D 019D RR
LINK MAINT 019E 019E RR
LINK MAINT 0490 0490 RR
LINK TCPMAINT 0592 0592 RR
*
**************************
EXempty
MDISK A04 3390 000 001 M01RES R
NICDEF B000 TYPE QDIO DEVICES 3 LAN SYSTEM ZL00LAN2 MACID 600001
*
EXempty
Estimated time
01:30
Overview
In this exercise, the student is required to configure the appropriate files to run
TCP/IP on their system. They will also automate the startup of TCP/IP services at
system IPL time.
Objectives
At the end of the lab, you should be able to:
• Automate the startup of TCP/IP services
• Update the system directory for TCP/IP
• Modify the DTCPARMS file
• Modify the TCPIP DATA file
• Modify the PROFILE TCPIP file
• Test the TCP/IP services with PING and TELNET
Requirements
• Student Notebook and Exercise Guide
• TCP/IP Planning and Customization Guide
EXempty
Exercise instructions
Part 1: Log on and start up your z/VM guest system
__ 1. Log on to your team virtual machine.
__ 2. Set up and IPL your guest z/VM system.
__ 3. Disconnect from OPERATOR and log on to the MAINT virtual machine.
EXempty
z/VM TCPIP stack hostname table
Team OSA device address Hostname IP address
ZVMB21 A000, A001, A002 zvmb21.ilsvpn.ibm.com 10.31.184.104
ZVMB22 A000, A001, A002 zvmb22.ilsvpn.ibm.com 10.31.184.106
ZVMB23 A000, A001, A002 zvmb23.ilsvpn.ibm.com 10.31.184.108
ZVMB24 A000, A001, A002 zvmb24.ilsvpn.ibm.com 10.31.184.110
ZVMB25 A000, A001, A002 zvmb25.ilsvpn.ibm.com 10.31.184.112
ZVMB26 A000, A001, A002 zvmb26.ilsvpn.ibm.com 10.31.184.114
ZVMB27 A000, A001, A002 zvmb27.ilsvpn.ibm.com 10.31.184.116
ZVMB28 A000, A001, A002 zvmb28.ilsvpn.ibm.com 10.31.184.118
ZVMB29 A000, A001, A002 zvmb29.ilsvpn.ibm.com 10.31.184.120
ZVMB30 A000, A001, A002 zvmb30.ilsvpn.ibm.com 10.31.184.122
ZVMB31 A000, A001, A002 zvmb31.ilsvpn.ibm.com 10.31.184.124
ZVMB32 A000, A001, A002 zvmb32.ilsvpn.ibm.com 10.31.184.126
ZVMB33 A000, A001, A002 zvmb33.ilsvpn.ibm.com 10.31.184.128
ZVMB34 A000, A001, A002 zvmb34.ilsvpn.ibm.com 10.31.184.130
ZVMB35 A000, A001, A002 zvmb35.ilsvpn.ibm.com 10.31.184.132
ZVMB36 A000, A001, A002 zvmb36.ilsvpn.ibm.com 10.31.184.134
ZVMB37 A000, A001, A002 zvmb37.ilsvpn.ibm.com 10.31.184.136
ZVMB38 A000, A001, A002 zvmb38.ilsvpn.ibm.com 10.31.184.138
ZVMB39 A000, A001, A002 zvmb39.ilsvpn.ibm.com 10.31.184.140
ZVMB40 A000, A001, A002 zvmb40.ilsvpn.ibm.com 10.31.184.142
EXempty
__ 16. If you did not receive a message about the IPWIZARD completing successfully, have the
IPWIZARD tool try to ping the connections again. If you still have problems, verify that all
the parameters are correct. Contact your instructor if you need assistance.
Note: The ping from IPWIZARD can fail. Continue finishing IPWIZARD without changing
information; ping default gateway after IPWIZARD completes.
__ 17. Log off from the MAINT710 virtual machine.
EXempty
__ 25. Edit the SYSTEM DTCPARMS file and add the required information to define a virtual NIC to
the TCPIP server at address D000-D002 connecting to the SYSTEM VSWITCH named
ZL00LAN2. The A000 address (that is already there) was added as a real network
connection by the IPWIZARD. This new adapter will be used as a connection to a
VSWITCH on your system, as an additional network connection.
Syntax: :vnic.<VIRTUAL_ADDRESS> SYSTEM <VSWITCH_NAME>
Note: To couple TCPIP to VSWITCH, you do not need to attach the devices using
the nic tag. Ensure that they appear on the vnic tag.
__ 26. Add an entry for the FTP server. This entry is not required, but is a good idea for
documentation.
:nick.FTPSERVE :type.server
:class.ftp
:anonymous.no
__ 27. Save your changes to the file, and close the XEDIT session. Exit from the filelist display and
return to CMS.
__ 28. Issue the command to grant TCIP access to the vswitch ZL00LAN2.
__ 29. Don’t forget to update the SYSTEM CONFIG file with MODIFY VSWITCH ZL00LAN2
GRANT TCPIP statement (refer to Lab 3 for SYSTEM CONFIG).
EXempty
These statements must be the first non-commented statements in the file, and they must
follow the lines that look like this:
; %%File Origin Indicator - DO NOT REMOVE OR ALTER the next line%%
; %%TCPIP%%PROFILE%%STCPIP%%
__ 35. Add all the Free Pool Statements that are in the sample file to PROFILE TCPIP. in the
beginning of the file. When you have finished adding the Free Pool Statements to
PROFILE TCPIP, update these four statements (take the defaults for all other statements).
ACBPOOLSIZE 2500
SMALLDATABUFFERPOOLSIZE 500
TINYDATABUFFERPOOLSIZE 200
UCBPOOLSIZE 2500 .
__ 36. Add the following statements to the PROFILE TCPIP.
(For any tags that you add, make sure that they have their corresponding end tag when
required. You may want to check samples available in PROFILE STCPIP file that is located
on TCPMAINT 592 disk)
- MONITORRECORDS (This will produce detailed information about TCPIP, for use with
VM Performance Toolkit.)
- SYSCONTACT (Your name and any phone number.)
- AUTOLOG FTPSERVE.
Also, remember to enable the ports for FTP.
__ 37. Add a Device and Link statement to define the connection to D000-D002. This will be an IP
transport link statement, QDIO Layer 3 (this is the connection to the VNIC you defined in
your SYSTEM DTCPARMS file).
__ 38. Add a Home statement for a device at address 192.168.1.nnn (where nnn is the same as
the last octet in your other home statement. (ZVMB21 would use 104, ZVMB22 would use
106, and so on). This is the address of your system on the alternate network. Use a subnet
mask of 255.255.255.0.
__ 39. Add a Start statement for your new device.
__ 40. Save your changes and exit from this file.
EXempty
__ 44. Edit this file. Add a PIPE CP XAUTOLOG statement to this file for the userid TCPIP before
the DTCVSW1 and DTCVSW2 virtual machines. (This will allow AUTOLOG1 to
automatically start the TCPIP virtual machine at system startup.)
__ 45. File your changes to this file, and exit from the filelist display. Detach the Z disk.
EXempty
__ 58. Ping the IP address (10.31.184.nnn) of some of the other teams to see whether they
have successfully configured their TCPIP environment. You might need to ask other teams
to find out who has their TCPIP connection up and running. Were you successful?
_____________
__ 59. Verify that your system is actually on the IBM Education Network. Use the PCOMM
application on your workstation desktop to TELNET to your system, and log on as MAINT.
You will have to tailor the PCOMM application to connect to your host system’s
10.31.184.nnn address. The instructor will show you how to configure the TELNET session
if you have difficulty. Each location has different levels of the PCOMM application, and it
would not be possible to document this in the student exercise guide.
Instructor note: Perform a demo on how to modify the parameters for PCOMM before the
lab starts.
Were you able to TELNET to your host system? ___________________________
If not, get assistance from your instructor to troubleshoot the problem.
__ 60. From your classroom desktop, select Windows Start, then Run, and enter cmd.
__ 61. Use your desktop cmd window to FTP to your 10.31.184.nnn IP address.
__ 62. Authenticate as LINUX1. (The same password is used for FTP and LINUX1 z/VM logon.)
__ 63. Were you successful? __________ If not, determine why your FTP server is not working.
Ask for assistance from your instructor if needed.
Note: You have completed the FTP tests if you write quit to leave the FTP session.
__ 64. From your TCPMAINT session, copy the PROFILE TCPIP, TCPIP DATA, and SYSTEM
DTCPARMS files to TCPMAINT’s 191 disk with a filetype of BACKUP.
Where you successful? ____________________________
__ 65. From your PCOMM session (MAINT) shutdown your system. Where do the shutdown
messages show up? __________________________
__ 66. Are you still able to issue commands from MAINT’s PCOMM session? _______
__ 67. Save your PCOMM session. (From the drop-down, select File, then Save). Use any name
that you like.
__ 68. Close MAINT’s PCOMM session.
__ 69. Log off your team virtual machine when the shutdown completes.
Congratulations, you have successfully completed the lab exercise.
End of exercise
EXempty
Exercise solutions
Note: Examples are for student team ZVMB2T.
USER DIRECT file
. . .
00065 PROFILE TCPCMSU
00066 IPL CMS
00067 MACH ESA
00068 SPOOL 000C 2540 READER *
00069 SPOOL 000D 2540 PUNCH A
00070 SPOOL 000E 1403 A
00071 CONSOLE 009 3215 T TCPMAINT
00072 LINK MAINT 0190 0190 RR
00073 LINK MAINT 019D 019D RR
00074 LINK MAINT 019E 019E RR
00075 LINK MAINT 0402 0402 RR
00076 LINK MAINT 0401 0401 RR
. . .
01964 IDENTITY TCPIP TCPIP 128M 256M ABG
01965 INCLUDE TCPCMSU
01966 BUILD ON SSI1 USING SUBCONFIG TCPIP-1
01967 * BUILD ON @@member2name USING SUBCONFIG TCPIP-2
01968 * BUILD ON @@member3name USING SUBCONFIG TCPIP-3
01969 * BUILD ON @@member4name USING SUBCONFIG TCPIP-4
01970 OPTION QUICKDSP SVMSTAT MAXCONN 1024 DIAG98 APPLMON
01971 SHARE RELATIVE 3000
01972 IUCV ALLOW
01973 IUCV ANY PRIORITY
01974 IUCV *CCS PRIORITY MSGLIMIT 255
01975 IUCV *VSWITCH MSGLIMIT 65535
01976 NICDEF D00 TYPE QDIO LAN SYSTEM SWITCH60 MACID 800200
. . .
02009 IDENTITY TCPMAINT TCPMAINT 32M 64M ABCG
02010 INCLUDE TCPCMSU
02011 BUILD ON SSI1 USING SUBCONFIG TCPMNT-1
. . .
EXempty
PROFILE EXEC A (for TCPMAINT)
00000 * * * Top of File * * *
00001 /* PROFILE EXEC */
00002 /*=====================================================================*/
00003 /* PROFILE EXEC for TCPMAINT server virtual machine. */
00004 /* */
00005 /* This file is provided as a "minimalist" PROFILE EXEC for the */
00006 /* TCPMAINT user ID (or its equivalent). */
00007 /*---------------------------------------------------------------------*/
00008 /* This profile can (and should) be modified to meet any specific */
00009 /* requirements for your installation. */
00010 /* */
00011 /* Note: It is strongly recommended that the TCPMAINT user ID (or its */
00012 /* equivalent) always access the resources identified in the */
00013 /* "TCP/IP MINIDISKS" section at the end of this sample. */
00014 /*=====================================================================*/
00015 Address 'COMMAND'
00016 rc = 0
00017 Use_SFS? = '0' /* SFS environment? (Boolean) */
00018 _mhdr = "Profile..:" /* Profile message header */
00019 _ehdr = "Profile-->" /* Profile err. message header */
00020 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-*/
00021 /* Set terminal mode to 'VM' so attentions are reflected to CMS, and */
00022 /* not to CP. This must be set prior to issuance of -any- other CP or */
00023 /* CMS commands. Doing so prevents TCPMAINT from assuming the role of */
00024 /* primary system operator (SYSOPER) in the event it is the first */
00025 /* Class A virtual machine to be logged on. */
00026 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-*/
00027 'CP TERM MODE VM'
00028
00029 /*---------------------------------------------------------------------*/
00030 /* Set up PF Key(s) and report settings. */
00031 /*---------------------------------------------------------------------*/
00032 Say _mhdr "Spooling console to self ("Userid()")..."
00033 'CP SPOOL CONSOLE * START'
00034 Say _mhdr "Setting PF Keys..."
00035 'CP SET PF11 RETRIEVE FORWARD'
00036 'CP SET PF12 RETRIEVE BACKWARD 1'
00037 'CP SET RUN ON'
00038 'PIPE' '(Name Report_PF_Settings)' ,
00039 'CP QUERY PF' ,
00040 '| Nlocate W2 /UNDEFINED/' ,
00041 '| Cons '
00042
00043 /*---------------------------------------------------------------------*/
00044 /* Account for minidisk or SFS environment differences. */
00045 /*---------------------------------------------------------------------*/
00046 If (Use_SFS?)
EXempty
00047 Then Do
00048 Say _mhdr "Setting SFS environment workspace..."
00049 fpool_id = 'VMSYS:' /* Identify file pool */
00050 'SET FILEPOOL' fpool_id /* Set default file pool */
00051 workspace = '.' /* Use "top" directory */
00052 End
00053 Else Do
00054 Say _mhdr "Setting minidisk environment workspace..."
00055 workspace = '191' /* Use 191 minidisk */
00056 End
00057
00058 /*---------------------------------------------------------------------*/
00059 /* Access user work space. */
00060 /*---------------------------------------------------------------------*/
00061 'ACCESS' workspace 'A' /* Access user "A-mode" workspace */
00062
00063 /*---------------------------------------------------------------------*/
00064 /* TCP/IP Minidisk Setup */
00065 /*---------------------------------------------------------------------*/
00066 /* Access minidisks required for managing/using TCP/IP services. */
00067 /*---------------------------------------------------------------------*/
00068 'ACCESS' '198' 'D' /* Access configuration files disk */
00069 'ACCESS' '591' 'E' /* Access the server modules disk */
00070 'ACCESS' '592' 'F' /* Access client configuration disk */
00071
00072 Say ""
00073 Say _mhdr "Setup complete"
00074 /*---------------------------------------------------------------------*/
00075 /* Common Exit point. */
00076 /*---------------------------------------------------------------------*/
00077 Profile_Exit:
00078 Exit rc
EXempty
SYSTEM DTCPARMS D (for TCPMAINT)
00000 * * * Top of File * * *
00001 .**********************************************************************
00002 .* SYSTEM DTCPARMS created by DTCIPWIZ EXEC on 18 Oct 2018
00003 .* Configuration program run by MAINT at 11:59:17
00004 .**********************************************************************
00005 :nick.TCPIP :type.server
00006 :class.stack
00007 :attach.A000-A002
00008 :vnic.d000 system zl00lan2
00009
00010 :nick.FTPSERVE :type.server
00011 :class.ftp
00012 :anonymous.no
00013 * * * End of File * * *
EXempty
00010 CCBPOOLSIZE 150
00011 DATABUFFERPOOLSIZE 160 32K
00012 ENVELOPEPOOLSIZE 750
00013 FOREIGNIPPOOLSIZE 100
00014 IPROUTEPOOLSIZE 600
00015 LARGEENVELOPEPOOLSIZE 50 8192
00016 RCBPOOLSIZE 50
00017 SCBPOOLSIZE 256
00018 SKCBPOOLSIZE 256
00019 SMALLDATABUFFERPOOLSIZE 5
00020 TCBPOOLSIZE 256
00021 TINYDATABUFFERPOOLSIZE 10
00022 UCBPOOLSIZE 100
00023
00024 MONITORRECORDS
00025 SYSCONTACT
00026 Main Operator (555-1234)
00027 AlphaBeta Soup Corporation
00028 ENDSYSCONTACT
00029
00030 AUTOLOG
00031 ; CSMSERVE 0 ; CSM FTP Server
00032 FTPSERVE 0 ; FTP Server
00033 ; LDAPSRV 0 ; LDAP Server
00034 ; MPROUTE 0 ; Multiple Protocol Routing Server
00035 ; PORTMAP 0 ; Portmap server
00036 ; REXECD 0 ; REXEC Server
00037 ; SMTP 0 ; SMTP Server
00038 ; SNMPD 0 ; SNMP Agent Virtual Machine
00039 ; SNMPQE 0 ; SNMP Query Engine Virtual Machine
00040 ; SSLSERV 0 ; SSL Server
00041 ; UFTD 0 ; UFT Server
00042 ; VMNFS 0 ; NFS Server
00043 ENDAUTOLOG
00044
00045 OBEY
00046 OPERATOR TCPMAINT MAINT MPROUTE REXECD SNMPD SNMPQE LDAPSRV
00047 ENDOBEY
00048
00049
00050 ; ----------------------------------------------------------------------
00051 PORT
00052 20 TCP FTPSERVE NOAUTOLOG ; FTP Server
00053 21 TCP FTPSERVE ; FTP Server
00054 23 TCP INTCLIEN ; TELNET Server
00055 ; 25 TCP SMTP ; SMTP Server
00056 ; 111 TCP PORTMAP ; Portmap Server
00057 ; 111 UDP PORTMAP ; Portmap Server
EXempty
00058 ; 161 UDP SNMPD ; SNMP Agent
00059 ; 162 UDP SNMPQE ; SNMPQE Agent
00060 ; 389 TCP LDAPSRV ; LDAP Server
00061 ; 389 UDP LDAPSRV ; LDAP Server
00062 ; 512 TCP REXECD ; REXECD Server (REXEC)
00063 ; 514 TCP REXECD ; REXECD Server (RSH)
00064 ; 520 UDP MPROUTE NOAUTOLOG ; Multiple Protocol Routing Server
00065 ; 608 TCP UFTD ; UFT Server
00066 ; 636 TCP LDAPSRV ; LDAP Server (Secure)
00067 ; 636 UDP LDAPSRV ; LDAP Server (Secure)
00068 ; 2049 UDP VMNFS ; NFS Server
00069 ; 2049 TCP VMNFS NOAUTOLOG ; NFS Server
00070 ; ----------------------------------------------------------------------
00071 DEVICE DEV@A000 OSD A000 NONROUTER
00072 LINK OSAA000 QDIOETHERNET DEV@A000 MTU 1500 IP
00073 DEVICE DEVD000 OSD D000 NONROUTER
00074 LINK OSAD000 QDIOETHERNET DEVD000 MTU 1500 IP
00075 ; (End DEVICE and LINK statements)
00076 ; ----------------------------------------------------------------------
00077 ; ----------------------------------------------------------------------
00078 HOME
00079 10.31.184.126 255.255.248.0 OSAA000
00080 192.168.1.126 255.255.255.0 OSAD000
00081 ; (End HOME Address information)
00082 ; ----------------------------------------------------------------------
00083 GATEWAY
00084 ; Network Subnet First Link MTU
00085 ; Address Mask Hop Name Size
00086 ; ------------- --------------- --------------- ---------------- -----
00087 DEFAULTNET 10.31.188.1 OSAA000 1500
00088 ; (End GATEWAY Static Routing information)
00089 ; ----------------------------------------------------------------------
00090 START DEV@A000
00091 START DEV@D000
00092 ; (End START statements)
00093 ; ----------------------------------------------------------------------
00094 * * * End of File * * *
EXempty
Commands
netstat dev
VM TCP/IP Netstat Level 710 TCP/IP Server Name: TCPIP
EXempty
netstat home
netstat home
VM TCP/IP Netstat Level 710 TCP/IP Server Name: TCPIP
EXempty
Estimated time
01:00
Overview
In this exercise, the students apply RSU and COR service envelopes, and query
status of service on the system
Objectives
At the end of the lab, you should be able to:
• Run the DETERSE exec
• Run the SERVICE exec
• Run the VMFINFO exec
• Run the PUT2PROD exec
• Query service status
Requirements
• Student Notebook and Exercise Guide
• z/VM Installation Guide
• z/VM Service Guide
EXempty
Exercise instructions
Part 1: Getting started
__ 1. Log on and IPL your second-level z/VM system.
EXempty
Note: At the time this course was created, no RSU level newer than 1701 was available. So, you
will see the message “VMFP2P1217I There are no products to put into production” during the
PUT2PROD process. You see this message because this exercise applies an RSU that has
already been applied during the z/VM Installation exercise.
End of exercise
EXempty
Exercise solutions
*
ACCESS 500 C
listfile * terslink c (da
put2prod
Note: The RSU1701 was allready applied, during the z/VM installation
UM35366 TERSLINK C1
UM35373 TERSLINK C1
:
VMFSRV1227I UM35367 is not received or applied
VMFSRV2760I SERVICE processing completed successfully
EXempty
:
VMFSRV1227I UM35373 is not received or applied
VMFSRV2760I SERVICE processing completed successfully
VMFP2P1233I The following products have been put into production. Recycle
the appropriate servers.
VMFP2P1233I CMSSFS VMHCDSFS
VMFP2P1239I CMS was serviced. Re-IPL CMS in all virtual machines running CMS
to use the new service.
VMFP2P2760I PUT2PROD processing completed successfully
EXempty
Options: S - select
Option Query
Product description
Product status
Product requisites
Product dependencies
S PTFs/APARs
Serviceable parts/usable forms
Miscellaneous
PTF/APAR Queries
Enter a PTF or APAR number and type an option code. Then press Enter.
PPF fileid ...... SERVP2P PPF D
Component name .. CMSSFS Setup ... NO
Product ID .....: 7VMCMS10 System .. VM
PTF number ...... (PF1 to select from list of PTFs)
APAR number ..... (PF1 to select from list of APARs)
Options: S - select
Option Query
Status of PTF
Requisites/supersedes of PTF
Dependencies/superseding of PTF
User memo of PTF
Serviceable parts included by PTF
Abstract of APAR(s)
The PTF (Program Temporary Fix) number is the identifier used for a
service package. A service package contains changes that correct prob-
lems which have been previously reported via APARs (Authorized Problem
Analysis Reports). A PTF can contain several APARS and can affect many
parts.
The list of PTF numbers displayed is the list of PTF numbers that can
be
selected. If an APAR number was specified prior to requesting the Help
function, then the PTFs listed all contain the specified APAR. If an
EXempty
APAR number was not specified, then the PTFs listed are the PTFs which
have been received for the specified product.
Option PTFs
UM35366
Query Output - PTF Status
EXempty
Estimated time
03:30
Overview
This lab covers how to start the initial driver Linux system and use it to install a
Linux on IBM Z guest.
Objectives
After completing this exercise, you should be able to:
• Verify the prerequisites for installing Linux on IBM Z
• Boot an initial Linux system
• Perform the network setup for this initial Linux system
• Install a target Linux system
Introduction
Now you will prepare and perform the Linux on IBM Z installation.
Requirements
• This lab guide
EXempty
allow this to work. If you are not familiar with this parameter of the MDISK
statement, review the parameter.
EXempty
Exercise instructions
Part 1: Getting started
__ 1. Log on to your ZVMBnn virtual machine, called LINUX1.
EXempty
Part 3: Transfer the Linux boot files to minidisk A
First, you need to boot a Linux starter system in memory. Later, this system is used to install your
Linux target system on disk. In order to boot Linux from your z/VM reader, three files must be
copied from the SUSE DVD1 to your z/VM 191 minidisk.
You will use the FTP command from your z/VM session to transfer the following files from the
FTP/NFS server to your VM A-disk:
▪ kernel (the Linux kernel)
▪ parmfile (install parameters)
▪ initrd (the initial file system)
Note
The initrd and kernel files must be transferred in binary mode. All three files must be
transferred with a fixed record length of 80 (FTP subcommands bin and locsite fix 80).
Instructor Note: The students will have a copy of the initrd, vmrdr.ikr, parmfile, and S11SP2 EXEC
on their 192 disk. They can copy these over and modify them if they have issues with the FTP
processes. You might find this helpful if you have to help them with their files in lab debugging.
Refer to the “Linux distribution server information” in Exercise 7 for the FTP/NFS server IP address,
user ID, password, and install directory.
In order to use the FTP command, you will need access to TCPMAINT’s 592 mdisk. If it is not
already linked to your virtual machine, you will use the vmlink command to gain access.
__ 6. From your LINUX1 virtual machine, QUERY DISK to see whether 592 is accessed. If not,
issue the following command:
vmlink tcpmaint 592
__ 7. Now use FTP to copy initrd, kernel, and parmfile to your 191 minidisk.
__ a. Begin with ftp 10.31.189.229.
__ b. At the user prompt, type in the lnxstudent.
__ c. At the password prompt, type in the lnx9stud.
__ d. Change the directory to where the linux image has been saved:
Linux Distros kernel initrd parmfile FTP directory
SuSE 15 linux initrd parmfile /sles15/dvd1/boot/s390x
Red Hat 7,5 kernel.img initrd.img generic.prm /rhel75/boot/images
Ubuntu 18.04 ubuntu.ikr initrd.ubuntu parmfile.ubuntu /ubuntu1804/dvd1/boot"
__ e. Change to the ftp directory listed on the preceding table: cd <ftp directory>
__ f. Change the image download to binary: bin
__ g. Change to fixed width: locsite fix 80
__ h. Get the initrd file shown in the table: get <initrd> linux.<initrd>
__ i. Get the kernel image shown in the table: get <kernel> linux.<kernel>
EXempty
__ j. Change your mode to ASCII: ascii
__ k. Reset the fixed-width setting: locsite fix 80
__ l. Get the parameter file shown in the table: get <parmfile> linux.<parmfile>
__ m. Quit the FTP session: quit
Instructor example commands:
bin
>>>TYPE i
200 Switching to Binary mode.
Command:
locsite fix 80
EXempty
REDHAT parmfile:
ro ramdisk_size=40000 cio_ignore=all,!condev
CMSDASD=191 CMSCONFFILE=redhat.conf
vnc
inst.repo=ftp://lnxstudent:lnx9stud@10.31.189.229/rhel75/dvd1/
RedHat requires the redhat.conf file to load the installation parameters. An example of this file is
shown below. You must change the values in red.
HOSTNAME="lnxzl3.ilsvpn.ibm.com"
DASD="0.0.0100"
NETTYPE="qeth"
IPADDR="10.31.185.144"
SUBCHANNELS="0.0.1000,0.0.1001,0.0.1002"
PORTNAME="FOOBAR"
NETWORK="10.31.184.0"
NETMASK="255.255.248.0"
BROADCAST="10.31.191.255"
SEARCHDNS="ilsvpn.ibm.com"
GATEWAY="10.31.188.1"
DNS="10.31.160.2"
MTU="1500"
LAYER2=0
VSWITCH="1"
RUNKS=0
UBUNTU parmfile:
ro locale=en_US auto=true priority=critical cio_ignore=01ff-0fff
url=ftp://lnxstudent:lnx9stud@10.31.189.229/preseed.seed
s390-netdevice/choose_networktype=qeth
s390-netdevice/qeth/layer2=false s390-netdevice/qeth/port=0
s390-netdevice/qeth/choose=0.0.1000-0.0.1001-0.0.1002
netcfg/get_ipaddress=10.31.184.127 netcfg/get_netmask=255.255.248.0
netcfg/get_gateway=10.31.188.1 netcfg/get_nameservers=10.31.160.2
netdevice/qeth/layer2=false netcfg/confirm_static=true
netcfg/use_autoconfig=0 netcfg/disable_dhcp=true
hostname=ZLIN12 domain=ilsvpm.ibm.com network-console/start=note
network-console/password=12345678 network-console/password-again=12345678
The file should look something like this when you are done:
ramdisk_size=65536 root=/dev/ram1 init=/linuxrc TERM=dumb
HostIP=10.31.184.1nn Gateway=10.31.188.1 Nameserver=10.31.160.2
InstNetDev=osa Netmask=255.255.248.0 Broadcast=10.31.191.255
OsaInterface=qdio OsaMedium=eth Layer2=0 ReadChannel=0.0.A010
WriteChannel=0.0.A011 DataChannel=0.0.A012 PortName=DONTCARE
INSTALL=ftp://lnxstudent:lnx9stud@10.31.189.229//sles11sp2/dvd1
UseVNC=1 VNCPassword=password
EXempty
Instructor notes: Setting up the file this way should save some time for the students. It will also
prevent them from incorrectly typing the options, when they do the installation.
__ f. File your changes and exit.
__ 9. An exec is needed to punch the bootable starter Linux system to the z/VM card reader
(device address 00C) and to IPL (boot) it from that device. You might need to IPL the initial
starter Linux system on more than one occasion. Therefore, having this exec is very helpful.
__ a. Edit LINUX EXEC A
__ b. Go to the prefix area on the first line and type i9 to add nine lines to the file.
__ c. Type the following lines into the file:
/* Rexx Linux starter system exec */
'CP SPOOL CONS START *'
'CP SPOOL PUN *'
'CP CLOSE RDR'
'PUR RDR ALL'
'PUN LINUX KERNEL A (NOH'
'PUN LINUX PARMFILE A (NOH'
'PUN LINUX INITRD A (NOH'
'CH RDR ALL KEEP NOHOLD'
'IPL 00C CLEAR'
Instructor notes: These lines will do the following operations:
/**/ makes it so the REXX Interpreter will be used.
'CP SPOOL PUN *' sends the card punch output to the card reader.
'CP CLOSE RDR' closes the reader.
'PUR RDR ALL' purges the reader.
'PUN LINUX KERNEL A (NOH' sends the SLES kernel to the punch.
'PUN LINUX PARMFILE A (NOH' sends the parmfile to the punch.
'PUN LINUX INITRD A (NOH' sends the INITRD to the punch.
'CH RDR ALL KEEP NOHOLD' keeps a copy of the files in the reader.
'IPL 00C CLEAR' IPLs the card reader.
__ d. File your changes and exit the file.
EXempty
Clear the next few screens, and you should see:
Starting vnc server. . .
***
*** You can connect to <host>, display :1 now with vncviewer
*** Or use a Java capable browser on http://<host>:5801/
***
(When YaST2 is finished, close your VNC viewer and return to this window.)
At this point, you must now open a VNC viewer and continue the installation there. There
should be an icon for the UltraVNC viewer on your desktop. If you didn’t already have one, you
should have installed it in Exercise 7. If you did not perform that task, return to Exercise 7, and
do it now. When you finish, return to the following step.
End of exercise
EXempty
Estimated time
00:45
Overview
This lab will show you how to add another network adapter to your Linux on IBM Z
server.
Objectives
After completing this exercise, you should be able to modify network configuration
files on a Linux server.
Introduction
When you started these labs, you used an OSA device that is connected to a
virtual switch. In Exercise 3. “z/VM directory maintenance” you added a virtual NIC
with devices at address 1000 through 1002. These devices are connected to a
SYSTEM owned VSWITCH named ZL00LAN2. During this lab, you will configure
the adapter on your Linux server that will use these devices.
There might be times when you would like to have a second network adapter for
your Linux server. For example, if you wanted your server to be on both a public
and private network, you can define a second nic in the user directory . You repeat
the lab steps to achieve that.
Requirements
• This lab guide
• An RHEL Linux on IBM Z distribution
• A predefined Virtual Switch NIC device at address 1000-1002
EXempty
First Level z/VM
Virtual QDIO adapters
Ethernet LAN
Network
a
Virtual Switch ZL00LAN2
ZVMBnn C000-C002 C003-C005
EXempty
Exercise instructions
Part 1: Getting started
__ 1. log on to your ZVMBnn virtual machine and IPL your z/VM 7.1.0 system.
__ 2. Log on to your RHEL virtual machine and IPL from disk 150.
__ 3. Run the script /usr/local/sbin/set_ip.sh. This will assign an IP address for your virtual NIC.
__ 4. Now you can SSH into your virtual machine by using the IP address that is assigned to NIC
1000. The credential to ssh into the machine is lnxzvmbnn and use the default student
password lnx9stud. The IP address that you assigned is not configured in the network
configuration file and in this lab we will do that.
EXempty
1002 DEVTYPE OSA VIRTUAL CHPID 0F OSD
1002 MAC 02-00-00-00-00-05 CURRENT
1002 QDIO ACTIVE QIOASSIST NOT AVAILABLE
1002
1002 INP + 01 IOCNT = 00000019 ADP = 044 PROG = 000 UNAVAIL = 084
1002 BYTES = 0000000000002400
1002 OUT + 01 IOCNT = 00000000 ADP = 000 PROG = 000 UNAVAIL = 128
1002 BYTES = 0000000000000000
1002 OUT + 02 IOCNT = 00000000 ADP = 000 PROG = 000 UNAVAIL = 128
1002 BYTES = 0000000000000000
1002 OUT + 03 IOCNT = 00000000 ADP = 000 PROG = 000 UNAVAIL = 128
1002 BYTES = 0000000000000000
1002 OUT + 04 IOCNT = 00000000 ADP = 000 PROG = 000 UNAVAIL = 128
1002 BYTES = 0000000000000000
__ 6. Copy your current network scripts to a backup directory.
__ b. Go to the /etc/sysconfig/network-scripts directory.
__ c. Make a copy of the ifcfg-enccw0.0.1000 file if there is any.
cp ifcfg-enccw0.0.1000 ifcfg-enccw0.0.1000.back
This will back up your current configuration and will make it easy to recover under the
3270 console if something goes wrong.
EXempty
0.0.1000,0.0.1001,0.0.1002 1731/01 OSA (QDIO) 18 qeth
__ 11. Configure the network device
znetconf -a 0.0.1000
Scanning for network devices...
Ö82916.975354Ü qdio: 0.0.1002 OSA on SC f using AI:1 QEBSM:0 PRI:1 TDD:1 SIGA:RW
A
Ö82916.988766Ü qeth 0.0.1000: Device is a Virtual NIC QDIO card (level: V710)
Ö82916.988766Ü with link type Virt.NIC QDIO (portname: )
Ö82916.989123Ü qeth 0.0.1000: Hardware IP fragmentation not supported on eth0
Ö82916.989126Ü qeth 0.0.1000: Inbound source MAC-address not supported on eth0
Ö82916.989166Ü qeth 0.0.1000: VLAN enabled
Ö82916.989202Ü qeth 0.0.1000: Multicast enabled
Ö82916.989360Ü qeth 0.0.1000: IPV6 enabled
Ö82916.989430Ü qeth 0.0.1000: Broadcast enabled
Ö82916.989465Ü qeth 0.0.1000: Outbound TSO not supported on eth0
Ö82917.207076Ü IPv6: ADDRCONF(NETDEV_UP): enccw0.0.1000: link is not ready
Successfully configured device 0.0.1000 (enccw0.0.1000)
__ d. We will modify the ifcfg-enccw0.0.1000 file to add the IP address, the default netmask,
and default gateway.
__ e. Use your favorite text editor (eg: vi) to open the ifcfg-enccw0.0.1000 file for editing.
__ f. Add the information to add the IP address, default netmask, and gateway information for
the NIC. You also need to add information for NIC that is specific for IBM Z.
__ g. Save the configuration file and exit the editor
__ h. Reboot your virtual machine.
__ 12. After a few minutes SSH into your virtual machine again. Verify the configuration for your
new adapter.
lnxbnn:~ # ifconfig enccw0.0.1000
enccw0.0.1000: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.31.184.125 netmask 255.255.248.0 broadcast 10.31.191.255
ether 02:d0:31:00:00:0b txqueuelen 1000 (Ethernet)
RX packets 624 bytes 125883 (122.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 411 bytes 60923 (59.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
__ 13. Did you see your new adapter? _________________
__ 14. Use the PING command to ping your new OSA adapter on address 1000. Were you
successful? ______________
__ 15. Use the PING command to ping the 10.31.184.nn address of your z/VM 7.1.0 OSA device.
Were you successful? _____________________
__ 16. Leave your Linux server and z/VM 7.1.0 system up since you will have another short break
and lecture before the next exercise.
End of exercise
EXempty
Estimated time
00:45
Overview
This lab covers some of the system management tasks for Linux on IBM Z,
specifically regarding disk management.
Objectives
After completing this exercise, you should be able to:
• Add DASD (Vdisk for swap) dynamically to a running Linux on IBM Z server
• Add swap space to a Linux on IBM Z server
• Perform the necessary steps to add DASD persistently
• Enable cpuplugd daemon and customize policy to assign CPU resources
automatically
Introduction
In this exercise, you will dynamically add a Vdisk for swapping to Linux on IBM Z
server and make that change persistently in the Linux server. You will also be able
to use cpuplugd to manage CPU resources automatically.
Requirements
• This lab guide
• A Linux on IBM Z server
EXempty
Instructor exercise overview
In this exercise, the students will add a Vdisk for swapping to the Linux on IBM Z
server and make that change persistently in the Linux server. You will also be able
to use cpuplugd to manage CPU resources automatically.
EXempty
Exercise instructions
Preface
Linux divides its physical RAM into chunks of memory called pages. Swapping is the process that
frees a page of memory by copying it to a preconfigured space on disk, called swap space. The
combined size of the physical memory and the swap space is the amount of virtual memory
available.
Swapping is necessary for two important reasons. First, when the system requires more memory
than is physically available, the kernel swaps out lesser used pages and gives that memory to
applications (processes) that need the memory immediately. Second, a significant number of the
pages that are used by an application during its startup phase might be used only for initialization,
and then never used again. The system can swap out those pages and free memory for other
applications, or even for disk cache.
Currently, there is a swap partition on the disk to handle the swap space for your Linux guest. As
your system acquires more and more load, you might need to dynamically add swap space. Also,
data on a swap drive does not have to be persistent across reboots. So, it is sometimes more
efficient to use a virtual disk rather than to allocate physical disks for swap. This lab will show you
the processes to add a Vdisk as swap device and make the changes persistently.
Running Linux on IBM Z provides you the capability to adjust CPU and memory resources
dynamically, without stopping the Linux server. In this lab, we will also show you the process to let
Linux adjust the CPU resources automatically, based on the defined policy.
EXempty
__ 5. Verify that there is now a disk at address 200.
lnxzvmbnn:~ # sudo vmcp q v 200
DASD 0200 9336 (VDSK) R/W 200000 BLK ON DASD VDSK SUBCHANNEL = 000D
__ 6. Remove the virtual disk 200 from the CIO device driver blacklist by using the cio_ignore
command.
lnxzvmbnn:~ # sudo cio_ignore -r 200
__ 7. Verify whether the dasd_fba_mod device driver has recognized the new DASD by looking at
the /sys/bus/ccw/drivers/dasd-fba directory to check whether a 0.0.0200 entry is
present.
lnxzvmbnn:~ # ls /sys/bus/ccw/drivers/dasd-fba/
0.0.0200 bind module uevent unbind
__ 8. List the /sys/bus/ccw/drivers/dasd-fba/0.0.0200 directory to find out which
attributes for this device are available.
lnxzvmbnn:~ # ls /sys/bus/ccw/drivers/dasd-fba/0.0.0200
alias eer_enabled modalias status
availability erplog online subsystem
cmb_enable expires power uevent
cutype failfast raw_track_access uid
devtype failfast_expires readonly use_diag
discipline failfast_retries reservation_policy vendor
driver last_known_reservation_state retries
__ 9. Use the cat command to view the online attribute.
lnxzvmbnn:~ # cat /sys/bus/ccw/drivers/dasd-fba/0.0.0200/online
0
If the response is zero (as shown), the device is offline.
__ 10. You also can use command lsdasd to check whether the device 200 is online or not.
lnxzvmbnn:~ # sudo lsdasd
Bus-ID Status Name Device Type BlkSz Size Blocks
=========================================================================
0.0.0150 active dasda 94:0 ECKD 4096 7042MB 1802880
__ 11. Use the chccwdev command to set the device online or offline. After you try those different
options, set the device back to online.
lnxzvmbnn:~ # sudo chccwdev -e 0.0.0200
Setting device 0.0.0200 online
Done
EXempty
__ 12. Verify whether the device is available and what the device name is using command lsdasd.
lnxzvmbnn:~ # sudo lsdasd
Bus-ID Status Name Device Type BlkSz Size Blocks
=======================================================================
0.0.0150 active dasda 94:0 ECKD 4096 7042MB 1802880
0.0.0200 active dasdb 94:4 FBA 512 97MB 200000
__ 13. Notice that within the /dev directory a device and partition file have been created for the
swap device on dasdb.
lnxzvmbnn:~ # ls /dev/dasd*
/dev/dasda /dev/dasda1 /dev/dasda2 /dev/dasdb /dev/dasdb1 /dev/dasd_eer
__ 14. Use mkswap /dev/dasdb1 to write the swap signature to this new device.
lnxzvmbnn:~ # sudo mkswap /dev/dasdb1
Setting up swapspace version 1, size = 99992 KiB
no label, UUID=a79ff27f-d01a-41bb-b3f5-ee6e3d003d24
__ 15. Activate the swap device with sudo swapon /dev/dasdb1.
__ 16. Reissue the cat /proc/swaps command to check the status of your swap devices.
lnxzvmbnn:~ # cat /proc/swaps
Filename Type Size Used Priority
/dev/dm-1 partition 720892 0 -1
/dev/dasdb1 partition 99992 0 -2
Note
For a Linux server that is running under z/VM, all the resources are defined in the Linux guest
machine’s user directory file. In the previous Part 1, you dynamically defined a Vdisk by using the
vmcp command. This Vdisk will be gone after you log off the guest from the z/VM. In this lab, we do
not go through the process of adding a disk to the z/VM user directory. So we assume that the vdisk
definition has been added to the user directory of the Linux guest machine.
To put a DASD device in Red Hat persistently, an easy way is to put the device address in
/etc/dasd.conf.
__ 17. Modify the /etc/dasd.conf file.
__ a. sudo vi /etc/dasd.conf
__ b. Move your cursor to the last line.
EXempty
__ c. Type $ (This should put your cursor at the end of the line.)
__ d. Type i to put you in insert mode.
__ e. Press Enter key to input a new line
__ f. Add a new line with disk 0.0.0200
0.0.0150
0.0.0200
__ g. Type :wq
__ 18. Reboot your Linux server by using the sudo reboot command
__ 19. After the server comes back, log in using ssh. Issue sudo lsdasd command. You will see
that disk 200 is put on line automatically.
__ 20. Update /etc/fstab with an entry to activate the swap device automatically at the next
startup. (You might want to replicate the entry for the original swap volume and then update
the new entry).
lnxzvmbnn:~ # vi /etc/fstab
/dev/mapper/rhel_lnxzl3-root / xfs defaults 0 0
/dev/disk/by-path/ccw-0.0.0150-part1 /boot xfs defaults 0 0
/dev/mapper/rhel_lnxzl3-swap swap swap defaults 0 0
/dev/disk/by-path/ccw-0.0.0200-part1 swap swap defaults 0 0
EXempty
In this example, The Linux server will now activate an additional available CPU if the
system’s CPU idle time less than 80%. The HOTUNPLUG value means that the Linux
server will deactivate a CPU if the CPU usage is very low.
__ 4. Save the file.
__ 5. Check the cpuplugd service and start it. If the service is already running, you must restart it.
lnxzvmbnn:~ # sudo systemctl status cpuplugd.service
● cpuplugd.service - LSB: Start the cpu and memory hotplug daemon for Linux on
System z
Loaded: loaded (/etc/rc.d/init.d/cpuplugd; bad; vendor preset: disabled)
Active: inactive (dead)
Docs: man:systemd-sysv-generator(8)
Nov 08 03:23:50 lnxzl3.ilsvpn.ibm.com systemd[1]: Starting LSB: Start the cpu and
memory hotplug daemon for Linux on System z...
Nov 08 03:23:51 lnxzl3.ilsvpn.ibm.com cpuplugd[11621]: Starting cpuplugd: [ OK ]
Nov 08 03:23:51 lnxzl3.ilsvpn.ibm.com cpuplugd[11636]: Waiting 3 intervals to
accumulate history.
Nov 08 03:23:51 lnxzl3.ilsvpn.ibm.com systemd[1]: Started LSB: Start the cpu and
memory hotplug daemon for Linux on System z.
__ 6. Now, take a look at the CPU status by using the lscpu command. Because the CPUs in the
Linux server do not do any workload, you will see that CPU 1 is deactivated by cpuplugd
automatically.
lnxzvmbnn:~ # sudo lscpu -e
CPU DRAWER BOOK SOCKET CORE L1d:L1i:L2d:L2i ONLINE CONFIGURED POLARIZATION ADDRESS
0 0 0 0 0 0:0:0:0 yes yes horizontal 0
1 - - - - ::: no yes horizontal 1
__ 7. Now let’s run something on the Linux server to boost the CPU utilization and observe how
the number of CPUs changes on the system. In the current ssh session, issue the following
command to keep issuing the lscpu command. Whenever the CPU status changes, it will
be highlighted. In the following command, the default refresh time is 2 seconds.
lnxzvmbnn:~ # sudo watch -d lscpu -e
Every 2.0s: lscpu -e
Thu Nov 8 03:43:48 2018
EXempty
CPU DRAWER BOOK SOCKET CORE L1d:L1i:L2d:L2i ONLINE CONFIGURED POLARIZATION ADDRESS
0 0 0 0 0 0:0:0:0 yes yes horizontal 0
1 - - - - ::: no yes horizontal 1
__ 8. Open a new PuTTY window to log in the Linux server with a separate ssh session. In the
new ssh session window, issue the yum update command to increase the CPU utilization
slightly. (You can ignore any outputs from the yum command.). You can also use any other
methods to boost up the CPU utilization. After you issue that command, go to the previous
ssh session window, and you will see automatic activation of the CPU 1 within a couple
seconds. After the yum command is complete, you will see that the CPU 1 is deactivated
again.
Every 2.0s: lscpu -e
Thu Nov 8 03:52:40 2018
CPU DRAWER BOOK SOCKET CORE L1d:L1i:L2d:L2i ONLINE CONFIGURED POLARIZATION ADDRESS
0 0 0 0 0 0:0:0:0 yes yes horizontal 0
1 1 1 1 1 1:1:1:1 yes yes horizontal 1
__ 9. Stop the watch command with Ctrl+C keys.
End of exercise
EXempty
Overview
This lab covers how to configure the z/VM Performance Toolkit program product.
Objectives
After completing this exercise, you should be able to:
• Enable and configure the z/VM Performance Toolkit product
• Activate and use the 3270 and web interfaces for z/VM Performance Toolkit
Introduction
In this exercise, you will plan, enable, configure, and implement z/VM
Performance Toolkit.
Requirements
• This lab guide
• z/VM Performance Toolkit Program Directory
EXempty
Exercise instructions
Part 1: Log on to the student guest system
__ 1. Set up and IPL your second-level z/VM system.
EXempty
__ 19. Issue the Query Names command at the Performance Toolkit command line to see what virtual
machines are currently logged on to the system.
__ 20. Issue several trivial commands until the screen has filled up and the older messages roll off the
display.
__ 21. Press the appropriate PF key to redisplay the old messages.
__ 22. What key did you select? _______________________
__ 23. Use the PF7 and PF8 key to scan through the PERFKIT log. This log is on the 191 disk of the
OPERATOR.
__ 24. Use the FILELIST command to display all the files on Operator's 191 disk, and then edit the
PERFKIT console log.
__ 25. What is the name of this file? ____________ ________________
Note: This log is appended for a 24-hour period.
__ 26. Close the XEDIT session and filelist display.
__ 27. Disconnect from the OPERATOR virtual machine.
EXempty
__ 32. Before you go on to instruction 3, issue the following command:
VMFSETUP SERVP2P PERFTKSFS (LINK
__ 33. Use the FILELIST command to show all the files on the E disk. These are the files that were
created by the LOCALMOD command. Examine the contents of these files. These files are not
currently usable by PERFSVM. You will correct this when we build the PERFTK product.
__ 34. Now, continue with instruction 3 to build Performance Toolkit.
__ 35. Complete 6.4 “Place Performance Toolkit for VM Into Production”.
__ 36. Complete 6.5 “Post-Installation Considerations”. Ignore the error message that you see
concerning FCONX LINUXUSR when you start PERFKIT. You will fix this shortly. Also, because
this is the last exercise, don’t bother to put PERFSVM into AUTOLOG1’s PROFILE EXEC.
__ 37. From your MAINT710 session, issue the Query CPUID command. Make note of the first 6 digits
after “FF”. What is the CPUID? _____________________
__ 38. Update the SYSTEM NETID on MAINT’s 190 and MAINT710’s 490 with the appropriate values
for the CPUID, NODEID, and NETID. Refer to the lecture if you are not sure what these values
should be.
__ 39. Again, save the CMS saved segments with the PUT2PROD SAVECMS command.
__ 40. Issue the Query PRODUCT command. What is the status of Performance Toolkit for VM?
_____________________
__ 41. Log off from MAINT710, and close that PCOMM session.
__ 42. On your remaining PCOMM session, log on to the PERFSVM virtual machine. Press Enter. You
should see a screen similar to what we saw on the OPERATOR virtual machine after we started
the PERFKIT Module. Press the PF12 key to exit from this screen.
__ 43. Edit the PROFILE EXEC file and uncomment all the CP MONITOR statements at the bottom of
the file, except for the SSI statements. Add these MONITOR EVENT statements to the PROFILE
EXEC:
'CP MONITOR EVENT ENABLE PROCESSOR'
'CP MONITOR EVENT ENABLE SCHEDULER ALL'
'CP MONITOR EVENT ENABLE USER ALL'
'CP MONITOR EVENT ENABLE APPLDATA ALL'
__ 44. Create the following files, with the appropriate information.
__ UCOMDIR NAMES - Insert the following information:
:nick.FCXRES00 :luname.*IDENT
:tpn.FCXC1R01
:security.SAME
:nick.FCXSYSTM :luname.*IDENT
:tpn.FCXC1S01
:security.SAME
__ FCONRMT SYSTEMS - Insert the appropriate entry for your system. (Notice that the third
parameter is a placeholder and can be anything that you like, but it is critical that the other four
parameters are specified correctly.)
EXempty
__ FCONRMT AUTHORIZ - Authorize PERFSVM (for S&FSERV and DATA), MAINT, and
OPERATOR (for DATA, CMD, and EXCPMSG) and DATA only for all other users.
__ FCONX LINUXUSR - Insert these 3 pre-installed Linux servers:
SLES15 10.31.185.142:8803
UBUN18 10.31.185.143:8803
RHEL75 10.31.185.144:8803
__ 45. Add also your preinstalled Linux server RHEL using IP Address 10.31.184.xxx. If it is not active,
you can start it using this command: XAUTOLOG RHEL
__ 46. Start the PERFKIT MODULE by running the PROFILE EXEC in the PERFSVM virtual machine.
(Ignore the message about the TCP/IP error 13 on socket. You will fix this in just a moment.)
__ 47. Were you successful? ______________
__ 48. Did you see the PERFKIT main menu? _____________________
Note
At the time that this guide was published, the next steps work with IE 8, Firefox, and Chrome
browsers only.
__ 55. Enter the URL for your Performance Toolkit application (10.31.184.nnn:81) into your desktop
browser.
__ 56. Did you connect to your Performance Toolkit application? __________________
If not, contact your instructor for assistance, unless you can debug this problem on your own.
__ 57. Enter a Performance Toolkit-authorized virtual machine name and password, and select
SUBMIT.
__ 58. Select your system name from the System Accessible in the APPC/VM screen.
__ 59. Is the Initial Data Performance Selection Menu screen displayed? _____________________
EXempty
__ 60. Examine several of the menu selections from this screen. Notice the MENU button at the top
when you are in a selection window. This button will return the viewer to the main menu for
Performance Toolkit for VM.
__ 61. Select the LINUX Systems menu option (under User Data), and drill down until you see the
three pre-installed Linux guests that you added in FCONX LINUXUSR. You should be able to
view performance data for these pre-installed Linux servers.
Note
RMF PM in this lab is pre-installed in three Linux servers and in the RHEL preinstalled Linux that
you have used for the Linux network and System Management exercises.
__ 62. This concludes this lab. Shut down your Linux guest system, and then your z/VM system, and log
off your student virtual machine.
Congratulations! You have completed the course.
Please complete the course evaluation and have a safe trip home.
End of exercise
EXempty
Exercise solutions
These solutions are for team ZVMBxx.
/********************************/
/* Operator/OP1 Profile Exec */
/********************************/
Address Command
'SYNONYM SYN'
'CP TERMINAL MODE VM'
'CP SPOOL CONSOLE * START' q
'CP SET RUN ON'
'CP SET PF11 RETRIEVE FORWARD'
'CP SET PF12 RETRIEVE BACKWARD'
'CP SET PF23 RETRIEVE FORWARD'
'CP SET PF24 RETRIEVE BACKWARD'
'CP LINK PERFSVM 201 201 RR'
Address cms 'acc 201 g'
Address cms 'perfkit'
EXempty
'CP MONITOR EVENT ENABLE STORAGE'
'CP MONITOR EVENT ENABLE USER ALL'
'CP MONITOR EVENT ENABLE I/O ALL'
'CP MONITOR EVENT ENABLE NETWORK' /*ØF1153MP*/
'CP MONITOR EVENT ENABLE APPLDATA ALL'
'CP MONITOR EVENT ENABLE ISFC' /*ØF1153MP*/
/* 'CP MONITOR EVENT ENABLE SSI' */ /*ØF1153MP*/
EXempty
* * * Top of File * * *
00001 SLES15 10.31.185.142:8803
00002 UBUN18 10.31.185.143:8803
00003 RHEL75 10.31.185.144:8803
00003 RHEL 10.31.184.xxx:8803
* * * End of File * * *
AP
AP
AP
backpg