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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DELETE RDEVICE<br />

DELETE RDEVICE<br />

►►<br />

DELete<br />

Authorization<br />

Purpose<br />

Oper<strong>and</strong>s<br />

Usage Notes<br />

Responses<br />

RDEVice<br />

rdev<br />

rdev1-rdev2<br />

Privilege Class: B<br />

Use DELETE RDEVICE to delete one or more real device control blocks (RDEVs)<br />

on the system. An RDEV is a piece of storage associated with a real device that<br />

contains information about that device’s features <strong>and</strong> status. Thus, when you issue<br />

the DELETE RDEVICE comm<strong>and</strong>, you are actually deleting a piece of storage, not<br />

an actual real device.<br />

To delete an actual real device, use the DELETE DEVICE or IODEVICE comm<strong>and</strong><br />

(page 223).<br />

rdev<br />

rdev1-rdev2<br />

is the number of the real device whose RDEV you want to delete. Each rdev<br />

must be a 1- to 4-digit hexadecimal number between X'0000' <strong>and</strong> X'FFFF'. You<br />

can specify a single device address or a range of device addresses.<br />

1. Before you can delete a real device control block (RDEV), you must take the<br />

device <strong>and</strong> subchannel associated with this RDEV offline. To take a device<br />

offline, use the VARY (Real Device) comm<strong>and</strong> (page 1710). To take a<br />

subchannel offline, use the VARY SUBCHANNEL comm<strong>and</strong> (page 1714).<br />

2. To display the status of one or more real devices, use the QUERY (Real<br />

Device) comm<strong>and</strong> (page 955).<br />

Note: If your processor is in LPAR mode, the QUERY (Real Device) comm<strong>and</strong><br />

displays the status of the device only if you issue the QUERY comm<strong>and</strong><br />

in the partition that owns the device. If you issue the QUERY comm<strong>and</strong><br />

in one of the other partitions, <strong>CP</strong> gives you a message stating that the<br />

device does not exist.<br />

3. To create a real device control block, use the:<br />

a. SET RDEVICE comm<strong>and</strong> (page 1333) with the proper device<br />

characteristics, <strong>and</strong><br />

b. VARY (Real Device) comm<strong>and</strong> (page 1710) to bring the device online.<br />

Response 1:<br />

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

To delete real device control block 300 from your system, enter the following:<br />

►◄

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

Saved successfully!

Ooh no, something went wrong!