Check Disk Space Q

September 25, 2009 at 05:01:16
Specs: Windows XP
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.


See More: Check Disk Space Q

Report •


#1
September 25, 2009 at 10:46:53
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


Report •

#2
September 28, 2009 at 01:20:05
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)


Report •

#3
September 28, 2009 at 11:01:55
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


Report •

Related Solutions

#4
September 28, 2009 at 11:05:07
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


Report •

#5
September 28, 2009 at 12:30:56
"If You want to show Your skills in simple arithmetics, then yes, that's right"

Thank you indeed for your very condescending remark

Report •

#6
December 12, 2011 at 09:27:27
$ dir/size/gran_total/full dk100:[000000...]*
the above command will give number of blocks used/total number of blocks

Report •

Ask Question