Operating System - OpenVMS
1753664 Members
5856 Online
108798 Solutions
New Discussion юеВ

change disk label vms 7.3-1

 
SOLVED
Go to solution
Tim Nelson
Honored Contributor

change disk label vms 7.3-1

This should be easier than it is. Sorry for the simpleton question.

I have an unmounted disk labeled disk1. I also have a mounted disk called disk1. I would like to re-label the unmounted disk to something else. I see I can do this with the set volume/label= command but it only works when the volume is mounted. I cannot mount the first disk as the second disk already has the same name and a duplicate volid error would occur.

Any suggestions ? Clear as mud ?
7 REPLIES 7
Garry Fruth
Trusted Contributor
Solution

Re: change disk label vms 7.3-1

You should be able to mount one disk locally to your process, and the other group or system. You can change either one of them at that point.
Mike Smith_33
Super Advisor

Re: change disk label vms 7.3-1

If you mount the disk privately then you should be ok to change it.

mount /over=id $1$whatever

set volume/label=whatever $1$whatever

I have had to do this once or twice.
comarow
Trusted Contributor

Re: change disk label vms 7.3-1

Yes, just mount it privately and
mount/over-id
then set vol/label = yourlabel

You can't have two disks with the sanme label mounted in a system or cluster.
Tim Nelson
Honored Contributor

Re: change disk label vms 7.3-1

I guess I did not think of the obvious. So mounting privately does not conflict with the same label mounted to the cluster ?

Told you this was an easy one.

Thanks !!!
Uwe Zessin
Honored Contributor

Re: change disk label vms 7.3-1

The volume is differently represented in the name space of the lock manager and in the logical name space:
$ show logical DISK$*

If I recall correctly, cannot try this out now, the volume protection is also different:
$ show device /full d...

But that's not a real protection as somebody with massive privileges can bypass a private mount.

-----

This ability can also be a mis-feature as I found out the hard way:
- had a system disk with label A
- had another (system) disk with label A, too
- booted from first system disk
- privately mounted second disk
- did a PRODUCT INSTALL with files from second disk

** poof ** corruped the second disk, because PCSI used the mount logical name DISK$A and the first entry was in the process logical name table pointing to the second disk :-(

Oh well, you can never have enough backups...
.
Tim Nelson
Honored Contributor

Re: change disk label vms 7.3-1

Thanks everyone.

Cheers.
Tim Nelson
Honored Contributor

Re: change disk label vms 7.3-1

mount privately