Click to add text © 2004 IBM Corporation IBM ^ z/VM Basic Structures and Commands Control Program.

Slides:



Advertisements
Similar presentations
CCNA2 MODULE 5.
Advertisements

XP Tutorial 9 New Perspectives on Microsoft Windows XP 1 Microsoft Windows XP Exploring Your Network Tutorial 9.
Discovering Computers Fundamentals, Third Edition CGS 1000 Introduction to Computers and Technology Fall 2006.
Avishai Wool lecture Introduction to Systems Programming Lecture 8 Input-Output.
© 2004 IBM Corporation IBM ^ z/VM Module 3: Control Program (CP)
© 2004 IBM Corporation IBM ^ z/VM Module 9: Performance.
9.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 9: Installing and Configuring.
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 8: Implementing and Managing Printers.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 8: Implementing and Managing Printers.
1 I/O Management in Representative Operating Systems.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 8: Implementing and Managing Printers.
November 1, 2004Introduction to Computer Security ©2004 Matt Bishop Slide #29-1 Chapter 33: Virtual Machines Virtual Machine Structure Virtual Machine.
1 Threads Chapter 4 Reading: 4.1,4.4, Process Characteristics l Unit of resource ownership - process is allocated: n a virtual address space to.
CCNA 2 v3.1 Module 2.
VM Basics – some terminology – Guest: a system that is operating in a virtual machine, a.k.a user – Running under/on VM : running a system as a guest of.
The Origin of the VM/370 Time-sharing system Presented by Niranjan Soundararajan.
DEMONSTRATION FOR SIGMA DATA ACQUISITION MODULES Tempatron Ltd Data Measurements Division Darwin Close Reading RG2 0TB UK T : +44 (0) F :
The AS/400 and the printing process
Stephen Linkin Houston Community College January 15, 2007 © Mike Murach & Associates, HCC, IBM 1 Introduction To IBM Mainframe Systems Chapter.
Backup & Recovery 1.
Configuring the MagicInfo Pro Display
Hands-On Microsoft Windows Server 2008
1 Guide to Novell NetWare 6.0 Network Administration Chapter 11.
Hands-On Virtual Computing
Input/OUTPUT [I/O Module structure].
Chapter 1. Introduction What is an Operating System? Mainframe Systems
University of Management & Technology 1 Operating Systems & Utility Programs.
Module 7: Fundamentals of Administering Windows Server 2008.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Principles of I/0 hardware.
Cisco S2 C4 Router Components. Configure a Router You can configure a router from –from the console terminal (a computer connected to the router –through.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
© 2004 IBM Corporation IBM ^ z/VM Module 2: Conversational Monitor System (CMS)
© Paradigm Publishing Inc. 4-1 OPERATING SYSTEMS.
© 2004 IBM Corporation IBM ^ Objectives  Describe how CP commands are used and structured  Explain the importance of the VM Dump Tool and VM Virtual.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 13 FTP and Telnet.
© 2004 IBM Corporation IBM ^ z/VM Design considerations > Security > Performance (SIE)
Silberschatz and Galvin  Operating System Concepts Module 1: Introduction What is an operating system? Simple Batch Systems Multiprogramming.
Envision Tutorial Horner APG, LLC July 18, Introduction The Cscape Remote Viewer allows remote interaction with the user interface on Horner OCS.
© 2006 EMC Corporation. All rights reserved. The Host Environment Module 2.1.
CSC190 Introduction to Computing Operating Systems and Utility Programs.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 6A Operating System Basics PART I.
2.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition System Programs (p73) System programs provide a convenient environment.
1.1 Sandeep TayalCSE Department MAIT 1: Introduction What is an operating system? Simple Batch Systems Multiprogramming Batched Systems Time-Sharing Systems.
The Functions of Operating Systems Spooling. Learning Objectives Describe spooling, explaining why it is used.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
Libvirt management Andrea Chierici Virtualization tutorial Catania 1-3 dicember 2010.
Embedded Real-Time Systems Processing interrupts Lecturer Department University.
Chapter 4: server services. The Complete Guide to Linux System Administration2 Objectives Configure network interfaces using command- line and graphical.
CHAPTER 3 Router CLI Command Line Interface. Router User Interface User and privileged modes User mode --Typical tasks include those that check the router.
OPERATING SYSTEM REVIEW. System Software The programs that control and maintain the operation of the computer and its devices The two parts of system.
IPEmotion License Management PM (V1.2).
Applied Operating System Concepts
Chapter 13: I/O Systems Modified by Dr. Neerja Mhaskar for CS 3SH3.
Operating System Review
Chapter 2 Memory and process management
SQL and SQL*Plus Interaction
Chapter 2: System Structures
Operating System Structure
Operating System Review
Operating System Review
Operating System Concepts
bitcurator-access-webtools Quick Start Guide
Operating System Concepts
Mr. M. D. Jamadar Assistant Professor
In Today’s Class.. General Kernel Responsibilities Kernel Organization
Presentation transcript:

Click to add text © 2004 IBM Corporation IBM ^ z/VM Basic Structures and Commands Control Program

© 2004 IBM Corporation IBM ^ Objectives  List and describe some useful CP commands  List and describe useful CP utilities

© 2004 IBM Corporation IBM ^ A Virtual / Guest machine >Each Virtual machine has an entry in the System User Directory >Each entry has a number of descriptive statements which define the initial configuration A virtual machine's entry: -User id and password -CP command privilege class //determines CP commands for user Initial configuration for VM: processor, memory size, architecture mode IO devices -initial scheduling share

© 2004 IBM Corporation IBM ^ A Virtual / Guest machine > you log into z/VM. CP creates your virtual machine as defined in the user directory. Operator (user) can: - boot the OS and run it - keep a console spool file (FYI e.g. debugging) - simulates real machine functions e.g. address stop - disconnect and reconnect your console - Log off ( end a Virtual machine session)

© 2004 IBM Corporation IBM ^ A Virtual / Guest machine –Number of processors >Each VM appears to have at least one virtual processors (the base processor). >This processor has an initial address of 0 >The directory entry specifies the initial number of processors and the total number of virtual processors that can be defined.

© 2004 IBM Corporation IBM ^ A Virtual / Guest machine -Detaching a VP Detaching a virtual processor causes CP to reset your virtual machine. -You must re-IPL (boot) the operating system. -You cannot detach your base processor.. If the virtual processor is DEDICATED to a real processor, the real processor will now be used by all other virtual machines. To detach a virtual processor other than your base processor, enter: detach cpu n // n is the address (0, 1,...) of the processor To detach all virtual processors, except the base processor, enter: detach cpu all

© 2004 IBM Corporation IBM ^ A Virtual / Guest machine – to Stop a VM To stop all your virtual processors: 1-Press your virtual machine's break key (PA1)…. When CP READ //is displayed at the lower right of your display screen, enter: stop Note: If the VM RUN mode is OFF… STOP is not required Or 2- Enter: #cp stop To stop a particular virtual processor, enter: #cp stop cpu n Where n is the address of the virtual processor you want to stop.

© 2004 IBM Corporation IBM ^ A Virtual / Guest machine – to Restart a VM To restart all virtual processors from the point where they were stopped, enter: begin To restart only the virtual processor on which you enter commands, enter: begin * To restart a specific virtual processor, enter: begin cpu n Where n is the address of the processor you wish to restart.

© 2004 IBM Corporation IBM ^ Virtual Machine –Managing IO and Virtual devices VM I/O terminology, here are some terms : Virtual device— any device in a VM's I/O configuration. Dedicated device—one of the following: - A virtual I/O device to which CP has exclusively allocated (dedicated) a real device -The real I/O device that CP allocates (dedicates) to a virtual machine Virtual device number—This term refers to a 3- or 4-digit hexadecimal number (depending on the operating system you are running in your virtual machine) by which CP identifies a virtual device.

© 2004 IBM Corporation IBM ^ Virtual Machine –Managing IO and Virtual devices Adding to or removing any of the following devices: -DASD /DISK // dedicated devices -Minidisks -Temporary disks // lost at log off or system failure -Virtual disks in storage // fast but in memory -Expanded Storage Facility displays, printers, and communication lines -Tapes -Virtual channel-to-channel adapters -Sharing DASD among virtual machines (through reserve/release) -Links to other user's minidisk or virtual disk in storage -Redefining the virtual device number of any I/O device. Excluding spooled unit record devices..

© 2004 IBM Corporation IBM ^ Virtual Machine –Managing IO and Virtual devices To display the status of all of your virtual machine's I/O devices, enter: query virtual all To determine the status of a particular virtual machine I/O device, enter: query virtual vdev or query virtual vdev details Where: vdev ….. is the number of the device whose status you want to know. details …..is an optional parameter that will display additional information about any of your DASDs that are attached to cached control units....explain this.

© 2004 IBM Corporation IBM ^ Virtual Machine –Managing Disk To display the status of your virtual machine's DASD (dedicated DASD, mini-disks, T-disks, and virtual disks in storage), enter: query virtual dasd or query virtual dasd details Where details is an optional parameter that displays additional information for any of your DASDs attached to cached control units. To display a dedicated DASD, full-pack minidisk, user minidisk, T-disk, or virtual disk in storage, enter: query mdisk vdev or query mdisk vdev location Where: vdev …....is the virtual device number of the device for which you want to see information. location ….tells CP you want information about the location and size of the specified device.

© 2004 IBM Corporation IBM ^ Virtual Machine –Managing Disk To display the status of your virtual machine's DASD (dedicated DASD, mini-disks, T-disks, and virtual disks in storage), enter: query virtual dasd or query virtual dasd details Where details is an optional parameter that displays additional information for any of your DASDs attached to cached control units. To display a dedicated DASD, full-pack minidisk, user minidisk, T-disk, or virtual disk in storage, enter: query mdisk vdev or query mdisk vdev location Where: vdev …....is the virtual device number of the device for which you want to see information. location ….tells CP you want information about the location and size of the specified device.

© 2004 IBM Corporation IBM ^ Virtual Machine – Attaching a disk To dedicate an offline DASD to your virtual machine, you must: 1 Be authorized to enter class B CP commands 2 Know the real device number of the DASD. 3 Enter the following two commands: vary online rdev // recognize device attach rdev userid vdev cache control level // attach to VM Where: rdev...is the real device number of the DASD. userid...is your user identification. vdev...is the virtual device number you want to assign the DASD. cache control level …. is the level of subsystem control associated with the DASD. The levels of control are SYSCTL, DEVCTL, and NOCTL. (next slide)

© 2004 IBM Corporation IBM ^ Virtual Machine – Attaching a disk with a Cache Most large DASD control units have a high-speed storage cache. Caching (writing to or reading from cache storage) can improve system performance. EXPLAIN why If you have dedicated DASDs or full-pack mini-disks attached to a cached control unit, you have certain levels of subsystem control associated with those DASDs. The levels are as follows:  The SYSCTL - allows VM to issue CCWs that control Control Unit (CU) and device resources.  The DEVCTL - allows the VM to issue CCWs that control device resources, but not CU resources.  The NOCTL - prevents the virtual machine from successfully issuing CCWs that control either the CU device resources.

© 2004 IBM Corporation IBM ^ Virtual Machine – Attaching a Mini-disk with a cache If your virtual machine has non-full-pack mini-disks attached to a cached control unit, you have access authority associated with those mini- disks. The access authority is as follows: CACHE - means that the mini-disk will access the cache. NOCACHE - access authority means that CP forces read and writes to the mini-disk to bypass the cache.

© 2004 IBM Corporation IBM ^ Virtual Machine – Sharing Disks Reserve/release- allows your virtual machine to share a DASD with another virtual machine or with a system running on another processor. The purpose is to preserve data integrity while allowing several operating systems to use the same DASD volume. Reserve/release guarantees this by allowing only one operating system at a time to access data on a DASD volume.... Serializing access to data Serializing access to data allows several operating systems to use the same DASD volume.

© 2004 IBM Corporation IBM ^ Virtual Machine – Real Reserve/Release Support If the operating systems are running on different processor complex (CECs), access is serialized through real reserve/release support. If the operating systems are running in different virtual machines, the access is serialized through virtual reserve/release support. If a DASD volume is shared by both kinds of environments, data integrity is preserved by using both virtual and real reserve/release support. Real reserve/release support - uses hardware CCWs called reserve/release Reserve CCW exclusively reserves a DASD volume for the issuer. Release CCW releases the volume To use real reserve/release support, device must be dedicated to a VM

© 2004 IBM Corporation IBM ^ Virtual Machine – Virtual Reserve/Release Support Virtual reserve/release support is a software function of CP. When a DASD volume is shared only among operating systems running in a single z/VM virtual machine. To invoke virtual reserve/release support, the volume is defined as a shareable mini-disk. A shareable minidisk is defined by coding in the user directory an MDISK statement with the V option on the access mode. The same method to define a virtual disk in memory as shareable using virtual reserve/release support. A virtual disk in memory is a mini-disk that is allocated in host storage (memory) instead of being mapped to a real DASD volume.

© 2004 IBM Corporation IBM ^ Virtual Machine – add a virtual disk in memory to your VM DEFINE command- add a virtual disk in memory to your VM. >Virtual disk in storage is allocated in memory - not mapped to a real DASD, it is temporary and fast. >A virtual memory disk is shareable if defined in the directory. >A virtual disk in storage created with the DEFINE command is private. > Remains attached to your virtual machine until you log off or detach it using the DETACH command.

© 2004 IBM Corporation IBM ^ Virtual Machine – add a virtual disk in memory to your VM To define a virtual disk in storage, enter: define vfb-512 as vdev blk nnnnnnn Where: vfb-512 -indicates that the virtual disk in storage simulates an FBA (Fixed Block Architecture) mini-disk. vdev -is the virtual device number you assign to the virtual disk in storage. nnnnnnn -is the size of the virtual disk in storage in 512-byte blocks. The maximum size is blocks. After you define the virtual disk in storage, you must format it using the command appropriate for the operating system you are running.

© 2004 IBM Corporation IBM ^ Virtual Machine – Virtual Communication Lines To add a virtual communication line to your virtual machine enter: define line as vdev ibm1 or define line as vdev tele2 Where: vdev - is the virtual device number of the line you are defining. Ibm1 - is the virtual device type of the line you are defining. This is a 2741, 3767, or equivalent device. It is the default. tele2 - is the virtual device type of the line you are defining. This is a 3101, 3151, 3161, 3162, 3163, or equivalent device. CP responds with a message similar to the following: LINE vdev DEFINED If

© 2004 IBM Corporation IBM ^ Virtual Machine – Virtual Communication Lines Once the line is defined: Enter the CP DIAL command from a real device to connect to the line to your virtual machine. The VM OS must support the real device To invoke the DIAL command, Log On to z/VM) and then enter: dial userid vdev Where: userid -is the identification of the virtual machine vdev -is the device number of the local virtual display to connect. If the user ID is recognized, logged on, and has the specified line available at the specified address, the system responds with a message similar to: DIALED TO userid vdev

