- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Disk space allocation
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2004 02:14 AM
01-23-2004 02:14 AM
The show dev d /mount command gives me the currently free count and the output is great to work with, i.e. line by line space separated. The one additional item I need is total allocated to that disk / file system. I would love something that looked like a bdf or df -k output.
I apologize if I have missed the easy answer in the doc or help.
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2004 02:20 AM
01-23-2004 02:20 AM
Solutionand F$GETDVI("devicename","MAXBLOCKS")
for example of use see
http://dcl.openvms.org/stories.php?story=04/01/11/4165701
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2004 02:22 AM
01-23-2004 02:22 AM
Re: Disk space allocation
If I could give you 100 pts I would.
Thanks !!!! Have a great weekend.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2004 02:24 AM
01-23-2004 02:24 AM
Re: Disk space allocation
See the online help for lexical f$getdvi . You can extract many more information about the disk.
$help lexical f$getdvi
HTH,
Best regards,
Lokesh Jain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2004 02:30 AM
01-23-2004 02:30 AM
Re: Disk space allocation
As you can tell I am an HPUX guy but not yet a VMS guy.
Thanks for the direction.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2004 03:08 AM
01-23-2004 03:08 AM
Re: Disk space allocation
Using the lexical f$getdvi in a DCL script is definetly the VMS style / native solution.
Btw... be sure to check out lexical f$device to get you a list of intereting (mounted!) deviced to loop through.
If you want to solve the problem more in a unix style then just use SHOW DEV/FULL/MOUN
and parse for "Total blocks 999999"
and "Free blocks 99999".
btw... I suspect that the 'real problem' you are trying to solve has been solved many times before, both in freeware and commercial packages. Still... this could be a fun excersize to get into VMS!
Enjoy,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2004 03:10 AM
01-23-2004 03:10 AM
Re: Disk space allocation
Thanks for the tips!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2004 03:13 AM
01-23-2004 03:13 AM
Re: Disk space allocation
pipe show dev/mount/fu | sear sys$input "Total blocks","Free blocks","Disk"
(or I guess this could be done in perl with the VMS::getdvi module)
but you don't want to do that do you :-)
Write some DCL using F$GETDVI - its fun and educational!
See http://dcl.openvms.org for examples.
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2004 03:34 AM
01-23-2004 03:34 AM
Re: Disk space allocation
Instead of stuggling the ins and outs with DCL scripting I am going to run some remote shells from a UNIX system to VMS so I can take the output and send it through awk so I can get some quick reporting done.
Someother day will be spent learning DCL.
Thanks !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2004 03:48 AM
01-23-2004 03:48 AM
Re: Disk space allocation
http://vms.process.com/scripts/fileserv/fileserv_search.exe?package=GAWK&description=&author=&system=Either&language=All&RD=&RM=&RY=
or, as I said you can do it in perl using the VMS::getdvi module
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2004 03:49 AM
01-23-2004 03:49 AM
Re: Disk space allocation
Thanks !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2004 04:04 AM
01-23-2004 04:04 AM
Re: Disk space allocation
http://h71000.www7.hp.com/freeware/freeware60/perl-5_8_1/
Use the VMS::Device module (included in above)
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2004 04:39 AM
01-23-2004 04:39 AM
Re: Disk space allocation
$ gawk :== $ sys$common:
It is a strange idea to put it in the Snmp examples directory, but it is available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2004 04:51 AM
01-23-2004 04:51 AM
Re: Disk space allocation
python for Vms is available at
http://vmspython.dyndns.org/
see too
http://www.ferg.org/python_presentations/python_intro_for_managers.ppt
> http://www.ferg.org/python_slides/index.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2004 02:04 AM
01-27-2004 02:04 AM
Re: Disk space allocation
SPACE.COM is activated at a terminal(-session). It presents an overview of disk usage 1 line per disk.
MONITOR_DEVICES.COM can also be run at a terminal session, but it is INTENDED to be ran in a MOTIF display window. It presents disk usage as a percentage bar, but also checks clusterwide mount statusses & shadow statusses. Non-nominal situations are highlighted.
It also gives management a nice 'moving picture', so they can show 'everything is permanently under control' (which it actually DOES help with!).
Try if you like it, and DO let me know if you run into a configuration that is NOT covered.
Enjoy.
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2004 03:30 AM
01-27-2004 03:30 AM
Re: Disk space allocation
I don't know a method for retrieving this info in DCL so I try to create a contiguous file of 10.000 blocks every 30 minutes on almost every disk. If that fails : alarm.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2004 06:21 PM
01-27-2004 06:21 PM
Re: Disk space allocation
Possibly, DFU (freeware as well) may show the same issues (and defragments as well).
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2004 08:05 PM
01-27-2004 08:05 PM
Re: Disk space allocation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2004 02:39 AM
01-28-2004 02:39 AM
Re: Disk space allocation
Cluster members have freeblock caches and the xqp will tell the other nodes to give back the free block cache before failing a request. [hmmm... not 100% sure it does this for lack of contig space]
Also... conceivably, if you fail to allocate the big file, then maybe you could release one of a few 'spare' contig space you pre-allocated and really soudn the alarm if you find your spares already released? ( $DELE dev:[000000]contig.tmp. )
groetjes,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2004 12:56 PM
02-06-2004 12:56 PM
Re: Disk space allocation
DISK_CAPACITY.COM
It produces a formatted report in GB. I have other variants if you really want it in blocks...
It also handles volume sets correctly.
Regards,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2005 04:44 AM
07-21-2005 04:44 AM