Temporary directories (/tmp/vx.*) are not cleaned up after reboot

book

Article ID: 100007498

calendar_today

Updated On:

Description

Error Message

# ll -d /tmp/vx.*drwx------ 2 root root 96 Sep 4 10:46/tmp/vx.10092.29530.8676.1032drwx------ 2 root root 96 Sep 4 09:13/tmp/vx.11111.22592.6175.18994

Cause

The init scripts responsible for the tmp directories are:

  1. /sbin/init.d/vxrsyncd.sh
  2. /sbin/init.d/vras-vradmin.sh
  3. /sbin/init.d/vxnm-vxnetd.sh
  4. /sbin/init.d/vxvm-iscsi.sh

These scripts create a tmp directory, and then later do an "exit" without removing the directory. This happens when VxVM is installed but not configured, so the scripts will exit after discovering the lock file /etc/vx/reconfig.d/state.d/install-db exists.

Resolution

The init scripts should not exit using "exit", even in unexpected or error branches. Using "quit" will allow the script to quit gracefully and clean up the temporary files. This change will be included in the next available VxVM 5.0 patch.

 

Applies To

HP-UX  11.31 system using VxVM 5.0 or 6.0.

Issue/Introduction

If a HP-UX 11.31 system is installed with VxVM 5.0 or 6.0, but the VxVM is never configured/used, the system creates directories in /tmp that will never get removed.

Additional Information

ETrack: 2616451