© 2004 IBM Corporation IBM ^ Virtual Machine – Virtual channel to channel adapters Explain Channel to Channel Adapters A virtual channel-to-channel adapter (CTCA) provides a communications link between two virtual machines, a real channel-to-channel adapter is not required. To check the status of any virtual channel-to-channel adapters in your virtual machine configuration, enter: query virtual ctca

© 2004 IBM Corporation IBM ^ Virtual Machine – Virtual CTCA example Assume user IDs BECKERT and YOUNG want to define a virtual channel-to-channel adapter between their virtual machines. BECKERT wants to assign his CTCA device number 100. YOUNG wants to assign her CTCA device number 200. BECKERT enters: define ctca as 100 user young YOUNG must enter: define ctca as 200 user beckert To connect the two CTCAs, either BECKERT must enter: couple 100 to young 200 Or, YOUNG must enter: couple 200 to beckert 100

© 2004 IBM Corporation IBM ^ Virtual Machine – Unit Record Devices There are two ways for CP to provide your virtual machine with unit record devices  CP can dedicate real unit record devices  CP can use a method called spooling to perform unit record device I/O operations. In this case, your virtual machine has spooled unit record devices. (simulated devices) If it is spooled, you must use CP commands to manage the device. If a unit record device is dedicated, use the operating system you are running. Note: Printers are the only real devices...card reader and punches are ”Virtual”

