Operating System - HP-UX
1844118 Members
2767 Online
110227 Solutions
New Discussion

cannot umount a filesytem

 
wvsa
Regular Advisor

cannot umount a filesytem

Greetings all;

Have a mount point that I cannot umount, hpux 11.11 returns device busy. Have run fuser and lsof in order to determine who/what is accessing the mount point and both fuser and lsof return with no references to the mount point. Running the latest version of lsof. What am I not seeing?

Thanks for your input.

17 REPLIES 17
IT_2007
Honored Contributor

Re: cannot umount a filesytem

check you pwd and you may be sitting on it.

cd /
then try fuser -cu /mountpint
or lsof /mountpoint

Pupil_1
Trusted Contributor

Re: cannot umount a filesytem


Are you saying that the fuser -cu / did not give any output? If there are any process, then the PID is returned.

try from / the command
fuser -k /
and this should kill the process using the mount point.

There is always something new to learn everyday !!
spex
Honored Contributor

Re: cannot umount a filesytem

Hi,

# showmount -d

will show you directories that have been remotely mounted along with clients.

PCS
Steven E. Protter
Exalted Contributor

Re: cannot umount a filesytem

Shalom,

There is probably an open process in the directory.

fuser -cuk /mountpoint

Be careful, you can easily kill a system with the above commmand.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Victor BERRIDGE
Honored Contributor

Re: cannot umount a filesytem

Hi
Well the only case I know when no one is accessing a mount point AND you cant unmount it is when there is another mount point somewhere in the files system e.g:
/dev/vg00/lvol6 3481600 2502093 918753 73% /opt
/dev/esvg03/lvol10 3080192 2148458 873564 71% /opt/sas/9.1.3


You will never manage to unmount /opt until /opt/sas/9.1.3 is unmounted....

All the best
Victor
Sp4admin
Trusted Contributor

Re: cannot umount a filesytem

Hi wvsa,

Check to make sure your not cd into the direcroty. You should be able to use the fuser command. also, you need to make sure it's a mount point that can be umounted.

#fuser -cu /mountpont

sp,
wvsa
Regular Advisor

Re: cannot umount a filesytem

All;

THanks for your inputs, however I still cannot unount the directory even after trying your suggestions. Any other thoughts?
Pupil_1
Trusted Contributor

Re: cannot umount a filesytem

what's the bdf o/p and does the mount point appear in it?
There is always something new to learn everyday !!
wvsa
Regular Advisor

Re: cannot umount a filesytem

Here is the bdf output for the problem mount point /nsp_mart
# bdf /nsp_mart
Filesystem kbytes used avail %used Mounted on
/dev/vgsasd/lvnsp 269139968 226211568 42593112 84% /nsp_mart
IT_2007
Honored Contributor

Re: cannot umount a filesytem

Here is the bdf output for the problem mount point /nsp_mart
# bdf /nsp_mart
Filesystem kbytes used avail %used Mounted on
/dev/vgsasd/lvnsp 269139968 226211568 42593112 84% /nsp_mart
====================

Can you post first 30 lines
lvdisplay -v /dev/vgsasd/lvnsp

it seems PV may not be in available state?
Pupil_1
Trusted Contributor

Re: cannot umount a filesytem

I'm assuming that there is some process running from /nsp_mart and that is causing the trouble. You can find to closly look at the ps -ef o/p to look for any clues.
There is always something new to learn everyday !!
wvsa
Regular Advisor

Re: cannot umount a filesytem

Here is the lvdisplay output, looks good to me.

# lvdisplay -v /dev/vgsasd/lvnsp | more
--- Logical volumes ---
LV Name /dev/vgsasd/lvnsp
VG Name /dev/vgsasd
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 262832
Current LE 16427
Allocated PE 16427
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c36t7d7 6398 6398
/dev/dsk/c36t8d0 6398 6398
/dev/dsk/c36t8d1 3631 3631

--- Logical extents ---
LE PV1 PE1 Status 1
00000 /dev/dsk/c36t7d7 00000 current
00001 /dev/dsk/c36t7d7 00001 current
00002 /dev/dsk/c36t7d7 00002 current
00003 /dev/dsk/c36t7d7 00003 current
00004 /dev/dsk/c36t7d7 00004 current
00005 /dev/dsk/c36t7d7 00005 current
00006 /dev/dsk/c36t7d7 00006 current


There is nothing in ps -ef that jumps out at ya. Believe it is a process that I just can't find
IT_2007
Honored Contributor

Re: cannot umount a filesytem

This is very strange. Is it shows as mounted on /etc/mnttab?

reboot only is the option.
wvsa
Regular Advisor

Re: cannot umount a filesytem

THanks to all who responded, believe we are down to the reboot option.

florin_10
Frequent Advisor

Re: cannot umount a filesytem

Hi

Do you know if there is any process using this mount for its temporary file? If the process did not closed its temp/scratch file than you can not unmount.

Cheers
flg
RAC_1
Honored Contributor

Re: cannot umount a filesytem

run lsof on lvol also and check.
lsof /mount_point and lsof /dev/vgxx/lvolx
There is no substitute to HARDWORK
wvsa
Regular Advisor

Re: cannot umount a filesytem

All;

Thanks for all the input, the only way I was able to get the space back was to reboot the server.