Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

OpenVMS system disk FULL

 
SOLVED
Go to solution
smsc_1
Regular Advisor

OpenVMS system disk FULL

Hello community, I have a problem with OVMS system disk, I tried to search files greater then 50000 blocks, and delete them, but I'm still at 2% free.

DIRECTORY /SELECT=SIZE=MIN=50000 SYS$SYSDEVICE:[*...]

Device          Volume Label    Used Blocks     Free Blocks   Tot/Blks    
------------  ------------     -------------     -------------    --------   
DSA0:         IA64VMSSYS     282434976 (98%)     4314512 (  2%)   286749488

I really don't understand which is the directory or files who occupied such spaces.

Could you please help to free up space??

Thank you

Lucas

./ Lucas
2 REPLIES 2
Steven Schweda
Honored Contributor
Solution

Re: OpenVMS system disk FULL

> DIRECTORY /SELECT=SIZE=MIN=50000 SYS$SYSDEVICE:[*...]

   You don't need large files to fill a disk; many small files will do
the job just as well (if not better).

   I don't know if some existing tool would help with this, but a small
DCL script might be useful:

ITS $ type dirsiz.com
$!                                              2018-10-08 SMS.
$! DIRE /GRAND for all directories in P1
$! Default: sys$sysdevice:[000000]
$!
$ dir0 = p1                                     ! Top dir.
$ if (dir0 .eqs. "")
$ then
$    dir0 = "sys$sysdevice:[000000]"            ! Default P1.
$ endif
$!
$ top:
$    dir = f$search( dir0+ "*.dir")             ! Next directory.
$    if (dir .eqs. "") then goto bot            ! Done.
$    dir1 = f$parse( dir, , , "name")           ! Ignore "[000000]"
$    if (dir1 .nes. "000000")
$    then
$       dirs = dir0- "]"+ "."+ dir1+ "...]"     ! Form subdir spec.
$       write sys$output "--------"             ! Spacer.
$       write sys$output dirs                   ! Show subdir spec.
$       dire /size = allo /grand 'dirs'         ! DIRE command.
$    endif
$    goto top                                   ! Loop.
$ bot:
$!

   If that script finds a big directory, then you could re-run it,
specifying the big directory:

      @ dirsiz.com sys$sysdevice:[ANONYMOUS]

smsc_1
Regular Advisor

Re: OpenVMS system disk FULL

Thank you Steven, your script is great!!!

After long analysis I discovered the directory/file who filled the disk:

Directory SYS$SYSDEVICE:[000000.SYS0.SYSCOMMON.HP.NODES.SMWIZ2.SVCTOOLS.SPECIFIC.WEBES.LOGS]

DESTA_DIR.LOG;2               File ID:  (25842,1746,0)        
Size:    227971719/227982384  Owner:    [SYSTEM]
Created:     5-SEP-2018 13:07:31.46
Revised:     5-SEP-2018 13:07:31.46 (0)
Accessed:    5-SEP-2018 13:07:31.46
Attributes:  5-SEP-2018 13:07:31.46
Modified:    5-SEP-2018 13:07:31.46
Linkcount:  1
File organization:  Sequential
Shelved state:      Online
Caching attribute:  Writethrough
File attributes:    Allocation: 227982384, Extend: 0, Global buffer count: 0, Version limit: 2
File protection:    System:RWED, Owner:RWED, Group:RWED, World:

Total of 1 file, 227971719/227982384 blocks.

I deleted this file (it was old log file) and now I got all the space:

Device          Volume Label    Used Blocks     Free Blocks   Tot/Blks    
------------  ------------     -------------     -------------    --------   
DSA0:         IA64VMSSYS      45387232 (15%)   241362256 ( 85%)   286749488

I don't know why this old file take so much space, it was impossible to analyze it, anyway the newer version seems ok.

Thank you very much!

Lucas

 

./ Lucas