LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-31-2013, 10:20 AM   #1
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Rep: Reputation: 34
read only file system with device busy


Hi,

I am getting read only filesystem error so I followed the steps as,

1. umount /tmp
2. fsck -y /tmp

but getting error message as "device busy" where there are no processes running for tmp (fuser /tmp & ps) but there are some open files in lsof so
how to remove the multiple open files in lsof for tmp.Also I dont want to reboot the server.

I appreciate for any solution.
 
Old 03-31-2013, 10:24 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Once you dismount /tmp you can't use fsck on the directory /tmp (the file system it is on is busy - and that filesystem is your root disk).

fsck is used on partitions - the thing you had mounted on /tmp.
 
Old 03-31-2013, 12:24 PM   #3
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
actually logical volume is mounted with /tmp. can you clarify.
 
Old 03-31-2013, 02:18 PM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Doesn't matter.

The filesystem resides on a partition/disk - it doesn't matter if it is a logical volume or not. It is that device you use for fsck. It is the same one you used when you created the filesystem.
 
Old 04-14-2013, 12:41 PM   #5
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
ok, if that /tmp is a filesytem & no processes are link to it & i want to avoid reboot as well.
 
Old 04-15-2013, 10:38 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,622

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by smilemukul View Post
ok, if that /tmp is a filesytem & no processes are link to it & i want to avoid reboot as well.
If it's mounted, you can't (and SHOULDN'T) fsck it. Your choices are to reboot into rescue/maintenance mode and fsck it, or not.

You SAY nothing is running on it or using it, but the fact it's saying it's busy tells you that SOMETHING is. Either your LVM software, a system process, or SOMETHING. It would have taken a few minutes to reboot the server and do this...far longer than posting threads about it, and you'd have been done by now.
 
1 members found this post helpful.
Old 04-16-2013, 03:35 AM   #7
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
I can reboot the server but its a production server.Also I want to find out the alternate way or solution to remount the "read only filesystem" without reboot.

Thanks
 
Old 04-16-2013, 09:29 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,622

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by smilemukul View Post
I can reboot the server but its a production server.
...which doesn't matter AT ALL, since if it's having problems, those problems need to be FIXED. Schedule downtime, and do it.
Quote:
Also I want to find out the alternate way or solution to remount the "read only filesystem" without reboot.
As you've been told several times:THERE IS NO ALTERNATE WAY OR SOLUTION. You HAVE TO unmount it to fix it...period. You can't unmount that particular partition while the system is up, so AGAIN: you have to reboot into maintenance/rescue mode.
 
  


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
Cannot create gfs2 filesystem : can't open device /dev/drbd1: Read-only file system ruchirarsm Linux - Newbie 0 10-21-2012 03:19 PM
[SOLVED] Unmounting file systems: umount2 : Device or resource busy umount /var suresh.k Linux - Newbie 2 09-14-2012 11:28 AM
Read System Call is getting blocked when tried to read the data from CDC device sanju.lnt Linux - Embedded & Single-board computer 0 09-11-2011 11:48 PM
Fooling The System That A Read-Only Device Is Read-Write Woodsman Slackware 34 08-26-2009 07:45 PM
mdadm: device is busy yet not busy? disbeliever Linux - Server 7 07-24-2008 04:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:44 PM.

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