View previous topic :: View next topic
|
Author |
Message |
robyjhl
New User
Joined: 29 Oct 2019 Posts: 2 Location: venezuela
|
|
|
|
Hi, I need to change the name of a disk or dasd volume. Can somebody help me. Example the volume is called abc123 and I want to rename it by cde123. Thank you |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2144 Location: USA
|
|
|
|
robyjhl wrote: |
Hi, I need to change the name of a disk or dasd volume. Can somebody help me. Example the volume is called abc123 and I want to rename it by cde123. Thank you |
Only system support staff is allowed to do this.
Based on your terminology, you have no idea who they are, isn't it? |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
As sergeyken says, only systems support should alter the volume serial of a disk volume. Us dinosaurs call this "clipping" the volume. Don't ask me why. If I ever knew, it's been long forgotten.
It's more complicated than it appears.- Every cataloged data set on the volume has to be re cataloged with the new volume serial.
- If the volume is shared with other systems you have to be sure the other systems know about it.
- Any data set on the volume with a RACF "discrete" profile has to have its profile altered to reflect the new volume.
|
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 734 Location: Denmark
|
|
|
|
I will say 'dont do that'. As pointed out above you will have issues with catalog, VVDS, VTOC index etc etc.
I would create a new volume and use ADRDSSU to move datasets across.
Unless it is empty, in which case you can use the ICKDSF REFORMAT command. |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
Mr. Jensen is correct. I completely forgot the VTOC index. To be honest I have no idea about how to deal with the VVDS. Mr. Jensen's idea to copy the data sets on the volume to a new volume with the correct volume serial may be the most practical way to proceed. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1337 Location: Bamberg, Germany
|
|
|
|
From our shops catalog tool, some hints what would be necessary..
The following functions will be performed:
- Allocate and Reserve VTOC
- Rename of SYS1.VVDS.Voldvol to SYS1.VVDS.Vnewvol
- Rename of VVDS self describing record
- Rename of SYS1.VTOCIX.oldvol to SYS1.VTOCIX.newvol
- Vary device offline
- Deallocate VTOC and Deq
- Wait for device to get offline
- Use ICKDSF to reformat
- Vary device online
- Allocate and Reserve VTOC
- Import connect catalogs if residing on volume
- Change volser in catalog records
- Change volser in F1-Dscb's
- Change volser in F1-Dscb's for cataloged multivol datasets
- Deallocate VTOC and Deq
- Delete SYS1.VVDS.Voldvol from catalogs defined in VVCR of VVDS
- Define SYS1.VVDS.Vnewvol to catalogs defined in VVCR of VVDS
Don't try unless you know what you are doing. |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 734 Location: Denmark
|
|
|
|
I think that you need one important step at the front - full volume backup. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1337 Location: Bamberg, Germany
|
|
|
|
Quote: |
I think that you need one important step at the front - full volume backup. |
I implied that but it's worth to mention it explicitly. As always have a current backup at hand. |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
There are two items in Joerg.Findeisen's long list that I regard as both unnecessary and impossible, in any event, namely
- Change volser in F1-Dscb's
- Change volser in F1-Dscb's for cataloged multivol datasets
I've never known why the volume serial is stored in the F1 DSCB, I've never encountered a use for it, and I know no binary API to change it. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1337 Location: Bamberg, Germany
|
|
|
|
I don't see why changing the Data Set Serial in F1 DSCB should be unnecessary. IDCAMS DCOLLECT will pick exactly this value (along with the Volume Serial) when extracting Data.
If an official API exists to do that is unknown to me. However, as I said, our shops Catalog/DASD/VVDS tool is able to adjust it to the correct values/names after the Clip. |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 734 Location: Denmark
|
|
|
|
Quote: |
our shops Catalog/DASD/VVDS tool |
which reminds me of a pont I forgot to make. If you embark on such a project I strongly recommend that you invest in a product to help you. I have used Catalog Recovery Plus to do some of the stuff that has been mentioned, nowadays perhaps it can do it all. And I am sure that competing products can do the same. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2144 Location: USA
|
|
|
|
robyjhl wrote: |
Hi, I need to change the name of a disk or dasd volume. Can somebody help me. Example the volume is called abc123 and I want to rename it by cde123. Thank you |
It resembles me another question in a public forum:
Quote: |
Hi, I need to test validity of some expired nuclear explosives stored in my company for years. Can somebody help me. Example one nuclear bomb is called abc123 and I want to test if it is possible to transport it to new location: is it safe enough, or the unit would explode? Thank you |
|
|
Back to top |
|
|
|