LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-01-2012, 03:11 AM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
how to umount path


I want to umount a path , I have removed it from /etc/mtab , I tried use umount , it pop the below error

#umount /tmp/ora1

umount: /tmp/ora1: device is busy


I also tried fuser /tmp/ora1and lsof /tmp/ora1, it did not show anything is opering ( the command is stopped on the command prompt ) , can advise how to un-mount a path ?

Redhat 5 server

Thanks.
 
Old 11-01-2012, 03:21 AM   #2
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
I have a problem now , when I cd to this path /tmp/ora1 , the server will hang up , besides , I can not do backup now .

Can advise how to fix it ?

thanks.
 
Old 11-01-2012, 03:48 AM   #3
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
just found that when I use the command lsof , it did not show anything , I tried to run lsof in other server , it should show all server processes , but this server did not have any output ,

can advise how to fix it ?

thanks
 
Old 11-01-2012, 03:49 AM   #4
mbarley42
LQ Newbie
 
Registered: Oct 2012
Posts: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by ust View Post
I have a problem now , when I cd to this path /tmp/ora1 , the server will hang up , besides , I can not do backup now .

Can advise how to fix it ?

thanks.
It is unlikely that kernel was blocked because of cd to unstable path. Try to log on from a different virtual terminal. There is a problem that I suppose you have a process that had created file and unlinked it, but it still holds it open. (MS Windows bans this and you will get error message if you try to delete a file that is in use, causing need to reboot in case if a process or service hanged.)

This procedure creates anonymous inode. The inode will remain invisible and in use until process closes it or, more likely, when the process finishes.

You have posted no data as to even guess which process might be responsible.

Rgdz,
mbarley

Last edited by mbarley42; 11-01-2012 at 03:52 AM.
 
Old 11-01-2012, 04:51 AM   #5
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
it is strange that that I type "cd /or" , then the screen is hang , so I think the file system has problem , can help to advise what is wrong ?

thanks.
 
Old 11-01-2012, 05:42 AM   #6
mbarley42
LQ Newbie
 
Registered: Oct 2012
Posts: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by ust View Post
it is strange that that I type "cd /or" , then the screen is hang , so I think the file system has problem , can help to advise what is wrong ?
Can you post a list of processes from ``ps -ef''? You gave insufficient information for me to help you. Some services use anonymous (unlinked) temp files, that could cause described symptoms. You will not be able to unmount until last such process is terminated and unnamed inodes free'd.

Attempt to unmount such file system could cause described instability and hang terminals. This is my guess of what could be troubling you, but without a list of processes you run it is impossible to tell.

Greetz,
mbarley
 
Old 11-01-2012, 08:28 PM   #7
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
thank all ,

As this is very urgent , I have reboot the server per the approval from management , it works now .

thanks.
 
Old 11-01-2012, 11:25 PM   #8
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
You can use the "-l" option to force unclean umount. This is not advsed, but buggy devices/filesystem can hang the shell for a new second. This is because it try to generate the autocomplete list. The device do not respond so it wait until the kernel I/O timeout trigger. It is in no wait hanging the server, but in some case, it may slow it down. Linux does not scale very well under I/O pressure.
 
Old 11-02-2012, 01:05 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by ust View Post
thank all ,
As this is very urgent , I have reboot the server per the approval from management , it works now .
thanks.
Since you keep posting things about Red Hat ENTERPRISE Linux, we will AGAIN tell you to contact RHEL support...if it's 'urgent' that's why you pay them. Also, this hints at being a filesystem with an Oracle database on it...unmounting it while in use is NOT a good thing.

You're paying for support from both Oracle and Red Hat, yet you have never acknowledged that you have contacted them, or that people have given you that advice.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to get the absolute path of the running executable file and current work path ? 915086731 Programming 3 11-01-2011 09:28 AM
[SOLVED] Perforce edits my files when I give a depot path but not if I specify the local path gregorian Linux - Software 1 10-21-2011 11:57 AM
Perforce edits my files when I give a depot path but not if I specify the local path gregorian Linux - Software 1 10-07-2011 05:03 PM
bash script path issue - how to pass a path as a string to a variable PiNPOiNT Programming 5 04-17-2009 05:48 PM
set up java_home path in /home/user/.bashrc but use path in /usr/lib/java vitalstrike82 Slackware 4 01-13-2009 11:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration