LinuxQuestions.org
Visit Jeremy's Blog.
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 03-06-2011, 07:23 PM   #1
cheesewizz
Member
 
Registered: Aug 2004
Location: Philippines
Distribution: Centos
Posts: 221

Rep: Reputation: 15
Maintenance how to


Hello All

my question is about linux maintenance.

how can i maintain linux distro installed in one machine

for example i installed fedora distro and i used as server like email server
how can I maintain the performance of the pc that has fedora linux.

just want to perform like

defragmentation
scandisk
check disk errors

something like that


please help
 
Old 03-06-2011, 07:26 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
In a terminal type
Code:
man fsck
This will give the options for checking and repairing your disks. Since this is for a server, you will need to schedule the checks for the times the server is taken down - you can set your own schedule and run it via crontab so it can be unattended. Obviously you will need to check the logs after each scheduled reboot to make sure that there were no problems.
 
Old 03-06-2011, 09:16 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,342
Blog Entries: 12

Rep: Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730
This thread might help on the defragmentation issue.

http://www.linuxquestions.org/questi...tation-856728/

Frankly, I have never defragmented an ext3 or ext4 file system. Native Linux files systems are smarter than Windows file systems.
 
Old 03-07-2011, 01:00 PM   #4
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,164

Rep: Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223
You don't need to defrag Linux filing systems. Most distros will check the filing system for you. Try the following:
su -c "tune2fs -l /dev/sda2"
This will give you useful info about the second partition, including things like

Mount count: 98
Maximum mount count: 100
Last checked: Mon Feb 7 16:10:53 2011
Check interval: 0 (<none>)

In other words, my system checks that partition every 100 boots, there are 2 to go before the next check, and the last was a month ago. For server that runs continuously, you'd set the check interval instead, like

su -c "tune2fs -i 1m /dev/sda2"

for a monthly check.

Last edited by DavidMcCann; 03-08-2011 at 11:58 AM.
 
1 members found this post helpful.
  


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
Routine maintenance launch6221 Linux - Newbie 20 12-04-2009 07:03 PM
LXer: Are proprietary maintenance fees worse than open-source maintenance fees? LXer Syndicated Linux News 0 12-04-2007 03:20 PM
User Maintenance rich_c_earl Linux - Newbie 2 04-09-2006 08:59 PM
what about maintenance? jaan kaer Linux - Newbie 4 01-13-2004 07:54 AM
maintenance te_conway Linux - Newbie 1 08-31-2001 12:44 PM


All times are GMT -5. The time now is 10:54 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