LinuxQuestions.org
Review your favorite Linux distribution.
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 12-18-2012, 11:33 AM   #1
hemasri
LQ Newbie
 
Registered: Apr 2009
Location: India
Distribution: rhel 5
Posts: 7

Rep: Reputation: 0
/var not unmounting when system is shutting down i am using centos5.8


pls adivce me why this is happening
 
Old 12-18-2012, 01:19 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
First always check system log files for clues. If there aren't any then check the logs which services did shut down properly. If no anomalies are shown and the console doesn't show any either then if the system is local to you, or if you can access it Out of Band, then run
Code:
telinit 1
to bring it to runlevel 1. While not similar to the shutdown or reboot runlevels it should see most services stopped and chances are the one keeping files open in other runlevels will reveal itself here as well. Then run
Code:
lsof -Pwln +D/var
to find it. Alternatively, or if you aren't able to switch to runlevel 1, then you could stop each service manually, check if it did stop properly and if it didn't the list open files for that service. Example:
Code:
pgrep httpd|while read _PID; do lsof -Pwlnp $_PID -a +D/var; done
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] Unmounting file systems: umount2 : Device or resource busy umount /var suresh.k Linux - Newbie 2 09-14-2012 12:28 PM
Installing java 1.3.9 on a 64bit CentOS5 system? neocookie Linux - Software 4 09-29-2008 07:52 AM
my xp system not shutting down sanjay2004 General 5 02-27-2006 02:04 PM
shrink file system with out unmounting ravikumarG AIX 2 06-29-2005 09:48 AM
shutting down my system Abe_the_Man Slackware 3 10-15-2003 12:29 AM


All times are GMT -5. The time now is 02:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration