27.12.2012 Views

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DEFINE DEVICE / IODEVICE<br />

158 z/<strong>VM</strong>: <strong>CP</strong> <strong>Comm<strong>and</strong>s</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Reference</strong><br />

your system, you must first dynamically define one or more control units for<br />

that device (if they do not already exist) <strong>and</strong> one or more channel paths (if<br />

they do not already exist).<br />

If you need to physically define any channel paths, control units, or devices,<br />

use the following comm<strong>and</strong>s in the following order:<br />

a. To define channel paths, use the DEFINE CHPID or PATH comm<strong>and</strong>. (See<br />

page 124.)<br />

b. To define control units, use the DEFINE CU or CNTLUNIT comm<strong>and</strong>. (See<br />

page 149.)<br />

c. To define devices, use the DEFINE DEVICE or IODEVICE comm<strong>and</strong>.<br />

If you do not define the channel paths, control units, <strong>and</strong> devices correctly <strong>and</strong><br />

in the proper order, <strong>CP</strong> will issue appropriate error messages.<br />

2. Before you add a new device to the system, you should decide whether you<br />

want <strong>CP</strong> to immediately initialize that device. If <strong>CP</strong> initializes a new device<br />

when you add it to the system, you can begin using that device immediately. If<br />

<strong>CP</strong> does not initialize the new device, you must vary the device online using<br />

the VARY (real device) comm<strong>and</strong> (see page 1710) before anyone can use that<br />

device.<br />

3. To display whether <strong>CP</strong> initializes new real devices as they are added to a<br />

running system, use the QUERY NEW_DEVICES comm<strong>and</strong>. (See page 891.)<br />

4. To define or change the way <strong>CP</strong> initializes new real devices as they are added<br />

to a running system:<br />

v During initialization, use the ENABLE or DISABLE<br />

NEW_DEVICES_INITIALIZED_WHEN_ADDED oper<strong>and</strong>s of the FEATURES<br />

statement in your system configuration file. For more information, see the<br />

z/<strong>VM</strong>: <strong>CP</strong> Planning <strong>and</strong> Administration book.<br />

v After initialization, use the SET NEW_DEVICES comm<strong>and</strong>. (See page<br />

1301.)<br />

5. To change whether <strong>CP</strong> uses the sense ID information at device initialization,<br />

use the SENSED or NOTSENSED oper<strong>and</strong>s of the SET DEVICES comm<strong>and</strong>.<br />

(See page 1241.)<br />

6. After successfully entering this comm<strong>and</strong>, you will have changed the software’s<br />

view of the I/O configuration <strong>and</strong> part of the hardware’s view: the active I/O<br />

configuration in the hardware system area (HSA). You should also change the<br />

other part of the hardware’s view: the active I/O configuration data set (IOCDS)<br />

file on the support element (SE) hard disk.<br />

To change the IOCDS file on the SE hard disk, you must:<br />

a. Update the IO<strong>CP</strong> source file.<br />

b. Run the IO<strong>CP</strong> utility (see page 1849) against the updated IO<strong>CP</strong> file. If the<br />

IO<strong>CP</strong> utility runs without errors, it downloads the new IOCDS file to the SE<br />

hard disk.<br />

c. Issue the SET IOCDS_ACTIVE comm<strong>and</strong>(see page 1258) to make the<br />

new IOCDS file the active file that the processor will use during the next<br />

power-on reset (POR).<br />

7. For more information about defining real devices in your I/O configuration, see<br />

z/<strong>VM</strong>: I/O Configuration.<br />

8. To change the definition of an existing device on the system, use the MODIFY<br />

DEVICE or IODEVICE comm<strong>and</strong>. (See page 610.)<br />

9. To delete an existing device on the system, use the DELETE DEVICE or<br />

IODEVICE comm<strong>and</strong>. (See page 223.)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!