LinuxQuestions.org
Register a domain and help support LQ
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 07-27-2010, 11:25 AM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Rep: Reputation: 46
how to e2fsck while server is up


I have a volume on my server that according to tune2fs is "clean with errors", so i'm assuming I either need to unmount the volume and e2fsck it, or reboot and drop into maintenance mode and do it. There aren't any live samba shares off that volume, so i'm thinking I could do it without taking the server down, as this server is only for samba shares, which are on a different volume.

Could someone tell me if I'm taking the right approach? I've never done unmounting and mounting before, but I've read it can be done manually without affecting how the volumes are mounted when a server starts. i'll have to look up the commands.
 
Old 07-27-2010, 11:48 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

It is best to bring your server down then boot into a single user mode. Either by passing the parameter or use a LiveCD/InstallCD to boot. This will insure there are no conflicts. Perform the maintenance and return the server to service after everything is good to go.
 
Old 07-27-2010, 11:49 AM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
I plan on doing that tomorrow morning for my volume that has the live samaba shares on it, but was hoping there was a way to do it with that other volume beforehand to cut my downtime down. is that not an option, or a really bad idea?
 
Old 07-27-2010, 03:29 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

Any potential access can create problems. That's why you boot to single user mode.
How big are the filesystems? Maintenance downtime should be look at as essential time not a nuisance or inconvenience. Better to snap things at the head than wait and have issues.
 
Old 07-27-2010, 03:42 PM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
both are around 300GB, all made up of JPGs though, so that will make it take a bit longer.

I thought if you unmounted a particular volume that would eliminate anyone from accessing it and you could do a e2fsck safely?
 
Old 07-27-2010, 03:53 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

Yes, if it's not a mounted volume. In single user mode you will not mount for maintenance.

Just cleaner, safer and faster to do in single user mode where it will be insured no one else will have access.

 
Old 07-27-2010, 03:57 PM   #7
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
Maybe I'll just do a

shutdown -rF 03:00 to have the server automatically reboot and do the disk check, then check on it at 5am and see how its coming. that way it'll get all the volumes.

I was just trying to find a way to cut down on the actual downtime of the server.
 
  


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] How to tell if e2fsck will automatically run when I restart RHEL server? rjo98 Linux - Newbie 7 09-30-2009 08:03 PM
e2fsck is crashing what to do ? tomazN Linux - Software 4 05-20-2006 05:52 PM
e2fsck Eugney Slackware 2 06-03-2005 12:13 PM
e2fsck syntax help resistednormalc Linux - General 1 08-25-2004 10:19 AM
e2fsck is dumb Half_Elf Linux - Software 6 06-13-2003 12:51 PM


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