LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 01-17-2013, 11:56 AM   #1
nate_lg
LQ Newbie
 
Registered: Jan 2013
Posts: 3

Rep: Reputation: Disabled
Administering new server, need help with updates and best practices


I've been maintaining a few servers running Ubuntu or some other variant of Debian for a while, but I've just been handed a hosted server running Red Hat, and been told that I need to keep the OS side of things up-to-date.

I'm not really sure where to start with this as I have absolutely no RHEL experience.

# cat /proc/version

returns:

Linux version 2.6.18-028stab070.14 (root@rhel5-build-x64) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Thu Nov 18 16:04:02 MSK 2010

The server is used as a web server with a handful of virtual hosts, and is running plesk.

Is there any resource I can use to quickly get me up to speed on how to best administer this server?

What are best practices for this server for applying updates?

Moving from a mostly debian based experience, what should I know about Red Hat?
 
Old 01-17-2013, 12:15 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,565

Rep: Reputation: 410Reputation: 410Reputation: 410Reputation: 410Reputation: 410
Well first off ... RedHat is better! Ok, maybe thats an opinion but still.

There isn't a whole lot of difference, you will use the yum package manager for updates as opposed to aptitude.

The thing to remember about RHEL is it is a subscription based distro, you have to make sure your systems get registered with the red hat network or yum updates wont work.

a rhn_check command will verify that it can check in to the rhn server. This is one of those gotchas, if it doesnt check in for a long period of time it wont be able to update and you have to run a rhn_register again to re-register it with RHN.


Do you have any other red hat products available? Specifically Red Hat Satellite? That will be a big plus for patching and package management.
 
Old 01-17-2013, 12:16 PM   #3
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,565

Rep: Reputation: 410Reputation: 410Reputation: 410Reputation: 410Reputation: 410
Oh and read up on teh Plesk backup features. Since everything is being managed through Plesk make sure you are backing up your Plesk config and your site content through the Plesk control panel atleast once a week and before attempting any Plesk upgrade.
 
Old 01-17-2013, 08:03 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,226

Rep: Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022
You can use
Code:
cat /etc/*release*

# more specifically
cat /etc/redhat-release
to find out what version of RHEL you have.
By the look of the date in the version info, its quite old; may even be a v5.x, which is still supported by RH. v5.9 is just out recently.
You'll need to do a comprehensive backup before using yum to update it. It'll require a reboot as it'll have new kernel versions.
(Current latest & greatest is 6.3)

You can check the repo settings by looking in /etc/yum.repos.d dir.

Here are the Admin Guides http://www.linuxtopia.org/online_boo...ion_index.html

As mentioned above, RHEL is a paid subscription distro, so contact RH and/or your Mgr to get the subscription info, otherwise no updates or support will be forthcoming.

Ultimately if money becomes an issue, you could convert it to Centos, a free RHEL rebuild, but that only includes updates.
You'd have to support it yourself via Google, LQ, the Centos website etc.

HTH
 
Old 01-22-2013, 09:46 AM   #5
nate_lg
LQ Newbie
 
Registered: Jan 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks guys, I'll run with that!

[edit]

cat /etc/redhat-release gives me "CentOS release 5.7 (Final)", so I guess we're actually on the CentOS train, which probably explains why rhn_check gives me command not found.

Last edited by nate_lg; 01-22-2013 at 09:58 AM.
 
Old 01-22-2013, 12:44 PM   #6
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,565

Rep: Reputation: 410Reputation: 410Reputation: 410Reputation: 410Reputation: 410
Yep, rhn commands aren't going to work as there is no support subscription here. As previously stated there is no difference between RHEL and CentOS with the exception of the subscription support and supplementary products you can purchase such as Satellite.


On chrism01's suggestion on the upgrade; I do recommend staying on the most up to date as well but there are significant changes from the RedHat 5.x family to the RedHat 6.x family. 5.x is still well within support and will be for quite some time, no need to upgrade unless you want to at this point. Review the release notes and make the decision as to whether it is the right thing to do for your environment.
 
Old 01-22-2013, 02:12 PM   #7
nate_lg
LQ Newbie
 
Registered: Jan 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
I've decided to shoot myself in a virtual foot before tackling anything on the production server. I've setup a VM and installed the same version of CentOS, and am now slowly looking at getting Plesk installed. I figure I can then test restoring the backup of the production server to my VM and play with that a bit.
 
Old 01-22-2013, 02:24 PM   #8
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,565

Rep: Reputation: 410Reputation: 410Reputation: 410Reputation: 410Reputation: 410
With the Plesk backup features it should be an easy restore, just keep in mind that it will restore all your IP and network bindings so the VM may try and steal your production IPs if you have it on the network.
 
Old 01-22-2013, 03:08 PM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,987
Blog Entries: 54

Rep: Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742
Sure, having to search for distribution-specific commands (like RPM* or Yum*) may be disorienting for a minute but what any Linux distribution has in common is that conceptually things like server maintenance and security issues don't differ. What Debian and RHEL have in common too is they both come with extensive documentation you can consult.

Using a virtual machine is a good move but IMNSHO the best way to fsck up right from the start is to let another layer of "just click OK button" obfuscation get between the OS and person supposed to gain practical experience from using it.

*BTW CentOS 5 is at 5.9 now so the machine is two updates behind.
 
Old 01-22-2013, 08:25 PM   #10
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,226

Rep: Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022
Well, now you know what you've got and that its a couple of minor versions behind.
Taking a copy and playing with it is a good idea, but watch for hostname/ips as warned above.
The link I gave you will be fine for the manuals. Note that since its a rebuild, RHEL manuals are the same as the Centos manuals (excepting rhn related of course).

Personally I'd recommend trying to learn how to manage from the cli rather than relying on Plesk if you can.
 
  


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
Disadvantages of administering a server with a WM as opposed to a pure TTY interface nobuntu Linux - Server 3 01-12-2013 02:06 PM
DNS server best practices jasonswett Linux - Server 1 10-13-2010 09:44 AM
LXer: Best practices in securing a Web Server LXer Syndicated Linux News 0 04-22-2009 05:00 AM
Safe practices for ftp server in my office? BrianK Linux - Security 5 02-14-2007 01:35 PM
FTP server best practices crwdawg Linux - General 0 05-08-2006 01:44 PM


All times are GMT -5. The time now is 10:59 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration