Computing.Net > Forums > OpenVMS > Check Disk Space Q

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Check Disk Space Q

Reply to Message Icon

Name: Seanie
Date: September 25, 2009 at 05:01:16 Pacific
OS: Windows XP
Subcategory: General
Comment:

I'm a novice, but was wondering how I can check the available disk space (unused). I've tried:-

$ dir/size/gran_total dk100:[000000...]*

But this only gives me below and I'm not really sure what this tells me:-

Grand total of 72 directories, 16231 files, 7208174 blocks.



Sponsored Link
Ads by Google

Response Number 1
Name: Joseph.Huber
Date: September 25, 2009 at 10:46:53 Pacific
Reply:

dir/size/gran_total gives You what it says: the total number of files and space used by all files.
if the disk has alias directories and files, then those aliases are also added, i.e. the sum may be higher than the real space used.

To see the net space availabe and used, the command
show device/full dka100:
will show amongst other items the total disk size and the size of free space in blocks.
1 block = 1/2 KBytes.
A short show device dka100: just gives the number of blocks free.

You may be interested in DCL procedures showing free/used space of all disks. look in
http://dcl.openvms.org
or get the one I use on my system:
http://wwwvms.mppmu.mpg.de/vms$comm...

Joseph Huber, http://www.huber-joseph.de
ITRC


0

Response Number 2
Name: Seanie
Date: September 28, 2009 at 01:20:05 Pacific
Reply:

Thanks for your reply. From what I can interpret from the detail:-

Total Blocks = 8380080
Free Blocks = 503712

My system is about 9 years old, so is it reasonable to say I am using 931,120 blocks per year? (8380080 / 9)


0

Response Number 3
Name: Joseph.Huber
Date: September 28, 2009 at 11:01:55 Pacific
Reply:

If You want to show Your skills in simple arithmetics, then yes, that's right.

On the other hand, all the files have been created at the beginning, and not much since then, then the simple arithmetic is wrong.

To make real statististics, You would have to show the file creation dates (dir/date/size [...]), and sum up the sizes for each year (write a DCL procedure with an f$search() loop, getting creation date and size using f$file(file,"ALQ") and f$file(file,"CDT"), and sum up the ALQ values to the year given by the CDT date).

What is Your real question ? The disk is almost full, and if You need to create files on a regular rate, then You should acquire an additional disk within half a year!

Joseph Huber, http://www.huber-joseph.de
ITRC


0

Response Number 4
Name: Joseph.Huber
Date: September 28, 2009 at 11:05:07 Pacific
Reply:

Sorry, in the above reply I meant
IF all the files have been created at the beginning ...

Joseph Huber, http://www.huber-joseph.de
ITRC


0

Response Number 5
Name: Seanie
Date: September 28, 2009 at 12:30:56 Pacific
Reply:

"If You want to show Your skills in simple arithmetics, then yes, that's right"

Thank you indeed for your very condescending remark


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon





Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Check Disk Space Q

clear disk space www.computing.net/answers/openvms/clear-disk-space/492.html

file size information www.computing.net/answers/openvms/file-size-information/447.html

Print Queue www.computing.net/answers/openvms/print-queue/494.html