Discussion:
Disk size in the virtual world
(too old to reply)
Arne Vajhøj
2024-02-24 03:19:37 UTC
Permalink
So I tried to increase the size of a virtual disk
from 20 GB to 30 GB.

And I ended up with:

Total blocks 62914560
Logical Volume Size 41943040

Which is really rather logical. The file system
was created for 20 GB. But obviously not what I want.

I assume that backup + init + restore will fix it,
but are there any easier way of doing it?

ODS-5 on VMS 9.2-2 on VMWare Player if it matters.

Arne
Volker Halle
2024-02-24 06:06:59 UTC
Permalink
Post by Arne Vajhøj
So I tried to increase the size of a virtual disk
from 20 GB to 30 GB.
Total blocks            62914560
Logical Volume Size     41943040
Which is really rather logical. The file system
was created for 20 GB. But obviously not what I want.
I assume that backup + init + restore will fix it,
but are there any easier way of doing it?
ODS-5 on VMS 9.2-2 on VMWare Player if it matters.
Arne
Arne,

after the appropriate preparation, an OpenVMS volume can be extended
dynamically (it's called DVE = Dynamic Volume Expansion).

First check the volume expansion limit with

$ SHOW DEV/FUL DKAx:
...
Logical Volume Size nnn Expansion Size Limit nnn

If your desired new volume size is less than the Expansion Size Limit,
you can simply extend the disk online with:

$ SET VOLUME/SIZE DKAx:

If the current Expansion Size Limit is too small, you need to increase
it. This can ONLY be done while the disk is mounted privately:

$ SET VOLUME/LIMIT DKAx:

You can then re-mount the disk system-wide and actually extend it with
SET VOLUME/SIZE DKAx:

Volker.

PS: copied from my answer in ITRC back from 2006 ;-)
https://community.hpe.com/t5/operating-system-openvms/expanding-extending-eva-volume-on-openvms/td-p/3823829
Arne Vajhøj
2024-02-24 12:57:15 UTC
Permalink
Post by Volker Halle
Post by Arne Vajhøj
So I tried to increase the size of a virtual disk
from 20 GB to 30 GB.
Total blocks            62914560
Logical Volume Size     41943040
Which is really rather logical. The file system
was created for 20 GB. But obviously not what I want.
I assume that backup + init + restore will fix it,
but are there any easier way of doing it?
ODS-5 on VMS 9.2-2 on VMWare Player if it matters.
after the appropriate preparation, an OpenVMS volume can be extended
dynamically (it's called DVE = Dynamic Volume Expansion).
First check the volume expansion limit with
...
Logical Volume Size nnn Expansion Size Limit nnn
If your desired new volume size is less than the Expansion Size Limit,
If the current Expansion Size Limit is too small, you need to increase
You can then re-mount the disk system-wide and actually extend it with
PS: copied from my answer in ITRC back from 2006 ;-)
https://community.hpe.com/t5/operating-system-openvms/expanding-extending-eva-volume-on-openvms/td-p/3823829
Worked perfectly. Thanks.

I wonder when this was added to VMS.

It is not relevant for physical disks. But it must have
turned relevant when SAN's were introduced.

Arne
Scott Dorsey
2024-02-24 13:24:23 UTC
Permalink
Post by Arne Vajhøj
I wonder when this was added to VMS.
It is not relevant for physical disks. But it must have
turned relevant when SAN's were introduced.
It is very relevant to physical disks. You install a new bigger disk, and
you copy the fileystem over and expand it once it's copied over. This is
much, much faster than doing a file-by-file copy.
--scott
--
"C'est un Nagra. C'est suisse, et tres, tres precis."
Arne Vajhøj
2024-02-24 13:30:22 UTC
Permalink
Post by Scott Dorsey
Post by Arne Vajhøj
I wonder when this was added to VMS.
It is not relevant for physical disks. But it must have
turned relevant when SAN's were introduced.
It is very relevant to physical disks. You install a new bigger disk, and
you copy the fileystem over and expand it once it's copied over. This is
much, much faster than doing a file-by-file copy.
"copy filesystem" is that BACKUP/PHYS or?

Arne
Scott Dorsey
2024-02-24 16:17:53 UTC
Permalink
Post by Arne Vajhøj
Post by Scott Dorsey
Post by Arne Vajhøj
I wonder when this was added to VMS.
It is not relevant for physical disks. But it must have
turned relevant when SAN's were introduced.
It is very relevant to physical disks. You install a new bigger disk, and
you copy the fileystem over and expand it once it's copied over. This is
much, much faster than doing a file-by-file copy.
"copy filesystem" is that BACKUP/PHYS or?
Yes, or a DD equivalent. Or using Clonezilla (which doesn't know anything
about the VMS filesystem so will just do a dd).
--scott
--
"C'est un Nagra. C'est suisse, et tres, tres precis."
Volker Halle
2024-02-24 14:27:33 UTC
Permalink
Post by Arne Vajhøj
I wonder when this was added to VMS.
Dynamic volume expansion (DVE) feature introduced in OpenVMS Alpha
Version 7.3–2

Volker.
Chris Townley
2024-02-25 14:20:58 UTC
Permalink
Post by Volker Halle
Post by Arne Vajhøj
I wonder when this was added to VMS.
Dynamic volume expansion (DVE) feature introduced in OpenVMS Alpha
Version 7.3–2
Volker.
Can this be used on a system disc on KVM/QEMU?
Presumably after expanding the filesystem, I would need to from the
install image, go to DCL to then do the extension
--
Chris
Arne Vajhøj
2024-02-25 15:00:06 UTC
Permalink
Post by Chris Townley
Post by Volker Halle
Post by Arne Vajhøj
I wonder when this was added to VMS.
Dynamic volume expansion (DVE) feature introduced in OpenVMS Alpha
Version 7.3–2
Can this be used on a system disc on KVM/QEMU?
Presumably after expanding the filesystem, I would need to from the
install image, go to DCL to then do the extension
I did it on the system disk after booting from it.

The PC did not explode.

Arne
Chris Townley
2024-02-25 19:28:59 UTC
Permalink
Post by Arne Vajhøj
Post by Chris Townley
Post by Volker Halle
Post by Arne Vajhøj
I wonder when this was added to VMS.
Dynamic volume expansion (DVE) feature introduced in OpenVMS Alpha
Version 7.3–2
Can this be used on a system disc on KVM/QEMU?
Presumably after expanding the filesystem, I would need to from the
install image, go to DCL to then do the extension
I did it on the system disk after booting from it.
The PC did not explode.
Arne
That all worked nicely - thanks
--
Chris
Loading...