force unmount

 
SOLVED
Go to solution
Naveej.K.A
Honored Contributor

force unmount

Hello all,

HPUX 11i v2 initial release note says,

VERITAS File System (VxFS/HP OnlineJFS/JFS) 3.5: New version contains new and changed features, including new and/or enhanced tunable parameters, enhanced VxFS commands, new I/O error handling policy, new default intent log mode, new default system block size, VxFS system activity reporter, forced unmounts, and more. Enables creation of file systems up to 4 TB (maximum file size is 2 TB).


All the subsequent release notes confirms that the previous features are retained. Now coming to my question. I was trying to force unmount without much luck.

:/#->swlist |grep HPUX11i
HPUX11i-OE-Ent B.11.23.0609 HP-UX Enterprise Operating Environment Component
:/#->

OnlineJFS01 4.1.008 Online features of the VxFS File System

Now there are no references to the force unmount options in the umount (both 1m and 2) manpages. However the usage of the command suggests otherwise.

:/#->umount
usage: umount [-V] [-v] [-f] [-s] { special | directory }
umount [-F FStype] [-v] [-f] [-s] [-h host] -a
:/#->

I tried -f without much help. I am sure someone would have gotten to the bottom of it. I might be missing something!!!

Thanks in advance,
Naveej


practice makes a man perfect!!!
8 REPLIES 8
Jollyjet
Valued Contributor

Re: force unmount

Use this command to verify and kill any processes still attached to a mounted filesystem.

# fuser -cu /mount_point
# kill -9 pid

and then try unmount.
Naveej.K.A
Honored Contributor

Re: force unmount

Jolly,

I am aware of fuser -k and kill -9. Here I am specifically looking for the force unmount.

Thanks,
Naveej
practice makes a man perfect!!!
Jollyjet
Valued Contributor

Re: force unmount

Naveej

umount -f does not exist in hpux it exist in linux so manually you need to kill all the process.

# for F in `bdf|awk '$NF~/oracle/ {print $NF}`
> do
> umount ${F}
done



FYI: In the above example mount point is /oracle

you can try the above script I think which will help you.
Sameer_Nirmal
Honored Contributor
Solution

Re: force unmount

Does the FS belong to EMC BCVs etc or anything in particular?

Have you checked the vxumount(1M)?
This command has an option to un-mount forcefully the VXFS filsystem while it is busy.


Jollyjet
Valued Contributor
NMory
Respected Contributor

Re: force unmount

Check vxumount as suggested, but you need to remember that possible file corruption could be caused by this option.

NM
Naveej.K.A
Honored Contributor

Re: force unmount

Sameer,

vxumount works!!
(and I am aware of the possible FS corruption)

Cheers,
Naveej
practice makes a man perfect!!!
Naveej.K.A
Honored Contributor

Re: force unmount

Oh and ofcourse thanks for all your help.

Naveej
practice makes a man perfect!!!