|
System Maintenance - UNIX
| System maintenance, or clean up, is needed on every system. Some users have neglected system
maintenance and experience many problems that are directly related. It is very important to check
your disk space regularly. You will need to check the logical disk that MC resides on.
Disk Space At the UNIX prompt #, Type: df You may need to use df -f on some systems The system will display:
The first and second columns are the logical disk, the third is the total free blocks on the logical disk. The fourth is free inodes. The third column is the number that should be monitored for free blocks. Disk Optimization
MC recommends disk optimization utilities however, they are not readily available for UNIX machines. We are currently looking into several new products that have entered the market place and after extensive testing, we will be prepared to make a recommendation. Files that can be deleted in the mcadata directory: tm* Note: Do not delete these files when the system is in use! As data is entered, your file system grows. However, due to the dynamic nature of isam files, as data is deleted they do not shrink. Over time, data will be entered and deleted leaving areas with deleted records that cannot be used. For this reason, MC has developed a UNIX script to deal with this dilemma. On a periodic basis, the script reorgall should be run to clear disk space on your system. Depending upon your database, this will take from a few minutes to a few hours to run. What it physically does is run a reorg on all of your data files in the mcadata directory. In order to do this, the file is renamed and the reorg process begins. Because of this momentary duplication of files, there must be enough disk space to allow this or the operation will fail. In order to run this script, the user would need to have everyone out of the MC system and be logged as root. Backup the /mc/mcadata directory before proceeding. Type: cd/mc/mcadata (verify that you are in the mcadata directory using the pwd command.) Type: pwd Type: reorgall *.nx # cd/mc/mcadata syusrpass ICHOST COBOL Runtime System Revion 3.33 (DG/UX) ICREORG terminated successfully The reorgall will display the filename it is working on. It will return to the UNIX prompt # when done. |