Operating System - HP-UX
1834628 Members
3854 Online
110069 Solutions
New Discussion

Unable to umount (umount -f was still failed)

 
SOLVED
Go to solution
Cray
Frequent Advisor

Unable to umount (umount -f was still failed)

root@erpap:/ >grep dbfs /etc/mnttab
/dev/vg02/lvol1 /dbfs vxfs ioerror=mwdisable,largefiles,delaylog,nodatainlog
,dev=40020001 0 0 1251909559
root@erpap:/ >umount -fv /dbfs
usage: umount [-V] [-v] { special | directory }
umount [-F FStype] [-v] -a
umount: return error 1.

====================================
Is there another way to umount /dbfs forcely other than reboot the whole system??
9 REPLIES 9

Re: Unable to umount (umount -f was still failed)

Well the error message kind of indicates it doesn't recongnise the "-f" option. What version of HP-UX is this - I'm pretty sure that the "-f" option for VxFS filesystems was only introduced in 11.31 (even then it may only be availble with Online JFS - do you have that?)

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Turgay Cavdar
Honored Contributor
Solution

Re: Unable to umount (umount -f was still failed)

Use:
vxumount -o force /dbfs


or check with fuser and kill processes and use umount /dbfs
Cray
Frequent Advisor

Re: Unable to umount (umount -f was still failed)

# vxumount -o force /dbfs
vxfs vxumount: V-3-25255: vxumount: You don't have a license to run this program

-------------
What license should I have to run this program?
Turgay Cavdar
Honored Contributor

Re: Unable to umount (umount -f was still failed)

You need OnlineJFS to use vxumount, it seems you dont have. Try to determine process holding mount point:

#fuser -cu /dbfs

If it is ok then kill this process, then finally unmount:

#umount /dbfs
Dennis Handly
Acclaimed Contributor

Re: Unable to umount (umount -f was still failed)

>What license should I have to run this program?

I would suspect Online JFS?
Hakki Aydin Ucar
Honored Contributor

Re: Unable to umount (umount -f was still failed)

Which version of HP-UX OS do you have ?
Because commands are slightly different from version to version.

Apparently you have 11i v1 ?

Check man umount to see each options

then again you cannot umount ;

use

fuser -cu /dbfs OR
lsof /dbfs

and

kill -9 PID_you_found_related_with_your_FS
Cray
Frequent Advisor

Re: Unable to umount (umount -f was still failed)

Since the file system is broken, it is not suggested to run any command related to /dbfs, including fuser.

fuser, bdf, glance, cd /dbfs .. such command will just hang, and the processes are unable to be killed at all.

OS version is 11.31. And, "man 1M umount" shows "-f" option. However, there's no Online JFS installed.

It looks that the only solution is reboot without purchase Online JFS.
mohamed.bouraoui
Frequent Advisor

Re: Unable to umount (umount -f was still failed)

Dear Cray,
you have 2 ways to do it,
the first you can use fuser -ku /directory when K meens kill all process related to this directory
teh second use lsof /directory, it list all the process related to this directory and use kill -9 pid of those process.
good luck
Cray
Frequent Advisor

Re: Unable to umount (umount -f was still failed)

Thanks mohamed.bouraoui for your reply.

The disk was one snapshot of EVA BC. And, I deleted the snapshot before umounted the file system, and it caused the file system hanged.

No command will be able to umount it later only if Online JFS is installed.

No matter fuser, lsof, ... is used...