Discussion:
question about removing devices
(too old to reply)
Larry Macioce
2006-02-21 17:18:32 UTC
Permalink
I have several devices I'm looking to remove,really reuse.
I've removed the users(linux boxes), removed the devices from $alloc. I
then did a directxa user.
I also removed the devices form the sys config file. I then gave the config
back to cp.
But when I do a q dasd I still see them in the list.
What am I missing??????????

thanks
Mace
David Kreuter
2006-02-21 17:23:46 UTC
Permalink
well if the devices are defined in the IOCDS that is active z/VM will see them. You can instruct CP in SYSTEM CONFIG or dynamically via the VARY OFF command to vary devices offline.
As well SYSTEM CONFIG is only read by CP at IPL time, so you should use VARY OFF.
David

-----Original Message-----
From: VM/ESA and z/VM Discussions on behalf of Larry Macioce
Sent: Tue 2/21/2006 12:18 PM
To: VMESA-***@LISTSERV.UARK.EDU
Subject: question about removing devices

I have several devices I'm looking to remove,really reuse.
I've removed the users(linux boxes), removed the devices from $alloc. I =

then did a directxa user.
I also removed the devices form the sys config file. I then gave the conf=
ig
back to cp.
But when I do a q dasd I still see them in the list.
What am I missing??????????

thanks
Mace
Schuh, Richard
2006-02-21 17:30:16 UTC
Permalink
The SYSTEM CONFIG is used only at IPL time. Your changes to it will not take effect until the next IPL.

There are other commands you can use to remove them from the system.

DETACH devlist SYSTEM
VARY OFF devlist

And, depending on what you mean by remove them from the system, possibly

VARY OFF PATH path FROM devlist
VARY OFF CHPID chp

The DIREXTXA command only affects the User Directory and has nothing to do with the SYSTEM CONFIG.

Hope this helps,
Richard Schuh


-----Original Message-----
From: VM/ESA and z/VM Discussions [mailto:VMESA-***@LISTSERV.UARK.EDU] On Behalf Of Larry Macioce
Sent: Tuesday, February 21, 2006 9:19 AM
To: VMESA-***@LISTSERV.UARK.EDU
Subject: question about removing devices

I have several devices I'm looking to remove,really reuse.
I've removed the users(linux boxes), removed the devices from $alloc. I =

then did a directxa user.
I also removed the devices form the sys config file. I then gave the conf=
ig
back to cp.
But when I do a q dasd I still see them in the list.
What am I missing??????????

thanks
Mace
Larry Macioce
2006-02-21 18:34:49 UTC
Permalink
I'm sorry when I said devices I should have said current volumes (IE
vol123,vol345,etc) need to be changed to volabc,voldef,etc). So I'm keeping
the dev numbers the same I just want to unalloc those dev reformat them and
give them to another user.
thanks
Mace
Jim Bohnsack
2006-02-21 19:09:55 UTC
Permalink
Larry--if the volumes are "attached to the system" as opposed to just being
visible, you need to do a

CP DET cuu FROM SYSTEM

This is what I see, showing the difference between dasd "attached to the
system" and merely "there".

DASD 028D CP SYSTEM LNX007 0
DASD 0293 CP SYSTEM TVMPG1 0
DASD 0294 CP SYSTEM LNX005 0
DASD 0110 MVS110 , DASD 0111 MVS111 , DASD 0112 MVS112 , DASD 0113 MVS113
DASD 0114 MVS114 , DASD 0115 MVS115 , DASD 0116 MVS116 , DASD 0117 MVS117

This is a snippet from a Q DA ALL. If I wanted to reinit. 294, I would
have to DET 294 FROM SYSTEM (note: that it has 0 id's linked to mdisks on
it. After 294 was detached from the system, then I could ATT 294 * 294,
assuming I was on MAINT or at least some id with class B privileges.

Looking further down the list, DASD 110, MVS110, is visible but is not
attached. I could immediately ATT 110 * 110 to do an INIT. Of course, I
might get some of my MVS peers honked off.

If an id has mdisks defined on a volume, it needs to be attached to the
system. If the id gets access to the system by attaching it to itself or
having it attached, then it cannot be attached to the system--it just needs
to be online.

Jim

At 01:34 PM 2/21/2006, you wrote:
>I'm sorry when I said devices I should have said current volumes (IE
>vol123,vol345,etc) need to be changed to volabc,voldef,etc). So I'm keeping
>the dev numbers the same I just want to unalloc those dev reformat them and
>give them to another user.
>thanks
>Mace

Jim Bohnsack
Cornell Univ.
(607) 255-1760
Schuh, Richard
2006-02-21 18:53:38 UTC
Permalink
In that case, if the devices ate attached to SYSTEM,DET devlist SYSTEM

Then ATT devlist *

After that, use CPFMTXA or some other program of your choice to LABEL the disks. After you have changed the volsers,

DET devlist *

If your virtual machines are linking to MDISKS defined on the disks,

ATT devlist SYSTEM

Ignore the above ATT if you are dedicating or attaching the disks to the users.

Regards,
Richard Schuh

-----Original Message-----
From: VM/ESA and z/VM Discussions [mailto:VMESA-***@LISTSERV.UARK.EDU] On Behalf Of Larry Macioce
Sent: Tuesday, February 21, 2006 10:35 AM
To: VMESA-***@LISTSERV.UARK.EDU
Subject: Re: question about removing devices

I'm sorry when I said devices I should have said current volumes (IE
vol123,vol345,etc) need to be changed to volabc,voldef,etc). So I'm keepi=
ng
the dev numbers the same I just want to unalloc those dev reformat them a=
nd
give them to another user.
thanks
Mace
Larry Macioce
2006-02-21 20:13:51 UTC
Permalink
Thank you,that's exactly whay I needed. Part of my problem is I know what I
want to do but when I look for a vm mvs correlation I can't find it.
Also , yes if you were to mess with the mvs packs you'd have 1 or 2 sys
progs upset. Well if you did it here you'd only have me to contend with,but
since I'm the only one here doing mvs,linux and vm I'd be fighting with
myself....Now I'm confusing myself.

Thanks again to all this is a great place

Mace
Loading...