Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-17-2009, 05:36 PM   #1
Registered: Nov 2009
Posts: 48

Rep: Reputation: 18
Any good tips for server maintenance??

On win server 2003 I tend to set up several maintenance tasks to run every night, eg.. defrag, disk cleanup, service restarts etc..

Is there anything similar I can do to a Linux server? For example Ubuntu Serverů

I understand that Linux needs a lot less tlc than win server 2003 but if i am going to set up a machine and then never see it again I would like to schedule some sort of maintenance..

Thanks in advance
Old 11-17-2009, 06:53 PM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
I think 2k3 needs less tlc than you're giving it

- defrag should be pretty much unnecessary
- service restarts ( not unless you have a known issue that will not be fixed)
- disk cleanup ~maybe

Most linux installs will be configured with logrotation and maintenance tasks via cron already configured. If you add an application eg. apache, then just ensure its logs are getting rotated. Logwatch is a very handy tool if your systems are not on the same network, just check the daily email to see server status

Old 11-17-2009, 07:53 PM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,349

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
For Linux

1. disk defrag is not needed, in fact there isn't an official tool to do it
2. disk cleanup: as mentioned, long running services usually log under /var/log and have a logrotate entry. You may want to check those are set, and keep an eye on them for a while until you get a sense of the correct settings for each one. Depends how busy your system is and how much disk space you have
3. service restarts; should be unnecessary
4. I'd recommend checking the contents of /var/log/messages, audit, secure regularly, just to keep an eye on things. As mentioned, logwatch can automate this somewhat.


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
Fedora 10 - Good So Far - Hints and Tips? dudeman41465 Linux - Laptop and Netbook 3 01-22-2009 07:12 PM
server maintenance thisObject General 2 11-11-2006 02:42 AM
Server Maintenance ballistic509 Debian 5 09-21-2006 07:53 AM
Some good sourcebuilding tips please (alternative to PREFIX) Dark Carnival Slackware 3 11-12-2004 09:14 AM
no .bashrc file. Need good howto or tips ? cozye Slackware 4 12-11-2003 07:40 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:02 AM.

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