Operating System - HP-UX
1830939 Members
2810 Online
110017 Solutions
New Discussion

Re: Problem with Un-mounting

 
Vivek Shrivastava_1
Frequent Advisor

Problem with Un-mounting

I am having problem to un-mount a file system. The following is the aprt of output from â bdfâ command.

/dev/vg00/lvol10_sybase
1302233 991798 180211 85% /sybase
/dev/vg_data2/data2_lvol1
7309292 1169958 5408404 18% /sybase/test/backups
/dev/vg_data1/syb_stbs_lite_12_5
1025027 3 922521 0% /sybase/stbs_lite_125
/dev/vg_xp256_04/xp256_vg04_rds_125
1001729 788856 112700 87% /sybase/rds_prod_125
/dev/vg_data1/syb_rds_dev_125
800811 587513 133216 82% /sybase/rds_dev_125


I want to un-mount the â /sybase/rds_dev_125â file system and I am getting the message that â Device is Busyâ , if I try to run the â fuserâ command it does not show any process which using â /sybase/rds_dev_125â file system.

fuser -u /sybase/rds_dev_125
/sybase/rds_dev_125:


What could be the reason? Is it because of the fact that â /sybase/rds_dev_125â is mounted on â /sybaseâ and it is being used by lots of processes.

It looks like that I have to make sure that even â /sybaseâ is also not being used by anyone.

I really need to un-mount this file system but I canâ t touch other. What could be
9 REPLIES 9
Sundar_7
Honored Contributor

Re: Problem with Un-mounting

Try

fuser -cu /sybase/rds_dev_125
Learn What to do ,How to do and more importantly When to do ?
Sundar_7
Honored Contributor

Re: Problem with Un-mounting

You don't have to make sure /sybase is not being used by anyone.

# fuser -cu /sybase/rds_dev_125

# fuser -cku /sybase/rds_dev_125

# umount /sybase/rds_dev_125

Make sure your pwd is not /sybase/rds_dev_125 :-)

Learn What to do ,How to do and more importantly When to do ?
Vivek Shrivastava_1
Frequent Advisor

Re: Problem with Un-mounting

Hi,

I tried the command as per your advice and it made me more confused.

# fuser -cu /sybase/rds_dev_125
/sybase/rds_dev_125: 4819o(sybase)

# ps â ef | grep 4819
sybase 4819 4818 0 Jun 11 ? 56:36 /sybase/prism_test_12_5/ASE-12_T

root 18439 18392 2 16:30:03 pts/td 0:00 grep 4819


It is complaining about a process which belongs to a different file system.

/sybase/prism_test_12_5/ is a separate file system but mounted under /sybase, why is it complaining about this?

Any help would be appreciated.

Thank
Vivek Shrivastava_1
Frequent Advisor

Re: Problem with Un-mounting

i can't run the following command

fuser -cku /sybase/rds_dev_125

Now i know that it will kill a process whch has nothing to do with /sybase/rds_dev_125.

I don't know why

fuser -cu /sybase/rds_dev_125

reorting that process which belongs toa other file system.

thanks


Sundar_7
Honored Contributor

Re: Problem with Un-mounting

the mentioned process could be accessing file(s) that belongs to the file system u r trying to unmount.

Do you have lsof installed in the system ?

if not download and install lsof from

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.70/

and then

lsof -p 4819 | grep "rds_dev_125"

it will tell u the files being used by the process that belong to the fs /sybase/rds_dev_125.



Learn What to do ,How to do and more importantly When to do ?
Ashwani Kashyap
Honored Contributor

Re: Problem with Un-mounting

The process id returned by the fuser -cu command has opened up a files in /sybase/rds_dev_125 file system for a read or write . ps only returns process names and not file names .

Of you have lsof you can see a list of open files and their corresponding process .

This process must be stopped , so that it can close the file before you can unmount the fiel system . If you are not sure what this process and the impact of it , if it is killed , then youe best bet isto to stop sybase completely and then unmount it .
Robert True
Frequent Advisor

Re: Problem with Un-mounting

F/S's mounted below a target file system mount point must be unmounted first before the target f/s can be unmounted. IE:

umount /sybase/prism_test_12_5

first, then

umount /sybase

if I understand your question.

Rt.
Robert True
Frequent Advisor

Re: Problem with Un-mounting

Ignore previous, I re-read the question, sorted out all the non-printables.
Geoff Wild
Honored Contributor

Re: Problem with Un-mounting

fuser -cu gave you the answer - you will have to kill 4819o(sybase) as it has a lock on /sybase/rds_dev_125. Best to shutdown sybase itself, then you will be able to unmount. If sybase is already down, then kill the process manually....

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.