Attaching DASD

To dedicate an offline DASD to your virtual machine, you must:

  1. Be authorized to enter class B CP commands. Otherwise, you must request the primary system operator or other authorized user to attach the DASD for you.
  2. Know the real device number of the DASD.
  3. Enter the following two commands:
vary online rdev
attach rdev userid vdev cache control level
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. (These levels of control are explained in Cache Storage.)

If you are attaching a DASD that is attached to a cached control unit, you can specify the level of subsystem control you want your virtual machine to have. For more information on how to do this, see z/VM: System Operation. When the DASD is attached, CP sends you a message to that effect. You must use the commands appropriate to the operating system you are running to format or otherwise prepare the DASD for use.