Automatically unmounting file systems for UNIX

Sometimes automounted file systems are automatically unmounted after a specified time. If a program attempts to access a file by the path it previously obtained using the pwd command or getwd system call and the file system has been unmounted, the file is not found. To avoid this problem, perform these steps.

Before you begin

If you did not set up CCM_HOME and PATH for user ccm_root during installation, set these environment variables now.

Procedure

  1. Set user to ccm_root.
    $ su - ccm_root
    Password: *****
  2. View the official path.

    The official path (DBPATH) is set when the database is created. Note the path name.

    $ ccmdb info database_path

    The information you receive looks like the following example:

    For Informix
    sargasso:ccm_root{3}ccmdb info /vol/sargasso1/ccmdb/base72
    VERSION=7.2
    PLATFORM=solaris
    DATABASE=informix
    HOSTNAME=sargasso
    ORHOST=sargasso
    DBPATH=/vol/sargasso1/ccmdb/base72/db
    PROTECT=unprotected
    ACTIVE=YES (database is active)
    FILELIMIT=
    CASE=PRESERVE
    SCHEMA=0114
    ACCELERATED=BUILT-IN:
    member_status, created_in, local_to, modifiable_in, platform,
    completed_in, crstatus, automatic_task_key, case_perserved_name
    For Oracle
    sargasso:ccm_root{3}ccmdb info /vol/sargasso1/ccmdb/base72
    VERSION=7.2
    PLATFORM=solaris
    DATABASE=oracle
    HOSTNAME=sargasso
    ORHOST=sargasso
    DBPATH=/vol/sargasso1/ccmdb/base72/db
    PROTECT=unprotected
    ACTIVE=YES (database is active)
    FILELIMIT=
    CASE=PRESERVE
    SCHEMA=0114
    ACCELERATED=BUILT-IN:
    member_status, created_in, local_to, modifiable_in, platform,
    completed_in, crstatus, automatic_task_key, case_perserved_name

    The path is specified by DBPATH. After you have created a database, check the messages from the create or unpack commands. The messages show the DBPATH set for the database. If the DBPATH is not set to an absolute path that all machines can recognize, use the ccmdb info command to change it.

  3. Exit from user ccm_root.

Feedback