Re: Mount problem (165 Views)
Reply
Regular Advisor
hangyu
Posts: 244
Registered: ‎06-21-2005
Message 1 of 10 (165 Views)
Accepted Solution

Mount problem

In my system ,there is a mount /dev/sda1 /Ora1 , I have just umount it and this mount do not shown in "bdf" again . but now , I want to mount it again ( mount /dev/sda1 " , it pop "mount: /sda1 already mounted or /Ora1 busy" , can advise how can I mount it back ? thx
Honored Contributor
Patrick Wallek
Posts: 13,787
Registered: ‎06-21-2000
Message 2 of 10 (165 Views)

Re: Mount problem

What happens if you do 'fuser -uc /Ora1'? What gets returned?

Were any processes using this when you unmounted it?

By the way, is this HP-UX? HP doesn't normally use disks like sda1. This appears to be linux of some variety.
Honored Contributor
Rajeev  Shukla
Posts: 1,402
Registered: ‎01-25-1999
Message 3 of 10 (165 Views)

Re: Mount problem

It looks like either /etc/mnttab still contains /Ora1 mount or there is someone there inside the /Ora1 directory
Regular Advisor
hangyu
Posts: 244
Registered: ‎06-21-2005
Message 4 of 10 (165 Views)

Re: Mount problem

thx replies,

when use fuser , and do not find any user ,
Yes , it is linux ,
I have already delete the mount point in mnttab ( mtab in linux ) , but still can't umount .
Honored Contributor
Yogeeraj_1
Posts: 4,613
Registered: ‎11-25-2001
Message 5 of 10 (165 Views)

Re: Mount problem

hi,

what does "fuser -m /dev/sda1" show?

In linux, it is mostly related to the Device mapper. If you disabled disable dm-mod/dm-mirror and restart this should be OK.

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Regular Advisor
hangyu
Posts: 244
Registered: ‎06-21-2005
Message 6 of 10 (165 Views)

Re: Mount problem

thx reply ,

when run "fuser -m /dev/sda1" , there is nothing output .

How to restart disabled dm-mod/dm-mirror ? thx
Respected Contributor
Frank de Vries
Posts: 733
Registered: ‎11-13-1996
Message 7 of 10 (165 Views)

Re: Mount problem

Two advices:

Ok dbf is one thing , but what does the
mount command return ?
Just type mount

1) Make sure you are not with any prompt
or cursor on /Ora1 , or left another session
there. Check child processes su - or rlogins
that arrived on this /Ora1. Exit and kill
all sessions (see who -r).
Login in via the console, so you know
it is only you loggin in.

2) If you are sure there is nothing on /Ora1
and fuser -cu shows nothing then you need
to install lsof , which will give more detail
of lost filehandles, network processes, memory stuff etc. etc. You may have something
in memory not updating the mount table or
filehandle table.

FOR INFO on lsof goto:
http://www.akadia.com/services/lsof_intro.html

Good luck:
Look before you leap
Esteemed Contributor
Hemmetter
Posts: 284
Registered: ‎10-17-2000
Message 8 of 10 (165 Views)

Re: Mount problem

Hi hangyu,

Maybe your filesystem is shared by nfs?

This will keep your fs busy but wil NOT show in fuser/lsof as nfsd is a linux kernel daemon.

TRy to
$ exportfs -u "your-fs"
and umount again.



rgds
HGH

Frequent Advisor
Sanjay Yugal Kishore Ha
Posts: 70
Registered: ‎06-06-2002
Message 9 of 10 (165 Views)

Re: Mount problem

Hello hangyu,

There might be mount points below /Ora1 (most probably NFS) that are in use. Use the mount command to search for "/Ora1" entries and and if the mount points are NFS of AutoFS, then turn off the automounter before retrying the mount.

Don't forget to turn on the automounter once the mount command is successful.

HTH,
Sanjay
Dying is the last thing that I will do.
Honored Contributor
Yogeeraj_1
Posts: 4,613
Registered: ‎11-25-2001
Message 10 of 10 (165 Views)

Re: Mount problem

hi,

try the following:

dmsetup remove_all; sleep 10; mount /dev/sda1 /Ora1


kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.