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 11-17-2009, 05:36 PM   #1
replica88
Member
 
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
kbp
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

cheers
 
Old 11-17-2009, 07:53 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,434

Rep: Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790
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.
 
  


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
Fedora 10 - Good So Far - Hints and Tips? gerowen 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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