LinuxQuestions.org
Review your favorite Linux distribution.
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 10-01-2003, 02:07 AM   #1
alexd912
LQ Newbie
 
Registered: Oct 2003
Distribution: Redhat
Posts: 2

Rep: Reputation: 0
Help required for setting up LInux Server


Firstly I would class my self as a newbie as I have only been playing with
Linux Redhat for just over a year now. I have set up a couple of Linux boxs but now I am considering stripping down my old faithful Linux box to make way for a new improved one.

I would like some advice and suggestions on set up amd configurations for this server. Its basic role would be to be a SFTP server, Mail server for internal network but using fetchmail/sendmail to outside POP accounts, maybe Appache web server, games server and H323 server. The server also will act with windows 2k machines with samba. Now I have set up fetchmail and H323 server in the past so this is not to mcuh of an issue.

Proposed Hardware:
Mobo (possible ASUS A7N8X Deluxe or K8V Deluxe) will support 2 X IDE and 2 X SATA on AMD 2400+ XP processor or 64 bit processor. 512Mb DDR RAM min. Matrox G400TV AGP or
Geforce 4 64 meg card. Would like to have TV out though.
2 x 120 Gig SATA HDD
1 x 120 Gig HDD
Operating system Redhat 9 (but im open to suggetsions on both hardware and OS)
This box will be behind a hardware firewall.

I am intersted in building the Server based on RAID and SATA drives. My idea being and please this is where I need help, is that I want all data storage on the 2 X 120 gig SATA HDD on RAID 1 (mirroring the 2 drives for backup)
and the OS (redhat 9) on the 3rd 120 Gig HDD on IDE.

Now my knowledge of Raid and SATA is minimal. So is it possible to set up this sort of configuration under redhat?

All mail, SFTP, Apache, general important information on the raid side, whilst all OS and applications on the 3rd 120 GIG IDE drive.

Security is a big issue so I want to know what precaustions should I take about keeping MAIL on the same drive as Apache and SFTP games server stuff?

The Server will be SSH to the outside for mail access and SFTP access.

Now if anyone has any suggestions or has done something similar to this then I would like to hear from them.

One thing this is not for business use just personal use.
 
Old 10-01-2003, 05:43 AM   #2
djbanaan
Member
 
Registered: Aug 2003
Location: Haarlem, The Netherlands
Distribution: Slackware, FreeBSD
Posts: 178

Rep: Reputation: 30
You could setup a RAID 1 on your SATA device and place the OS on a normal IDE drive. Personally, however, I would go with a RAID 5 setup using 3 120 Gb disks. This would give you a total of about 240 Gb (239.97 to be exact).

RAID in any configuration is never a replacement for good backups, it's just for minimalizing the effects of hardware failure.
If one of the drives were to fail, that's where mirroring or striping would come in handy because your system would stay up and running without data-loss. However, when data-loss is caused by user-error, mirroring will be of no use, you'll need your tape-backup to restore.

Because RAID is there to protect you from hardware failure and to keep your system up when a drive goes bad, there is no reason to put your OS on a drive outside of your RAID container. If the drive with the OS on it fails, your system goes down.
Therefore I would go with a RAID 5 setup, this way you'll have twice the diskspace you would have when mirroring, with one extra drive. The data is striped across all three drives, so if any of the drives goes bad, your system will stay up. You will, however, need a 4 channel SATA RAID controller for this setup.

I haven't used such a setup on Red Hat, but I have on Slackware and SuSE, so I don't see why RH wouldn't support such a setup.
If the cost of a 4 channel SATA RAID controller is too high for you, you could go with the setup you described. But, as I said above, putting your OS on a non-mirrored drive doesn't do you much good. A better setup would be mirroring the two drives using RAID 1 and putting both the data and the OS on that container. A RAID container is seen by the OS as 1 drive, so you can still partition it to your likings. In either case, you would still have to make regular tape backups!

I hope this was of some help to you.
 
Old 10-01-2003, 06:02 AM   #3
Megamieuwsel
Member
 
