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.

DETACH (Real Device)<br />

Usage Notes<br />

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

ldev<br />

ldev1-ldev2<br />

is a logical device number, a list of logical device numbers, or a range of logical<br />

device numbers to be detached from the indicated user. On a single comm<strong>and</strong><br />

line, you may combine device numbers, lists of device numbers, <strong>and</strong> ranges of<br />

device numbers. Specify a logical device number as an L followed by one to<br />

four hexadecimal digits.<br />

VOLid<br />

indicates that a volume serial number, which must follow this keyword, is used<br />

to identify the real device. If the volume serial number is valid as an oper<strong>and</strong> of<br />

the comm<strong>and</strong> (e.g., is a valid device number or XSTore), specify VOLid to<br />

indicate that the oper<strong>and</strong> is a volume serial.<br />

volid<br />

specifies the one- to six-character volume serial number of a real DASD.<br />

userid<br />

* identifies the virtual machine to which the device is currently attached. The<br />

specified user must be logged on, not in the process of logging on. If you are<br />

detaching a device from your own virtual machine, you may specify userid as<br />

an asterisk (*).<br />

ALL<br />

detaches a real device from all virtual machines without having to specify the<br />

user IDs. This oper<strong>and</strong> can be used to detach devices attached with the<br />

MULTIUSER option. The ALL oper<strong>and</strong> is not valid for devices attached to<br />

SYSTEM.<br />

SYSTEM<br />

detaches a DASD currently being used by <strong>CP</strong> for allocation <strong>and</strong> control.<br />

UNload<br />

detaches the tape device <strong>and</strong> automatically rewinds <strong>and</strong> unloads it. UNLOAD is<br />

the default if the tape was attached with the ASSIGN option.<br />

LEave<br />

detaches the tape device without rewinding <strong>and</strong> unloading it. The tape remains<br />

positioned as it was before issuing DETACH. LEAVE is the default if the tape<br />

was attached with the NOASSIGN or MULTIUSER option.<br />

1. SET IMSG OFF will not suppress informational messages for this comm<strong>and</strong>.<br />

2. A previously attached device can be detached from a user, even if the device<br />

is still in use.<br />

3. When a device is detached from a user, all Concurrent Copy (CONCOPY)<br />

sessions associated with that device for that user are terminated in the storage<br />

control.<br />

4. When a device is detached, all data blocks associated with the device are<br />

removed from the minidisk cache.<br />

5. If you specify multiple device numbers or a range of device numbers on the<br />

DETACH (real device) comm<strong>and</strong> line, you receive an affirmative response for<br />

each device that is successfully detached <strong>and</strong> an error message for each<br />

device that cannot be detached.<br />

6. If you attempt to detach an active shared device from SYSTEM, you receive<br />

an error message indicating that the device is being shared by multiple users.<br />

In order to detach the device, each of the affected users must detach the<br />

device from their virtual systems.

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

Saved successfully!

Ooh no, something went wrong!