HPlogo Performing System Operation Tasks: 900 Series HP 3000 Computer Systems > Chapter 2 Managing Disk Drives

Monitoring Disk Space

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

DISCFREE is a utility that you can use to determine the amount of free space on a disk. You can enter any of the following commands to invoke the DISCFREE utility:

  • DISCFREE

  • RUN DISCFREE.PUB.SYS;INFO="[format][,ldev]"

  • DISCFREE [format]

Format values include the following:

AShows numbers of blocks by size categories.
BShows transient and free space allocations in sectors.
CShows transient and free space allocations in percentage of total device capacity.
DShows disk allocation summary in sectors.
EShows disk allocation summary in percentage of total space.

The DISCFREE utility provides five types of reports:

  • Histogram

  • Allocation

  • Allocation format 2

  • Summary

  • Summary format 2

To monitor your disk space

Enter:

   DISCFREE Return

The system responds with a copyright statement and the following prompt:

DISCFREE A.01.02 Copyright (C) Hewlett-Packard 1989.  All rights reserved.

  TUE, FEB 13, 1991,  3:02 PM

 



Syntax is: DISCFREE [<format>][,<ldev>]

 

 Where <format> is one of the following:

   A, HISTOGRAM, 1: to see a histogram.

   B, ALLOCATION, 2: to see disc allocation.

   C, ALLOCATION2, 3: to see disc allocation format 2.

   D, SUMMARY, 4: to see disc allocation summary.

   E, SUMMARY2, 5: to see disc allocation summary format 2.

 

<ldev> is the logical device number of a disc.

 

Enter [<format>][,<ldev>] :_

To skip the copyright statement and the above prompt, enter a format value with the command as follows:

   DISCFREE A

To see distribution of disk space

To see the distribution of disk space with blocks of contiguous space (blank sectors that are adjacent to each other), use format value A. The resulting histogram groups these blank sectors according to size.

LDEV :     1 -- (MPEXL_SYSTEM_VOLUME_SET:MEMBER1)

 

LARGEST FREE AREA:       527984  TOTAL FREE SPACE:     546784

 

     0 BLOCK(S) OF      1-     9 CONTIGUOUS SECTORS =       0 FREE SECTORS.  0%

    19 BLOCK(S) OF     10-    99 CONTIGUOUS SECTORS =     704 FREE SECTORS.  0%

     7 BLOCK(S) OF    100-   999 CONTIGUOUS SECTORS =    1856 FREE SECTORS.  0%

     8 BLOCK(S) OF   1000-  9999 CONTIGUOUS SECTORS =   16240 FREE SECTORS.  3%

     0 BLOCK(S) OF  10000- 99999 CONTIGUOUS SECTORS =       0 FREE SECTORS.  0%

     1 BLOCK(S) OF 100000-AND UP CONTIGUOUS SECTORS =  527984 FREE SECTORS. 97%

 

-------------------------------------------------------------------------------

LDEV :     2 -- (MPEXL_SYSTEM_VOLUME_SET:MEMBER2)

 

LARGEST FREE AREA:      1115936  TOTAL FREE SPACE:    1177824

 

     0 BLOCK(S) OF      1-     9 CONTIGUOUS SECTORS =       0 FREE SECTORS.  0%

    19 BLOCK(S) OF     10-    99 CONTIGUOUS SECTORS =     944 FREE SECTORS.  0%

    17 BLOCK(S) OF    100-   999 CONTIGUOUS SECTORS =    5328 FREE SECTORS.  0%

     3 BLOCK(S) OF   1000-  9999 CONTIGUOUS SECTORS =    8800 FREE SECTORS.  1%

     2 BLOCK(S) OF  10000- 99999 CONTIGUOUS SECTORS =   46816 FREE SECTORS.  4%

     1 BLOCK(S) OF 100000-AND UP CONTIGUOUS SECTORS = 1115936 FREE SECTORS. 95%

To free disk space by creating a tape

If there is not enough free space on the disks, you create space as follows. Create a tape of the existing spoolfiles and delete the spoolfiles from the system.

  1. Enter:

       FILE BACKUP;DEV=TAPE Return
    
    
    
       STORE @;OUT.HPSPOOL;*BACKUP;PURGE;SHOW Return
    

    FILE BACKUP;DEV=TAPE defines a file named "BACKUP" in class "TAPE". STORE @.@ outputs files for all users and accounts, and PURGE removes the spoolfiles from the system once each has been copied to the tape.

  2. Mount the tape and reply to the tape request.

    The system displays the data for each file as it is written to the tape:

    #FILE  #JOB  DEV/CL  SECTORS  OWNER
    
    
    
    #0379  #J9   LP          100  MANAGER.SALES
    
    #0451  #J2   LP           40  MANAGER.SALES
    
    #0453  #J3   LP           40  MANAGER.SALES
    
    #0454  #J4   LP           40  MANAGER.SALES
    
    #0455  #J5   LP           40  MANAGER.SALES
    
    #0456  #J6   LP          144  MGR.TEMPACCT
    
  3. Verify that all files were purged from the system by entering:

       LISTSPF @ Return
    

    If no spoolfiles are listed, all the files were purged. Remove the tape from the tape drive and label it.

Feedback to webmaster