© 2004 IBM Corporation IBM ^ Virtual Machine – Unit Record Devices Explain Spooling Concepts Benefits- performance, device utilization  When you print (or punch) information, CP places the information into a spool file, which is on a DASD.  When the spool file is closed and a real printer (or punch) is available, CP can print (or punch) the spool file.  When you read information queued for your spooled reader, what you are actually doing is reading a spool file that CP has placed in a queue for you.

© 2004 IBM Corporation IBM ^ Virtual Machine – managing Spool files- examples To move a file with identification number 0111 from your spooled reader to your spooled printer, enter: change reader 0111 to * printer To move a file with id number 0222 from your printer to the printer of userid BANKS, enter: change printer 0222 to banks printer You want to transfer a spool file with spoolid 9876 from the reader queue to the reader queue of WARRENT. To transfer the spool file, enter: transfer rdr 9876 to warrant Spool files on your printer queue need to be transferred to your reader queue. To transfer the spool files, enter: transfer prt all to * rdr

© 2004 IBM Corporation IBM ^ Virtual Machine – Using Spooled devices for communications Explain the initial VM network spool 00d to nodename username // 00d is devad of punch punch x.x // punch some file close 00d // send it now can also be done with prt files (device address 00e) Spool files are sent to target machine- and to “reader” of target read x.x IBM internal network in 1980s before Internet

© 2004 IBM Corporation IBM ^ Virtual Machine – E

© 2004 IBM Corporation IBM ^ Virtual Machine – E

© 2004 IBM Corporation IBM ^ Virtual Machine – E

© 2004 IBM Corporation IBM ^ Virtual Machine – E