Problem

Unable to unmount a filesystem on hpux

Solution

Use vxumount:

 NAME
      vxumount - unmount a VxFS file system

 SYNOPSIS
      vxumount [-o[force]] {special|mount_point}

 DESCRIPTION
      vxumount unmounts a currently mounted VxFS file system, which you can
      specify either as a mount_point or as special, the device on which the
      file system resides.

      Note: Only a privileged user can unmount file systems.

    Options
      vxumount recognizes the following option:

      -o        Specifies the VxFS-specific options in a comma-separated
                list.  The available argument is:

                force     Unmounts a VxFS file system even if it contains a
                          busy file.

                          If force is not specified, vxumount does not
                          unmount the file system if it contains a busy
                          file.  Programs that try to access files after a
                          file system is forcibly unmounted receive an EIO
                          error.

                          Caution: Using the force option can cause data
                          loss for open files.

Example:

# umount /opt/oracle
umount: cannot unmount /dev/vx/dsk/oradg/oravol : Device busy

# lsof /opt
# fuser /opt/oracle
/opt/oracle:

# umount /opt/oracle
umount: cannot unmount /dev/vx/dsk/oradg/oravol : Device busy

# vxumount -o force /opt/oracle

Leave a comment