SCLEAN(1)



NAME

     sclean - clean up dangling storage in a database


SYNOPSIS

     sclean [-d] [-s] database_name


DESCRIPTION

     sclean is a stand alone program that is called  on  occasion
     to  clean up any dangling dsds storage. Dangling storage can
     occur when a pe allocates dsds storage but never deallocates
     what  was  unused,  i.e.  the  pe  or  dsds_svc  crashed. It
     requires a password to run and is normally only run  by  the
     database administrator.

     sclean will get all the  entries  in  the  open_pe  database
     table. Each of these entries represent a pe that opened with
     dsds_svc but never closed.  For each entry, sclean will find
     the  read/write  partition  assigned  to  this  uid from the
     partn_alloc database table. It will then scan the wd for all
     subdirectories  that  are  not  archived and remove them and
     return the freed storage back to the  appropriate  partition
     in the partn_avail table.

     sclean will also free any delete pending entries that are on
     or past the expiration date if the -d is given.

     If sclean is run with the -s switch, it will only  sync  the
     partn_avail  database table according to what the df command
     shows as available storage on each disk partition.  However,
     if  an  entry  is currently opened as r/w in the partn_alloc
     table, then storage is in active use and sclean cannot  sync
     the available storage.

     sclean must currently be run when dsds_svc is  off-line.  It
     will  notify  you  and exit if it detects that a dsds_svc is
     active.



OPTIONS

     -d   The delete pending action flag. Also remove any  delete
          pending  directories that are on or past the expiration
          date.

     -s   The sync storage only flag. Sclean will only  sync  the
          partn_avail  storage  according  to  the  df  available
          storage.


EXAMPLES

     sclean -d mdi_1X


FILES

     none


SEE ALSO

     SOI-TN-109 "SSSC Implementation Version 1.0"


DIAGNOSTICS


BUGS


AUTHOR

     Jim Aloise


HISTORY

     1994-02-14     SOI Version 0.8