Registered: Sep 2002
Location: Haarlem , the Netherlands
Distribution: VectorLinux SOHO 5.1
Posts: 470

Rep: Reputation: 35
Quote:
djbanaan
Member

Registered: Aug 2003
Location: Haarlem, The Netherlands
Distribution: Slackware
Posts: 40
Oh GREAT!
Now I won't be able to walk through town without wondering , if "that guy over there" could be djbanaan......
 
Old 10-01-2003, 06:08 AM   #4
djbanaan
Member
 
Registered: Aug 2003
Location: Haarlem, The Netherlands
Distribution: Slackware, FreeBSD
Posts: 178

Rep: Reputation: 30
LOL Nice to know that I'm not the only Linux-er in our beautiful town!
 
Old 10-01-2003, 06:16 AM   #5
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Rep: Reputation: 30
Howzit


I would have to agree with djbanaan I think raid 5 is a better option for
reliability. He also mentioned maybe to install SATA RAID controller which is a good idea if u have the cash to spend but u are able to do this with a software RAID under RH. U can put the whole OS on the RAID partition but I normally put /boot , swap on different partition meaning outside the raid partition.

chow
 
Old 10-01-2003, 08:20 AM   #6
alexd912
LQ Newbie
 
Registered: Oct 2003
Distribution: Redhat
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks to all your replies it has been very usefull and I will look into the price of a 4 way SATA RAID card configured as you where suggesting (RAID 5).
Would this still work if 2 drives are SATA and the other is IDE?

Cheers once again everyone.
 
Old 10-01-2003, 10:44 AM   #7
djbanaan
Member
 
Registered: Aug 2003
Location: Haarlem, The Netherlands
Distribution: Slackware, FreeBSD
Posts: 178

Rep: Reputation: 30
A RAID 5 config is also possible with 2 disks, which would put the total capacity at just under 120 Gb (when using two 120 Gb disks). This makes it pretty much the same as mirroring two drives, except for the fact that it's got parity. The third disk would, however, not be included in the array. So its data will not be included in the striping process.

Last edited by djbanaan; 10-01-2003 at 10:46 AM.
 
Old 10-01-2003, 10:36 PM   #8
narshadda
LQ Newbie
 
Registered: Sep 2003
Posts: 7

Rep: Reputation: 0
djbanaan,
I am a total linux newbie but 2 disks for a Raid 5? I don't think that is physically possible. A raid 5 is a stripe set with parity. You lose 1/3 for parity. Maybe you are thinking of Raid 0 where there is striping across 2 disks but no parity. This version allows for better performance but if you lose a drive, you lost the array so be sure and have a backup...
 
Old 10-01-2003, 11:27 PM   #9
DrAx
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
I am a newbie of Linux.
I'm trying to setup a linux server, but I don't know how to maximize the usage of my hard disk.
Any suggestion for me, guys?
I have a 36 GB SCSI hard disk.
How much should I assigned for the /root, /swap, /var, /temp and etc?

Thank's guys
 
Old 10-02-2003, 02:09 AM   #10
djbanaan
Member
 
Registered: Aug 2003
Location: Haarlem, The Netherlands
Distribution: Slackware, FreeBSD
Posts: 178

Rep: Reputation: 30
narshadda,

I stand corrected, RAID 5 does indeed require a minimum of 3 disks. Thanks for the correction.
 
  


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
Setting up and securing a linux server my-unix-dream Linux - Security 7 06-22-2004 08:19 PM
How do I go about setting a samba server on Linux? natalinasmpf Linux - General 1 02-22-2004 02:00 PM
Setting up vBulletin on a Linux server. Justin_TX Linux - Newbie 0 11-21-2003 05:43 PM
Is samba required to connect to a Windows Advanced server from RedHat 8.0 server? NemesisStar Linux - Hardware 1 10-20-2003 01:32 AM
setting up an opennap server in linux daverino Linux - Newbie 0 02-19-2002 06:31 PM


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